fltkhs-0.8.0.3: FLTK bindings
Safe HaskellNone
LanguageHaskell2010

Graphics.UI.FLTK.LowLevel.Base.Button

Synopsis

Documentation

buttonCustom Source #

Arguments

:: Rectangle

The bounds of this button

-> Maybe Text

The button label

-> Maybe (Ref Button -> IO ())

Optional custom drawing function

-> Maybe (CustomWidgetFuncs Button)

Optional custom widget functions

-> IO (Ref Button) 

Hierarchy

Fl_Button functions

clear :: Ref ButtonBase -> ( IO (Bool))

destroy :: Ref ButtonBase -> ( IO ())

drawBackdrop :: Ref ButtonBase -> IO ()

drawBox :: Ref ButtonBase -> (IO ())

drawBoxWithBoxtype :: Ref ButtonBase -> ( Boxtype -> Color -> Maybe Rectangle -> IO ())

drawFocus :: Ref ButtonBase -> Maybe (Boxtype, Rectangle) -> IO ()

getDownBox :: Ref ButtonBase -> ( IO (Boxtype))

getDownColor :: Ref ButtonBase -> ( IO (Color))

getShortcut :: Ref ButtonBase -> ( IO (Maybe ShortcutKeySequence))

getType_ :: Ref ButtonBase -> IO (ButtonType)

getValue :: Ref ButtonBase -> ( IO (Bool))

handle :: Ref ButtonBase -> (Event -> IO (Either UnknownEvent ()))

hide :: Ref ButtonBase -> ( IO ())

resize :: Ref ButtonBase -> (Rectangle -> IO ())

set :: Ref ButtonBase -> ( IO (Bool))

setDownBox :: Ref ButtonBase -> (Boxtype -> IO ())

setDownColor :: Ref ButtonBase -> (Color -> IO ())

setShortcut :: Ref ButtonBase -> (ShortcutKeySequence -> IO ())

setType :: Ref ButtonBase -> ButtonType -> IO ()

setValue :: Ref ButtonBase -> (Bool -> IO (Bool))

setonly :: Ref ButtonBase -> ( IO ())

showWidget :: Ref ButtonBase -> (IO ())

Orphan instances

impl ~ (Color -> IO ()) => Op (SetDownColor ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: SetDownColor () -> orig -> Ref ButtonBase -> impl Source #

impl ~ IO Color => Op (GetDownColor ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: GetDownColor () -> orig -> Ref ButtonBase -> impl Source #

impl ~ (Boxtype -> IO ()) => Op (SetDownBox ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: SetDownBox () -> orig -> Ref ButtonBase -> impl Source #

impl ~ IO Boxtype => Op (GetDownBox ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: GetDownBox () -> orig -> Ref ButtonBase -> impl Source #

impl ~ (ShortcutKeySequence -> IO ()) => Op (SetShortcut ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: SetShortcut () -> orig -> Ref ButtonBase -> impl Source #

impl ~ IO (Maybe ShortcutKeySequence) => Op (GetShortcut ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: GetShortcut () -> orig -> Ref ButtonBase -> impl Source #

impl ~ IO () => Op (Setonly ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: Setonly () -> orig -> Ref ButtonBase -> impl Source #

impl ~ IO Bool => Op (Set ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: Set () -> orig -> Ref ButtonBase -> impl Source #

impl ~ (Bool -> IO Bool) => Op (SetValue ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: SetValue () -> orig -> Ref ButtonBase -> impl Source #

impl ~ IO Bool => Op (GetValue ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: GetValue () -> orig -> Ref ButtonBase -> impl Source #

impl ~ IO Bool => Op (Clear ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: Clear () -> orig -> Ref ButtonBase -> impl Source #

impl ~ (Maybe (Boxtype, Rectangle) -> IO ()) => Op (DrawFocus ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: DrawFocus () -> orig -> Ref ButtonBase -> impl Source #

impl ~ IO () => Op (DrawBackdrop ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: DrawBackdrop () -> orig -> Ref ButtonBase -> impl Source #

impl ~ (Boxtype -> Color -> Maybe Rectangle -> IO ()) => Op (DrawBoxWithBoxtype ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: DrawBoxWithBoxtype () -> orig -> Ref ButtonBase -> impl Source #

impl ~ IO () => Op (DrawBox ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: DrawBox () -> orig -> Ref ButtonBase -> impl Source #

impl ~ (Rectangle -> IO ()) => Op (Resize ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: Resize () -> orig -> Ref ButtonBase -> impl Source #

impl ~ IO () => Op (Hide ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: Hide () -> orig -> Ref ButtonBase -> impl Source #

impl ~ IO () => Op (ShowWidget ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: ShowWidget () -> orig -> Ref ButtonBase -> impl Source #

impl ~ (ButtonType -> IO ()) => Op (SetType ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: SetType () -> orig -> Ref ButtonBase -> impl Source #

impl ~ IO ButtonType => Op (GetType_ ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: GetType_ () -> orig -> Ref ButtonBase -> impl Source #

impl ~ (Event -> IO (Either UnknownEvent ())) => Op (Handle ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: Handle () -> orig -> Ref ButtonBase -> impl Source #

impl ~ IO () => Op (Destroy ()) ButtonBase orig impl Source # 
Instance details

Methods

runOp :: Destroy () -> orig -> Ref ButtonBase -> impl Source #