| 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 (C2HSImp.Ptr ())) -> (Int -> Int -> Int -> Int -> String -> IO (C2HSImp.Ptr ())) -> (Int -> Int -> Int -> Int -> C2HSImp.Ptr () -> IO (C2HSImp.Ptr ())) -> (Int -> Int -> Int -> Int -> String -> C2HSImp.Ptr () -> IO (C2HSImp.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 => C2HSImp.Ptr () -> Maybe (Ref a -> IO ()) -> CustomWidgetFuncs a -> IO ()
- customWidgetFunctionStruct :: forall a. Parent a Widget => Maybe (Ref a -> IO ()) -> CustomWidgetFuncs a -> IO (C2HSImp.Ptr ())
Constructor
Arguments
| :: 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 (C2HSImp.Ptr ())) | Foreign constructor to call if neither title nor custom functions are given |
| -> (Int -> Int -> Int -> Int -> String -> IO (C2HSImp.Ptr ())) | Foreign constructor to call if only title is given |
| -> (Int -> Int -> Int -> Int -> C2HSImp.Ptr () -> IO (C2HSImp.Ptr ())) | Foreign constructor to call if only custom functions are given |
| -> (Int -> Int -> Int -> Int -> String -> C2HSImp.Ptr () -> IO (C2HSImp.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 => C2HSImp.Ptr () -> Maybe (Ref a -> IO ()) -> CustomWidgetFuncs a -> IO () Source #
customWidgetFunctionStruct :: forall a. Parent a Widget => Maybe (Ref a -> IO ()) -> CustomWidgetFuncs a -> IO (C2HSImp.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)
Orphan instances
| (~) * impl (IO ()) => Op (DoCallback ()) Widget orig impl Source # | |
| (~) * impl (IO Bool) => Op (Changed ()) Widget orig impl Source # | |
| (~) * impl (Maybe (Boxtype, Rectangle) -> IO ()) => Op (DrawFocus ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (DrawBackdrop ()) Widget orig impl Source # | |
| (~) * impl (Boxtype -> Color -> Maybe Rectangle -> IO ()) => Op (DrawBoxWithBoxtype ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (DrawBox ()) Widget orig impl Source # | |
| (~) * impl (IO Bool) => Op (HasCallback ()) Widget orig impl Source # | |
| (~) * impl ((Ref orig -> IO ()) -> IO ()) => Op (SetCallback ()) Widget orig impl Source # | |
| (~) * impl (Rectangle -> IO ()) => Op (Resize ()) Widget orig impl Source # | |
| (~) * impl (Rectangle -> IO ()) => Op (ResizeSuper ()) Widget orig impl Source # | |
| (~) * impl (IO Position) => Op (GetTopWindowOffset ()) Widget orig impl Source # | |
| (~) * impl (IO (Maybe (Ref Window))) => Op (GetTopWindow ()) Widget orig impl Source # | |
| (~) * impl (IO (Maybe (Ref Window))) => Op (GetWindow ()) Widget orig impl Source # | |
| (~) * impl (IO Size) => Op (MeasureLabel ()) Widget orig impl Source # | |
| (~) * impl (Word8 -> Rectangle -> IO ()) => Op (GetDamageInsideWidget ()) Widget orig impl Source # | |
| (~) * impl (Word8 -> IO ()) => Op (GetDamageWithText ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (ClearDamage ()) Widget orig impl Source # | |
| (~) * impl (Word8 -> IO ()) => Op (ClearDamageWithBitmask ()) Widget orig impl Source # | |
| (~) * impl (IO Word8) => Op (GetDamage ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (RedrawLabel ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (Redraw ()) Widget orig impl Source # | |
| (Parent a Widget, (~) * impl (Ref a -> IO Int)) => Op (Inside ()) Widget orig impl Source # | |
| (Parent a Widget, (~) * impl (Ref a -> IO Int)) => Op (Contains ()) Widget orig impl Source # | |
| (~) * impl (IO Bool) => Op (GetVisibleFocus ()) Widget orig impl Source # | |
| (~) * impl (Int -> IO ()) => Op (ModifyVisibleFocus ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (ClearVisibleFocus ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (SetVisibleFocus ()) Widget orig impl Source # | |
| (~) * impl (IO (Either NoChange ())) => Op (TakeFocus ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (ClearActive ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (SetActive ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (ClearChanged ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (SetChanged ()) Widget orig impl Source # | |
| (~) * impl (IO Bool) => Op (Takesevents ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (ClearOutput ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (SetOutput ()) Widget orig impl Source # | |
| (~) * impl (IO Int) => Op (GetOutput ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (Deactivate ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (Activate ()) Widget orig impl Source # | |
| (~) * impl (IO Bool) => Op (ActiveR ()) Widget orig impl Source # | |
| (~) * impl (IO Bool) => Op (Active ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (ClearVisible ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (SetVisible ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (Hide ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (HideSuper ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (ShowWidget ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (ShowWidgetSuper ()) Widget orig impl Source # | |
| (~) * impl (IO Bool) => Op (GetVisibleR ()) Widget orig impl Source # | |
| (~) * impl (IO Bool) => Op (GetVisible ()) Widget orig impl Source # | |
| (~) * impl ([When] -> IO ()) => Op (SetWhen ()) Widget orig impl Source # | |
| (~) * impl (IO [When]) => Op (GetWhen ()) Widget orig impl Source # | |
| (~) * impl (String -> IO ()) => Op (SetTooltip ()) Widget orig impl Source # | |
| (~) * impl (String -> IO ()) => Op (CopyTooltip ()) Widget orig impl Source # | |
| (~) * impl (IO String) => Op (GetTooltip ()) Widget orig impl Source # | |
| (Parent a Image, (~) * impl (Maybe (Ref a) -> IO ())) => Op (SetDeimage ()) Widget orig impl Source # | |
| (~) * impl (IO (Ref Image)) => Op (GetDeimage ()) Widget orig impl Source # | |
| (Parent a Image, (~) * impl (Maybe (Ref a) -> IO ())) => Op (SetImage ()) Widget orig impl Source # | |
| (~) * impl (IO (Ref Image)) => Op (GetImage ()) Widget orig impl Source # | |
| (~) * impl (FontSize -> IO ()) => Op (SetLabelsize ()) Widget orig impl Source # | |
| (~) * impl (IO FontSize) => Op (GetLabelsize ()) Widget orig impl Source # | |
| (~) * impl (Font -> IO ()) => Op (SetLabelfont ()) Widget orig impl Source # | |
| (~) * impl (IO Font) => Op (GetLabelfont ()) Widget orig impl Source # | |
| (~) * impl (Color -> IO ()) => Op (SetLabelcolor ()) Widget orig impl Source # | |
| (~) * impl (IO Color) => Op (GetLabelcolor ()) Widget orig impl Source # | |
| (~) * impl (Labeltype -> IO ()) => Op (SetLabeltype ()) Widget orig impl Source # | |
| (~) * impl (IO Labeltype) => Op (GetLabeltype ()) Widget orig impl Source # | |
| (~) * impl (String -> IO ()) => Op (SetLabel ()) Widget orig impl Source # | |
| (~) * impl (String -> IO ()) => Op (CopyLabel ()) Widget orig impl Source # | |
| (~) * impl (IO String) => Op (GetLabel ()) Widget orig impl Source # | |
| (~) * impl (Color -> IO ()) => Op (SetSelectionColor ()) Widget orig impl Source # | |
| (~) * impl (IO Color) => Op (GetSelectionColor ()) Widget orig impl Source # | |
| (~) * impl (Color -> Color -> IO ()) => Op (SetColorWithBgSel ()) Widget orig impl Source # | |
| (~) * impl (Color -> IO ()) => Op (SetColor ()) Widget orig impl Source # | |
| (~) * impl (IO Color) => Op (GetColor ()) Widget orig impl Source # | |
| (~) * impl (Boxtype -> IO ()) => Op (SetBox ()) Widget orig impl Source # | |
| (~) * impl (IO Boxtype) => Op (GetBox ()) Widget orig impl Source # | |
| (~) * impl (IO Alignments) => Op (GetAlign ()) Widget orig impl Source # | |
| (~) * impl (Alignments -> IO ()) => Op (SetAlign ()) Widget orig impl Source # | |
| ((~) * (Match obj) (FindOp orig orig (GetX ())), (~) * (Match obj) (FindOp orig orig (GetY ())), (~) * (Match obj) (FindOp orig orig (GetW ())), (~) * (Match obj) (FindOp orig orig (GetH ())), Op (GetX ()) obj orig (IO Int), Op (GetY ()) obj orig (IO Int), Op (GetW ()) obj orig (IO Int), Op (GetH ()) obj orig (IO Int), (~) * impl (IO Rectangle)) => Op (GetRectangle ()) Widget orig impl Source # | |
| (~) * impl (IO Int) => Op (GetH ()) Widget orig impl Source # | |
| (~) * impl (IO Int) => Op (GetW ()) Widget orig impl Source # | |
| (~) * impl (IO Int) => Op (GetY ()) Widget orig impl Source # | |
| (~) * impl (IO Int) => Op (GetX ()) Widget orig impl Source # | |
| (~) * impl (Maybe (Rectangle, Alignments) -> IO ()) => Op (DrawLabel ()) Widget orig impl Source # | |
| (~) * impl (Word8 -> IO ()) => Op (SetType ()) Widget orig impl Source # | |
| (~) * impl (IO Word8) => Op (GetType_ ()) Widget orig impl Source # | |
| (Parent a Group, (~) * impl (Maybe (Ref a) -> IO ())) => Op (SetParent ()) Widget orig impl Source # | |
| (~) * impl (IO (Maybe (Ref Group))) => Op (GetParent ()) Widget orig impl Source # | |
| (~) * impl (Event -> IO Int) => Op (Handle ()) Widget orig impl Source # | |
| (~) * impl (IO ()) => Op (Destroy ()) Widget orig impl Source # | |