| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.UI.FLTK.LowLevel.Widget
- widgetCustom :: Rectangle -> Maybe String -> CustomWidgetFuncs Widget -> IO (Ref Widget)
- widgetMaker :: forall a. Parent a Widget => Rectangle -> Maybe String -> Maybe (CustomWidgetFuncs a) -> (Int -> Int -> Int -> Int -> IO (Ptr ())) -> (Int -> Int -> Int -> Int -> String -> IO (Ptr ())) -> (Int -> Int -> Int -> Int -> Ptr () -> IO (Ptr ())) -> (Int -> Int -> Int -> Int -> String -> Ptr () -> IO (Ptr ())) -> IO (Ref a)
- data CustomWidgetFuncs a = CustomWidgetFuncs {
- drawCustom :: Maybe (Ref a -> IO ())
- handleCustom :: Maybe (Ref a -> Event -> IO Int)
- resizeCustom :: Maybe (Ref a -> Rectangle -> IO ())
- showCustom :: Maybe (Ref a -> IO ())
- hideCustom :: Maybe (Ref a -> IO ())
- defaultCustomWidgetFuncs :: forall a. Parent a Widget => CustomWidgetFuncs a
- fillCustomWidgetFunctionStruct :: forall a. Parent a Widget => Ptr () -> CustomWidgetFuncs a -> IO ()
- customWidgetFunctionStruct :: forall a. Parent a Widget => CustomWidgetFuncs a -> IO (Ptr ())
Constructor
widgetCustom :: Rectangle -> Maybe String -> CustomWidgetFuncs Widget -> IO (Ref Widget) Source
Arguments
| :: forall a . Parent a Widget | |
| => Rectangle | Position and size |
| -> Maybe String | Title |
| -> Maybe (CustomWidgetFuncs a) | Custom functions |
| -> (Int -> Int -> Int -> Int -> IO (Ptr ())) | Foreign constructor to call if neither title nor custom functions are given |
| -> (Int -> Int -> Int -> Int -> String -> IO (Ptr ())) | Foreign constructor to call if only title is given |
| -> (Int -> Int -> Int -> Int -> Ptr () -> IO (Ptr ())) | Foreign constructor to call if only custom functions are given |
| -> (Int -> Int -> Int -> Int -> String -> Ptr () -> IO (Ptr ())) | Foreign constructor to call if both title and custom functions are given |
| -> IO (Ref a) | Reference to the widget |
Custom
data CustomWidgetFuncs a Source
Overrideable Widget functions
Constructors
| CustomWidgetFuncs | |
Fields
| |
defaultCustomWidgetFuncs :: forall a. Parent a Widget => CustomWidgetFuncs a Source
An empty set of functions to pass to widgetCustom.
fillCustomWidgetFunctionStruct :: forall a. Parent a Widget => Ptr () -> CustomWidgetFuncs a -> IO () Source
customWidgetFunctionStruct :: forall a. Parent a Widget => CustomWidgetFuncs a -> IO (Ptr ()) Source
Given a record of functions, return a pointer to a struct with function pointers back to those functions.
Only of interest to Widget contributors.
Hierarchy
Widget Functions
activate ::RefWidget->IO() active ::RefWidget->IOBoolactiveR ::RefWidget->IOBoolchanged ::RefWidget->IOBoolclearActive ::RefWidget->IO() clearChanged ::RefWidget->IO() clearDamage ::RefWidget->IO() clearDamageWithBitmask ::RefWidget->Word8->IO() clearOutput ::RefWidget->IO() clearVisible ::RefWidget->IO() clearVisibleFocus ::RefWidget->IO() contains:: (ParentaWidget) =>RefWidget->Refa ->IOInt) copyLabel ::RefWidget->String->IO() copyTooltip ::RefWidget->String->IO() deactivate ::RefWidget->IO() destroy ::RefWidget->IO() drawBackdrop ::RefWidget->IO() drawBox ::RefWidget->IO() drawBoxWithBoxtype ::RefWidget->Boxtype->Color->MaybeRectangle->IO() drawFocus ::RefWidget->Maybe(Boxtype,Rectangle) ->IO() drawLabel ::RefWidget->Maybe(Rectangle,Alignments) ->IO() getAlign ::RefWidget->IOAlignmentsgetBox ::RefWidget->IOBoxtypegetColor ::RefWidget->IOColorgetDamage ::RefWidget->IOWord8getDamageInsideWidget ::RefWidget->Word8->Rectangle->IO() getDamageWithText ::RefWidget->Word8->IO() getDeimage ::RefWidget->IO(RefImage) getH ::RefWidget->IOIntgetImage ::RefWidget->IO(RefImage) getLabel ::RefWidget->IOStringgetLabelcolor ::RefWidget->IOColorgetLabelfont ::RefWidget->IOFontgetLabelsize ::RefWidget->IOFontSizegetLabeltype ::RefWidget->IOLabeltypegetOutput ::RefWidget->IOIntgetParent ::RefWidget->IO(Maybe(RefGroup)) getRectangle:: (FindOporig (GetX()) (Matchobj),FindOporig (GetY()) (Matchobj),FindOporig (GetW()) (Matchobj),FindOporig (GetH()) (Matchobj),Op(GetX()) obj orig (IOInt,)Op(GetY()) obj orig (IOInt,)Op(GetW()) obj orig (IOInt,)Op(GetH()) obj orig (IOInt)) =>RefWidget->IORectangle) getSelectionColor ::RefWidget->IOColorgetTooltip ::RefWidget->IOStringgetTopWindow ::RefWidget->IO(RefWindow) getTopWindowOffset ::RefWidget->IOPositiongetType_ ::RefWidget->IOWord8getVisible ::RefWidget->IOBoolgetVisibleFocus ::RefWidget->IOIntgetVisibleR ::RefWidget->IOBoolgetW ::RefWidget->IOIntgetWhen ::RefWidget->IO[When] getWindow ::RefWidget->IO(RefWindow) getX ::RefWidget->IOIntgetY ::RefWidget->IOInthandle ::RefWidget->Event->IOInthide ::RefWidget->IO() hideSuper ::RefWidget->IO() inside:: (ParentaWidget) =>RefWidget->Refa ->IOInt) measureLabel ::RefWidget->IOSizemodifyVisibleFocus ::RefWidget->Int->IO() redraw ::RefWidget->IO() redrawLabel ::RefWidget->IO() resize ::RefWidget->Rectangle->IO() resizeSuper ::RefWidget->Rectangle->IO() setActive ::RefWidget->IO() setAlign ::RefWidget->Alignments->IO() setBox ::RefWidget->Boxtype->IO() setCallback ::RefWidget-> (Reforig ->IO()) ->IO() setChanged ::RefWidget->IO() setColor ::RefWidget->Color->IO() setColorWithBgSel ::RefWidget->Color->Color->IO() setDeimage:: (ParentaImage) =>RefWidget->Refa ->IO()) setImage:: (ParentaImage) =>RefWidget->Refa ->IO()) setLabel ::RefWidget->String->IO() setLabelcolor ::RefWidget->Color->IO() setLabelfont ::RefWidget->Font->IO() setLabelsize ::RefWidget->FontSize->IO() setLabeltype ::RefWidget->Labeltype->IO() setOutput ::RefWidget->IO() setParent:: (ParentaGroup) =>RefWidget->Refa ->IO()) setSelectionColor ::RefWidget->Color->IO() setTooltip ::RefWidget->String->IO() setType ::RefWidget->Word8->IO() setVisible ::RefWidget->IO() setVisibleFocus ::RefWidget->IO() setWhen ::RefWidget-> [When] ->IO() showWidget ::RefWidget->IO() showWidgetSuper ::RefWidget->IO() takeFocus ::RefWidget->IO(EitherNoChange()) takesevents ::RefWidget->IOBool