Safe Haskell | None |
---|---|
Language | Haskell2010 |
- widgetCustom :: Rectangle -> Maybe Text -> (Ref Widget -> IO ()) -> CustomWidgetFuncs Widget -> IO (Ref Widget)
- widgetMaker :: forall a. Parent a Widget => Rectangle -> Maybe Text -> Maybe (Ref a -> IO ()) -> Maybe (CustomWidgetFuncs a) -> (Int -> Int -> Int -> Int -> Ptr () -> IO (Ptr ())) -> (Int -> Int -> Int -> Int -> Text -> Ptr () -> IO (Ptr ())) -> IO (Ref a)
- data CustomWidgetFuncs a = CustomWidgetFuncs {
- handleCustom :: Maybe (Ref a -> Event -> IO (Either UnknownEvent ()))
- 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
:: Parent a Widget | |
=> Rectangle | Position and size |
-> Maybe Text | Title |
-> Maybe (Ref a -> IO ()) | Custom drawing function |
-> Maybe (CustomWidgetFuncs a) | Custom functions |
-> (Int -> Int -> Int -> Int -> Ptr () -> IO (Ptr ())) | Foreign constructor to call if only custom functions are given |
-> (Int -> Int -> Int -> Int -> Text -> 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
CustomWidgetFuncs | |
|
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 ::Ref
Widget
->IO
() active ::Ref
Widget
->IO
(Bool
) activeR ::Ref
Widget
->IO
(Bool
) changed ::Ref
Widget
->IO
(Bool
) clearActive ::Ref
Widget
->IO
() clearChanged ::Ref
Widget
->IO
() clearDamage ::Ref
Widget
->IO
() clearDamageWithBitmask ::Ref
Widget
->Word8
->IO
() clearOutput ::Ref
Widget
->IO
() clearVisible ::Ref
Widget
->IO
() clearVisibleFocus ::Ref
Widget
->IO
() contains:: (Parent
aWidget
) =>Ref
Widget
->Ref
a ->IO
Int
copyLabel ::Ref
Widget
->Text
->IO
() copyTooltip ::Ref
Widget
->Text
->IO
() deactivate ::Ref
Widget
->IO
() destroy ::Ref
Widget
->IO
() doCallback ::Ref
Widget
->IO
() drawBackdrop ::Ref
Widget
->IO
() drawBox ::Ref
Widget
->IO
() drawBoxWithBoxtype ::Ref
Widget
->Boxtype
->Color
->Maybe
Rectangle
->IO
() drawFocus ::Ref
Widget
->Maybe
(Boxtype
,Rectangle
) ->IO
() drawLabel ::Ref
Widget
->Maybe
('Rectangle,Alignments') ->IO
() getAlign ::Ref
Widget
->IO
Alignments
getBox ::Ref
Widget
->IO
(Boxtype
) getColor ::Ref
Widget
->IO
(Color
) getDamage ::Ref
Widget
->IO
(Word8
) getDamageInsideWidget ::Ref
Widget
->Word8
->Rectangle
->IO
() getDamageWithText ::Ref
Widget
->Word8
->IO
() getDeimage ::Ref
Widget
->IO
(Ref
Image
) getH ::Ref
Widget
->IO
(Int
) getImage ::Ref
Widget
->IO
(Ref
Image
) getLabel ::Ref
Widget
->IO
Text
getLabelcolor ::Ref
Widget
->IO
(Color
) getLabelfont ::Ref
Widget
->IO
(Font
) getLabelsize ::Ref
Widget
->IO
(FontSize
) getLabeltype ::Ref
Widget
->IO
(Labeltype
) getOutput ::Ref
Widget
->IO
(Int
) getParent ::Ref
Widget
->IO
(Maybe
(Ref
Group
)) getRectangle:: (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
,)) =>Ref
Widget
->IO
Rectangle
getSelectionColor ::Ref
Widget
->IO
(Color
) getTooltip ::Ref
Widget
->IO
Text
getTopWindow ::Ref
Widget
->IO
(Maybe
(Ref
Window
)) getTopWindowOffset ::Ref
Widget
->IO
(Position
) getType_ ::Ref
Widget
->IO
(Word8
) getVisible ::Ref
Widget
->IO
Bool
getVisibleFocus ::Ref
Widget
->IO
(Bool
) getVisibleR ::Ref
Widget
->IO
Bool
getW ::Ref
Widget
->IO
(Int
) getWhen ::Ref
Widget
->IO
[When
] getWindow ::Ref
Widget
->IO
(Maybe
(Ref
Window
)) getX ::Ref
Widget
->IO
(Int
) getY ::Ref
Widget
->IO
(Int
) handle ::Ref
Widget
-> (Event
->IO
(Either
UnknownEvent
())) hasCallback ::Ref
Widget
->IO
(Bool
) hide ::Ref
Widget
->IO
() hideSuper ::Ref
Widget
->IO
() inside:: (Parent
aWidget
) =>Ref
Widget
->Ref
a ->IO
(Int
) measureLabel ::Ref
Widget
->IO
(Size
) modifyVisibleFocus ::Ref
Widget
->Int
->IO
() redraw ::Ref
Widget
->IO
() redrawLabel ::Ref
Widget
->IO
() resize ::Ref
Widget
->Rectangle
->IO
() resizeSuper ::Ref
Widget
->Rectangle
->IO
() setActive ::Ref
Widget
->IO
() setAlign ::Ref
Widget
->Alignments
->IO
() setBox ::Ref
Widget
->Boxtype
->IO
() setCallback ::Ref
Widget
-> (Ref
orig ->IO
()) ->IO
() setChanged ::Ref
Widget
->IO
() setColor ::Ref
Widget
->Color
->IO
() setColorWithBgSel ::Ref
Widget
->Color
->Color
->IO
() setDeimage:: (Parent
aImage
) =>Ref
Widget
->Maybe
(Ref
a ) ->IO
() setImage:: (Parent
aImage
) =>Ref
Widget
->Maybe
(Ref
a ) ->IO
() setLabel ::Ref
Widget
->Text
->IO
() setLabelcolor ::Ref
Widget
->Color
->IO
() setLabelfont ::Ref
Widget
->Font
->IO
() setLabelsize ::Ref
Widget
->FontSize
->IO
() setLabeltype ::Ref
Widget
->Labeltype
->IO
() setOutput ::Ref
Widget
->IO
() setParent:: (Parent
aGroup
) =>Ref
Widget
->Maybe
(Ref
a) ->IO
() setSelectionColor ::Ref
Widget
->Color
->IO
() setTooltip ::Ref
Widget
->Text
->IO
() setType ::Ref
Widget
->Word8
->IO
() setVisible ::Ref
Widget
->IO
() setVisibleFocus ::Ref
Widget
->IO
() setWhen ::Ref
Widget
-> [When
] ->IO
() showWidget ::Ref
Widget
->IO
() showWidgetSuper ::Ref
Widget
->IO
() takeFocus ::Ref
Widget
->IO
(Either
NoChange
()) takesevents ::Ref
Widget
->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 (Text -> IO ()) => Op (SetTooltip ()) Widget orig impl Source # | |
(~) * impl (Text -> IO ()) => Op (CopyTooltip ()) Widget orig impl Source # | |
(~) * impl (IO Text) => 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 (Text -> IO ()) => Op (SetLabel ()) Widget orig impl Source # | |
(~) * impl (Text -> IO ()) => Op (CopyLabel ()) Widget orig impl Source # | |
(~) * impl (IO Text) => 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 (Either UnknownEvent ())) => Op (Handle ()) Widget orig impl Source # | |
(~) * impl (IO ()) => Op (Destroy ()) Widget orig impl Source # | |