| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.UI.FLTK.LowLevel.TextEditor
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 FunRef
- data KeyFunc = Parent a TextEditor => KeyFunc (Ref a -> Char -> IO ())
- type KeyFuncPrim = CInt -> Ptr () -> IO ()
- keyFuncToFunRef :: KeyFunc -> IO FunRef
- toKeyFuncPrim :: KeyFunc -> IO (FunPtr KeyFuncPrim)
- keyBindingsToArray :: [KeyBinding] -> IO (Ptr ())
- arrayToKeyBindings :: Ptr () -> IO [KeyBinding]
Documentation
textEditorNew :: Rectangle -> Maybe Text -> IO (Ref TextEditor) Source #
Arguments
| :: 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) |
data KeyBinding Source #
Constructors
| KeyBinding KeyBindingKeySequence FunRef |
toKeyFuncPrim :: KeyFunc -> IO (FunPtr KeyFuncPrim) Source #
keyBindingsToArray :: [KeyBinding] -> IO (Ptr ()) Source #
arrayToKeyBindings :: Ptr () -> IO [KeyBinding] Source #
Hierarchy
Graphics.UI.FLTK.LowLevel.Widget | v Graphics.UI.FLTK.LowLevel.Group | v Graphics.UI.FLTK.LowLevel.TextDisplay | v Graphics.UI.FLTK.LowLevel.TextEditor
Functions
destroy ::RefTextEditor->IO() draw ::RefTextEditor->IO() drawSuper ::RefTextEditor->IO() getDefaultKeyBindings ::RefTextEditor->IO[KeyBinding] getInsertMode ::RefTextEditor->IO(Bool) handle ::RefTextEditor->Event->IO(EitherUnknownEvent()) handleSuper ::RefTextEditor->Event->IO(EitherUnknownEvent()) hide ::RefTextEditor->IO() hideSuper ::RefTextEditor->IO() replaceKeyBindings ::RefTextEditor-> [KeyBinding] ->IO() resize ::RefTextEditor->Rectangle->IO() resizeSuper ::RefTextEditor->Rectangle->IO() setInsertMode ::RefTextEditor->Bool->IO() showWidget ::RefTextEditor->IO() showWidgetSuper ::RefTextEditor->IO()