| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.UI.FLTK.LowLevel.Widget
- widgetCustom :: Rectangle -> Maybe String -> (Ref Widget -> IO ()) -> CustomWidgetFuncs Widget -> IO (Ref Widget)
- widgetMaker :: forall a. Parent a Widget => Rectangle -> Maybe String -> Maybe (Ref a -> IO ()) -> 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 {
- 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 () -> Maybe (Ref a -> IO ()) -> CustomWidgetFuncs a -> IO ()
- customWidgetFunctionStruct :: forall a. Parent a Widget => Maybe (Ref a -> IO ()) -> CustomWidgetFuncs a -> IO (Ptr ())
Constructor
Arguments
| :: forall a . Parent a Widget | |
| => Rectangle | Position and size |
| -> Maybe String | Title |
| -> Maybe (Ref a -> IO ()) | Custom drawing function |
| -> 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
| Do not create this directly. Instead use defaultWidgetCustomFuncs
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 () -> Maybe (Ref a -> IO ()) -> CustomWidgetFuncs a -> IO () Source
customWidgetFunctionStruct :: forall a. Parent a Widget => Maybe (Ref a -> IO ()) -> CustomWidgetFuncs a -> IO (Ptr ()) Source
Hierarchy
Widget Functions
activate ::RefWidget->IO() active ::RefWidget->IO(Bool) activeR ::RefWidget->IO(Bool) changed ::RefWidget->IO(Bool) clearActive ::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 ->IOIntcopyLabel ::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->IO(Boxtype) getColor ::RefWidget->IO(Color) getDamage ::RefWidget->IO(Word8) getDamageInsideWidget ::RefWidget->Word8->Rectangle->IO() getDamageWithText ::RefWidget->Word8->IO() getDeimage ::RefWidget->IO(RefImage) getH ::RefWidget->IO(Int) getImage ::RefWidget->IO(RefImage) getLabel ::RefWidget->IO(String) getLabelcolor ::RefWidget->IO(Color) getLabelfont ::RefWidget->IO(Font) getLabelsize ::RefWidget->IO(FontSize) getLabeltype ::RefWidget->IO(Labeltype) getOutput ::RefWidget->IO(Int) getParent ::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->IORectanglegetSelectionColor ::RefWidget->IO(Color) getTooltip ::RefWidget->IO(String) getTopWindow ::RefWidget->IO(Maybe(RefWindow)) getTopWindowOffset ::RefWidget->IO(Position) getType_ ::RefWidget->IO(Word8) getVisible ::RefWidget->IOBoolgetVisibleFocus ::RefWidget->IO(Bool) getVisibleR ::RefWidget->IOBoolgetW ::RefWidget->IO(Int) getWhen ::RefWidget->IO[When] getWindow ::RefWidget->IO(Maybe(RefWindow)) getX ::RefWidget->IO(Int) getY ::RefWidget->IO(Int) handle ::RefWidget->Event->IOInthasCallback ::RefWidget->IO(Bool) hide ::RefWidget->IO() hideSuper ::RefWidget->IO() inside:: (ParentaWidget) =>RefWidget->Refa ->IO(Int) measureLabel ::RefWidget->IO(Size) modifyVisibleFocus ::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->Maybe(Refa ) ->IO() setImage:: (ParentaImage) =>RefWidget->Maybe(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->Maybe(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->IO(Bool)