Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- textEditorNew :: Rectangle -> Maybe Text -> IO (Ref TextEditor)
- textEditorCustom :: Rectangle -> Maybe Text -> Maybe (Ref TextEditor -> IO ()) -> Maybe (CustomWidgetFuncs TextEditor) -> IO (Ref TextEditor)
- data KeyBinding = KeyBinding KeyBindingKeySequence (FunPtr KeyFuncPrim)
- data KeyFunc = Parent a TextEditorBase => KeyFunc (Ref a -> Char -> IO ())
- type KeyFuncPrim = CInt -> Ptr () -> IO ()
- toKeyFuncPrim :: KeyFunc -> IO (FunPtr KeyFuncPrim)
- keyBindingsToArray :: [KeyBinding] -> IO (Ptr ())
- arrayToKeyBindings :: Ptr () -> IO [KeyBinding]
- drawTextEditorBase :: Ref TextEditorBase -> IO ()
- handleTextEditorBase :: Ref TextEditorBase -> Event -> IO (Either UnknownEvent ())
- resizeTextEditorBase :: Ref TextEditorBase -> Rectangle -> IO ()
- hideTextEditorBase :: Ref TextEditorBase -> IO ()
- showWidgetTextEditorBase :: Ref TextEditorBase -> IO ()
Documentation
textEditorNew :: Rectangle -> Maybe Text -> IO (Ref TextEditor) Source #
:: Rectangle | The bounds of this TextEditor |
-> Maybe Text | The TextEditor label |
-> Maybe (Ref TextEditor -> IO ()) | Optional custom drawing function |
-> Maybe (CustomWidgetFuncs TextEditor) | Optional custom widget functions |
-> IO (Ref TextEditor) |
toKeyFuncPrim :: KeyFunc -> IO (FunPtr KeyFuncPrim) Source #
keyBindingsToArray :: [KeyBinding] -> IO (Ptr ()) Source #
arrayToKeyBindings :: Ptr () -> IO [KeyBinding] Source #
drawTextEditorBase :: Ref TextEditorBase -> IO () Source #
handleTextEditorBase :: Ref TextEditorBase -> Event -> IO (Either UnknownEvent ()) Source #
resizeTextEditorBase :: Ref TextEditorBase -> Rectangle -> IO () Source #
hideTextEditorBase :: Ref TextEditorBase -> IO () Source #
showWidgetTextEditorBase :: Ref TextEditorBase -> IO () Source #
Hierarchy
Graphics.UI.FLTK.LowLevel.Base.Widget | v Graphics.UI.FLTK.LowLevel.Base.Group | v Graphics.UI.FLTK.LowLevel.Base.TextDisplay | v Graphics.UI.FLTK.LowLevel.Base.TextEditor
Functions
destroy ::Ref
TextEditorBase
->IO
() draw ::Ref
TextEditorBase
->IO
() getDefaultKeyBindings ::Ref
TextEditorBase
->IO
[KeyBinding
] getInsertMode ::Ref
TextEditorBase
->IO
(Bool
) handle ::Ref
TextEditorBase
->Event
->IO
(Either
UnknownEvent
()) hide ::Ref
TextEditorBase
->IO
() replaceKeyBindings ::Ref
TextEditorBase
-> [KeyBinding
] ->IO
() resize ::Ref
TextEditorBase
->Rectangle
->IO
() setInsertMode ::Ref
TextEditorBase
->Bool
->IO
() showWidget ::Ref
TextEditorBase
->IO
()