fltkhs-0.5.3.9: FLTK bindings

Safe HaskellNone
LanguageHaskell2010

Graphics.UI.FLTK.LowLevel.Button

Contents

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 Button -> ( IO (Bool))

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

drawBackdrop :: Ref Button -> IO ()

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

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

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

drawSuper :: Ref Button -> ( IO ())

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

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

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

getType_ :: Ref Button -> IO (ButtonType)

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

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

handleSuper :: Ref Button -> (Event -> IO (Either UnknownEvent ()))

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

hideSuper :: Ref Button -> ( IO ())

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

resizeSuper :: Ref Button -> (Rectangle -> IO ())

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

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

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

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

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

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

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

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

showWidgetSuper :: Ref Button -> ( IO ())

Orphan instances

(~) * impl (Color -> IO ()) => Op (SetDownColor ()) Button orig impl Source # 

Methods

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

(~) * impl (IO Color) => Op (GetDownColor ()) Button orig impl Source # 

Methods

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

(~) * impl (Boxtype -> IO ()) => Op (SetDownBox ()) Button orig impl Source # 

Methods

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

(~) * impl (IO Boxtype) => Op (GetDownBox ()) Button orig impl Source # 

Methods

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

(~) * impl (ShortcutKeySequence -> IO ()) => Op (SetShortcut ()) Button orig impl Source # 

Methods

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

(~) * impl (IO (Maybe ShortcutKeySequence)) => Op (GetShortcut ()) Button orig impl Source # 

Methods

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

(~) * impl (IO ()) => Op (Setonly ()) Button orig impl Source # 

Methods

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

(~) * impl (IO Bool) => Op (Set ()) Button orig impl Source # 

Methods

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

(~) * impl (Bool -> IO Bool) => Op (SetValue ()) Button orig impl Source # 

Methods

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

(~) * impl (IO Bool) => Op (GetValue ()) Button orig impl Source # 

Methods

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

(~) * impl (Event -> IO (Either UnknownEvent ())) => Op (HandleSuper ()) Button orig impl Source # 

Methods

runOp :: HandleSuper () -> orig -> Ref Button -> impl Source #

(~) * impl (IO ()) => Op (DrawSuper ()) Button orig impl Source # 

Methods

runOp :: DrawSuper () -> orig -> Ref Button -> impl Source #

(~) * impl (IO Bool) => Op (Clear ()) Button orig impl Source # 

Methods

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

(~) * impl (Maybe (Boxtype, Rectangle) -> IO ()) => Op (DrawFocus ()) Button orig impl Source # 

Methods

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

(~) * impl (IO ()) => Op (DrawBackdrop ()) Button orig impl Source # 

Methods

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

(~) * impl (Boxtype -> Color -> Maybe Rectangle -> IO ()) => Op (DrawBoxWithBoxtype ()) Button orig impl Source # 

Methods

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

(~) * impl (IO ()) => Op (DrawBox ()) Button orig impl Source # 

Methods

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

(~) * impl (Rectangle -> IO ()) => Op (Resize ()) Button orig impl Source # 

Methods

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

(~) * impl (Rectangle -> IO ()) => Op (ResizeSuper ()) Button orig impl Source # 

Methods

runOp :: ResizeSuper () -> orig -> Ref Button -> impl Source #

(~) * impl (IO ()) => Op (Hide ()) Button orig impl Source # 

Methods

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

(~) * impl (IO ()) => Op (HideSuper ()) Button orig impl Source # 

Methods

runOp :: HideSuper () -> orig -> Ref Button -> impl Source #

(~) * impl (IO ()) => Op (ShowWidget ()) Button orig impl Source # 

Methods

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

(~) * impl (IO ()) => Op (ShowWidgetSuper ()) Button orig impl Source # 

Methods

runOp :: ShowWidgetSuper () -> orig -> Ref Button -> impl Source #

(~) * impl (ButtonType -> IO ()) => Op (SetType ()) Button orig impl Source # 

Methods

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

(~) * impl (IO ButtonType) => Op (GetType_ ()) Button orig impl Source # 

Methods

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

(~) * impl (Event -> IO (Either UnknownEvent ())) => Op (Handle ()) Button orig impl Source # 

Methods

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

(~) * impl (IO ()) => Op (Destroy ()) Button orig impl Source # 

Methods

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