{-# LANGUAGE CPP, ExistentialQuantification, TypeSynonymInstances, FlexibleInstances, MultiParamTypeClasses, FlexibleContexts, ScopedTypeVariables #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module Graphics.UI.FLTK.LowLevel.Input ( FlInputType(..), -- * Constructor inputNew, inputCustom -- * Hierarchy -- -- $hierarchy -- * Input -- -- $Input ) where #include "Fl_ExportMacros.h" #include "Fl_Types.h" #include "Fl_InputC.h" #include "Fl_Input_C.h" #include "Fl_Int_InputC.h" #include "Fl_Float_InputC.h" #include "Fl_Secret_InputC.h" #include "Fl_Multiline_InputC.h" #include "Fl_OutputC.h" #include "Fl_Multiline_OutputC.h" #include "Fl_WidgetC.h" import C2HS hiding (cFromEnum, cFromBool, cToBool,cToEnum) import Graphics.UI.FLTK.LowLevel.Fl_Enumerations import Graphics.UI.FLTK.LowLevel.Fl_Types import Graphics.UI.FLTK.LowLevel.Utils import Graphics.UI.FLTK.LowLevel.Hierarchy import Graphics.UI.FLTK.LowLevel.Dispatch import qualified Data.Text as T import Graphics.UI.FLTK.LowLevel.Widget #c enum FlInputType { FlNormalInput = FL_NORMAL_INPUT, FlFloatInput = FL_FLOAT_INPUT, FlIntInput = FL_INT_INPUT, FlMultilineInput = FL_MULTILINE_INPUT, FlSecretInput = FL_SECRET_INPUT }; #endc {#enum FlInputType {}#} {# fun Fl_OverriddenInput_New_WithLabel as overriddenWidgetNewWithLabel' { `Int',`Int',`Int',`Int', unsafeToCString `T.Text', id `Ptr ()'} -> `Ptr ()' id #} {# fun Fl_OverriddenInput_New as overriddenWidgetNew' { `Int',`Int',`Int',`Int', id `Ptr ()'} -> `Ptr ()' id #} inputCustom :: Rectangle -- ^ The bounds of this Input -> Maybe T.Text -- ^ The Input label -> Maybe (Ref Input -> IO ()) -- ^ Optional custom drawing function -> Maybe (CustomWidgetFuncs Input) -- ^ Optional custom widget functions -> IO (Ref Input) inputCustom rectangle l' draw' funcs' = widgetMaker rectangle l' draw' funcs' overriddenWidgetNew' overriddenWidgetNewWithLabel' {# fun Fl_Input_New as inputNew' { `Int',`Int',`Int',`Int' } -> `Ptr ()' id #} {# fun Fl_Input_New_WithLabel as inputNewWithLabel' { `Int',`Int',`Int',`Int', unsafeToCString `T.Text'} -> `Ptr ()' id #} {# fun Fl_Multiline_Input_New as multilineInputNew' { `Int',`Int',`Int',`Int' } -> `Ptr ()' id #} {# fun Fl_Multiline_Input_New_WithLabel as multilineInputNewWithLabel' { `Int',`Int',`Int',`Int', unsafeToCString `T.Text'} -> `Ptr ()' id #} {# fun Fl_Float_Input_New as floatInputNew' { `Int',`Int',`Int',`Int' } -> `Ptr ()' id #} {# fun Fl_Float_Input_New_WithLabel as floatInputNewWithLabel' { `Int',`Int',`Int',`Int', unsafeToCString `T.Text'} -> `Ptr ()' id #} {# fun Fl_Int_Input_New as intInputNew' { `Int',`Int',`Int',`Int' } -> `Ptr ()' id #} {# fun Fl_Int_Input_New_WithLabel as intInputNewWithLabel' { `Int',`Int',`Int',`Int', unsafeToCString `T.Text'} -> `Ptr ()' id #} {# fun Fl_Secret_Input_New as secretInputNew' { `Int',`Int',`Int',`Int' } -> `Ptr ()' id #} {# fun Fl_Secret_Input_New_WithLabel as secretInputNewWithLabel' { `Int',`Int',`Int',`Int', unsafeToCString `T.Text'} -> `Ptr ()' id #} inputNew :: Rectangle -> Maybe T.Text -> Maybe FlInputType -> IO (Ref Input) inputNew rectangle l' flInputType = let (x_pos, y_pos, width, height) = fromRectangle rectangle constructor = case flInputType of Just FlNormalInput -> maybe inputNew' (\l -> (\x y w h -> inputNewWithLabel' x y w h l)) l' Just FlFloatInput -> maybe floatInputNew' (\l -> (\x y w h -> floatInputNewWithLabel' x y w h l)) l' Just FlIntInput -> maybe intInputNew' (\l -> (\x y w h -> intInputNewWithLabel' x y w h l)) l' Just FlMultilineInput -> maybe multilineInputNew' (\l -> (\x y w h -> multilineInputNewWithLabel' x y w h l)) l' Just FlSecretInput -> maybe secretInputNew' (\l -> (\x y w h -> secretInputNewWithLabel' x y w h l)) l' Nothing -> inputNew' in constructor x_pos y_pos width height >>= toRef {# fun Fl_Input_Destroy as inputDestroy' { id `Ptr ()' } -> `()' supressWarningAboutRes #} instance (impl ~ (IO ())) => Op (Destroy ()) Input orig impl where runOp _ _ win = swapRef win $ \winPtr -> do inputDestroy' winPtr return nullPtr {#fun Fl_Input_handle as inputHandle' { id `Ptr ()', id `CInt' } -> `Int' #} {#fun Fl_Secret_Input_handle as secretInputHandle' { id `Ptr ()', id `CInt' } -> `Int' #} instance (impl ~ (Event -> IO (Either UnknownEvent ()))) => Op (Handle ()) Input orig impl where runOp _ _ input event = withRef input (\p -> do t <- getInputType input case t of FlSecretInput -> secretInputHandle' p (fromIntegral . fromEnum $ event) _ -> inputHandle' p (fromIntegral . fromEnum $ event) ) >>= return . successOrUnknownEvent {# fun Fl_Widget_set_type as setType' { id `Ptr ()',`Word8' } -> `()' supressWarningAboutRes #} instance (impl ~ (FlInputType -> IO ())) => Op (SetType ()) Input orig impl where runOp _ _ widget t = withRef widget $ \widgetPtr -> setType' widgetPtr (fromInteger $ toInteger $ fromEnum t) {# fun Fl_Input_set_value as setValue' { id `Ptr ()', unsafeToCString `T.Text' } -> `Int' #} {# fun Fl_Input_set_value_with_length as setValueWithLength' { id `Ptr ()', unsafeToCString `T.Text',`Int' } -> `Int' #} instance (impl ~ (T.Text -> Maybe Int -> IO (Int))) => Op (SetValue ()) Input orig impl where runOp _ _ input text l' = case l' of Nothing -> withRef input $ \inputPtr -> setValue' inputPtr text Just l -> withRef input $ \inputPtr -> setValueWithLength' inputPtr text l {# fun Fl_Input_static_value as staticValue' { id `Ptr ()', unsafeToCString `T.Text' } -> `Int' #} {# fun Fl_Input_static_value_with_length as staticValueWithLength' { id `Ptr ()', unsafeToCString `T.Text',`Int' } -> `Int' #} instance (impl ~ (T.Text -> Maybe Int -> IO (Either NoChange ()))) => Op (StaticValue ()) Input orig impl where runOp _ _ input text l'= do status' <- case l' of Nothing -> withRef input $ \inputPtr -> staticValue' inputPtr text Just l -> withRef input $ \inputPtr -> staticValueWithLength' inputPtr text l return $ successOrNoChange status' {# fun Fl_Input_value as value' { id `Ptr ()' } -> `T.Text' unsafeFromCString #} instance (impl ~ ( IO T.Text)) => Op (GetValue ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> value' inputPtr {# fun Fl_Input_index as index' { id `Ptr ()',`Int' } -> `Int' #} instance (impl ~ (Int -> IO (Char))) => Op (Index ()) Input orig impl where runOp _ _ input i = withRef input $ \inputPtr -> index' inputPtr i >>= return . toEnum {# fun Fl_Input_set_size as setSize' { id `Ptr ()',`Int',`Int' } -> `()' #} instance (impl ~ (Size -> IO ())) => Op (SetSize ()) Input orig impl where runOp _ _ input (Size (Width w') (Height h')) = withRef input $ \inputPtr -> setSize' inputPtr w' h' {# fun Fl_Input_maximum_size as maximumSize' { id `Ptr ()' } -> `Int' #} instance (impl ~ ( IO (Int))) => Op (GetMaximumSize ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> maximumSize' inputPtr {# fun Fl_Input_size as size' { id `Ptr ()' } -> `Int' #} instance (impl ~ ( IO (Int))) => Op (GetSize ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> size' inputPtr {# fun Fl_Input_set_maximum_size as setMaximumSize' { id `Ptr ()',`Int' } -> `()' #} instance (impl ~ (Int -> IO ())) => Op (SetMaximumSize ()) Input orig impl where runOp _ _ input m = withRef input $ \inputPtr -> setMaximumSize' inputPtr m {# fun Fl_Input_position as position' { id `Ptr ()' } -> `Int' #} instance (impl ~ ( IO (Int))) => Op (GetPosition ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> position' inputPtr {# fun Fl_Input_mark as mark' { id `Ptr ()' } -> `Int' #} instance (impl ~ ( IO (Int))) => Op (GetMark ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> mark' inputPtr {# fun Fl_Input_set_position_with_cursor_mark as setPositionWithCursorMark' { id `Ptr ()',`Int',`Int' } -> `Int' #} {# fun Fl_Input_set_position_n_n as setPositionNN' { id `Ptr ()',`Int' } -> `Int' #} instance (impl ~ (Int -> Maybe Int -> IO (Either NoChange ()))) => Op (SetPosition ()) Input orig impl where runOp _ _ input point mark = do status' <- case mark of Just m -> withRef input $ \inputPtr -> setPositionWithCursorMark' inputPtr point m Nothing -> withRef input $ \inputPtr -> setPositionNN' inputPtr point return $ successOrNoChange status' {# fun Fl_Input_set_mark as setMark' { id `Ptr ()',`Int' } -> `Int' #} instance (impl ~ (Int -> IO (Either NoChange ()))) => Op (SetMark ()) Input orig impl where runOp _ _ input m = withRef input $ \inputPtr -> setMark' inputPtr m >>= return . successOrNoChange {# fun Fl_Input_replace as replace' { id `Ptr ()',`Int',`Int', unsafeToCString `T.Text' } -> `Int' #} instance (impl ~ (Int -> Int -> T.Text -> IO (Either NoChange ()))) => Op (Replace ()) Input orig impl where runOp _ _ input b e text = withRef input $ \inputPtr -> replace' inputPtr b e text >>= return . successOrNoChange {# fun Fl_Input_cut as cut' { id `Ptr ()' } -> `Int' #} instance (impl ~ ( IO (Either NoChange ()))) => Op (Cut ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> cut' inputPtr >>= return . successOrNoChange {# fun Fl_Input_cut_bytes as cutBytes' { id `Ptr ()',`Int' } -> `Int' #} instance (impl ~ (Int -> IO (Either NoChange ()))) => Op (CutFromCursor ()) Input orig impl where runOp _ _ input n = withRef input $ \inputPtr -> cutBytes' inputPtr n >>= return . successOrNoChange {# fun Fl_Input_cut_range as cutRange' { id `Ptr ()',`Int',`Int' } -> `Int' #} instance (impl ~ (Int -> Int -> IO (Either NoChange ()))) => Op (CutRange ()) Input orig impl where runOp _ _ input a b = withRef input $ \inputPtr -> cutRange' inputPtr a b >>= return . successOrNoChange {# fun Fl_Input_insert as insert' { id `Ptr ()', unsafeToCString `T.Text' } -> `Int' #} instance (impl ~ (T.Text -> IO (Either NoChange ()))) => Op (Insert ()) Input orig impl where runOp _ _ input t = withRef input $ \inputPtr -> insert' inputPtr t >>= return . successOrNoChange {# fun Fl_Input_insert_with_length as insertWithLength' { id `Ptr ()', unsafeToCString `T.Text',`Int' } -> `Int' #} instance (impl ~ (T.Text -> Int -> IO (Either NoChange ()))) => Op (InsertWithLength ()) Input orig impl where runOp _ _ input t l = withRef input $ \inputPtr -> insertWithLength' inputPtr t l >>= return . successOrNoChange {# fun Fl_Input_copy as copy' { id `Ptr ()',`Int' } -> `Int' #} instance (impl ~ (Clipboard -> IO (Either NoChange ()))) => Op (Copy ()) Input orig impl where runOp _ _ input clipboard = do status' <- case clipboard of InternalClipboard -> withRef input $ \inputPtr -> copy' inputPtr 1 SharedClipboard -> withRef input $ \inputPtr -> copy' inputPtr 0 return $ successOrNoChange status' {# fun Fl_Input_undo as undo' { id `Ptr ()' } -> `Int' #} instance (impl ~ ( IO (Either NoChange ()))) => Op (Undo ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> undo' inputPtr >>= return . successOrNoChange {# fun Fl_Input_copy_cuts as copyCuts' { id `Ptr ()' } -> `Int' #} instance (impl ~ ( IO (Either NoChange ()))) => Op (CopyCuts ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> copyCuts' inputPtr >>= return . successOrNoChange {# fun Fl_Input_shortcut as shortcut' { id `Ptr ()' } -> `CInt' #} instance (impl ~ ( IO (Maybe ShortcutKeySequence))) => Op (GetShortcut ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> shortcut' inputPtr >>= return . cIntToKeySequence {# fun Fl_Input_set_shortcut as setShortcut' { id `Ptr ()',id `CInt' } -> `()' #} instance (impl ~ (ShortcutKeySequence -> IO ())) => Op (SetShortcut ()) Input orig impl where runOp _ _ input (ShortcutKeySequence modifiers char) = withRef input $ \inputPtr -> setShortcut' inputPtr (keySequenceToCInt modifiers char) {# fun Fl_Input_textfont as textfont' { id `Ptr ()' } -> `Font' cToFont #} instance (impl ~ ( IO (Font))) => Op (GetTextfont ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> textfont' inputPtr {# fun Fl_Input_set_textfont as setTextfont' { id `Ptr ()',cFromFont `Font' } -> `()' #} instance (impl ~ (Font -> IO ())) => Op (SetTextfont ()) Input orig impl where runOp _ _ input s = withRef input $ \inputPtr -> setTextfont' inputPtr s {# fun Fl_Input_textsize as textsize' { id `Ptr ()' } -> `CInt' id #} instance (impl ~ ( IO (FontSize))) => Op (GetTextsize ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> textsize' inputPtr >>= return . FontSize {# fun Fl_Input_set_textsize as setTextsize' { id `Ptr ()', id `CInt' } -> `()' #} instance (impl ~ (FontSize -> IO ())) => Op (SetTextsize ()) Input orig impl where runOp _ _ input (FontSize s) = withRef input $ \inputPtr -> setTextsize' inputPtr s {# fun Fl_Input_textcolor as textcolor' { id `Ptr ()' } -> `Color' cToColor #} instance (impl ~ ( IO (Color))) => Op (GetTextcolor ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> textcolor' inputPtr {# fun Fl_Input_set_textcolor as setTextcolor' { id `Ptr ()',cFromColor `Color' } -> `()' #} instance (impl ~ (Color -> IO ())) => Op (SetTextcolor ()) Input orig impl where runOp _ _ input n = withRef input $ \inputPtr -> setTextcolor' inputPtr n {# fun Fl_Input_cursor_color as cursorColor' { id `Ptr ()' } -> `Color' cToColor #} instance (impl ~ ( IO (Color))) => Op (GetCursorColor ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> cursorColor' inputPtr {# fun Fl_Input_set_cursor_color as setCursorColor' { id `Ptr ()',cFromColor `Color' } -> `()' #} instance (impl ~ (Color -> IO ())) => Op (SetCursorColor ()) Input orig impl where runOp _ _ input n = withRef input $ \inputPtr -> setCursorColor' inputPtr n {# fun Fl_Input_input_type as inputType' { id `Ptr ()' } -> `Int' #} instance (impl ~ ( IO (FlInputType))) => Op (GetInputType ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> inputType' inputPtr >>= return . toEnum . fromIntegral {# fun Fl_Input_set_input_type as setInputType' { id `Ptr ()',`Int' } -> `()' #} instance (impl ~ (FlInputType -> IO ())) => Op (SetInputType ()) Input orig impl where runOp _ _ input t = withRef input $ \inputPtr -> setInputType' inputPtr (fromIntegral (fromEnum t)) {# fun Fl_Input_readonly as readonly' { id `Ptr ()' } -> `Int' #} instance (impl ~ ( IO (Int))) => Op (GetReadonly ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> readonly' inputPtr {# fun Fl_Input_set_readonly as setReadonly' { id `Ptr ()',`Int' } -> `()' #} instance (impl ~ (Int -> IO ())) => Op (SetReadonly ()) Input orig impl where runOp _ _ input b = withRef input $ \inputPtr -> setReadonly' inputPtr b {# fun Fl_Input_wrap as wrap' { id `Ptr ()' } -> `Int' #} instance (impl ~ ( IO (Bool))) => Op (GetWrap ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> wrap' inputPtr >>= return . cToBool {# fun Fl_Input_set_wrap as setWrap' { id `Ptr ()', `Int' } -> `()' #} instance (impl ~ (Bool -> IO ())) => Op (SetWrap ()) Input orig impl where runOp _ _ input b = withRef input $ \inputPtr -> setWrap' inputPtr (cFromBool b) {# fun Fl_Input_set_tab_nav as setTabNav' { id `Ptr ()', `Int'} -> `()' #} instance (impl ~ (Bool -> IO ())) => Op (SetTabNav ()) Input orig impl where runOp _ _ input val = withRef input $ \inputPtr -> setTabNav' inputPtr (cFromBool val) {# fun Fl_Input_tab_nav as tabNav' { id `Ptr ()' } -> `Int' #} instance (impl ~ ( IO (Bool))) => Op (GetTabNav ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> tabNav' inputPtr >>= return . cToBool {# fun Fl_Input_draw as draw'' { id `Ptr ()' } -> `()' #} instance (impl ~ ( IO ())) => Op (Draw ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> draw'' inputPtr {# fun Fl_Input_draw_super as drawSuper' { id `Ptr ()' } -> `()' supressWarningAboutRes #} instance (impl ~ ( IO ())) => Op (DrawSuper ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> drawSuper' inputPtr {# fun Fl_Input_handle_super as handleSuper' { id `Ptr ()',`Int' } -> `Int' #} instance (impl ~ (Event -> IO (Either UnknownEvent ()))) => Op (HandleSuper ()) Input orig impl where runOp _ _ input event = withRef input $ \inputPtr -> handleSuper' inputPtr (fromIntegral (fromEnum event)) >>= return . successOrUnknownEvent {# fun Fl_Input_resize as resize' { id `Ptr ()',`Int',`Int',`Int',`Int' } -> `()' supressWarningAboutRes #} instance (impl ~ (Rectangle -> IO ())) => Op (Resize ()) Input orig impl where runOp _ _ input rectangle = withRef input $ \inputPtr -> do let (x_pos,y_pos,w_pos,h_pos) = fromRectangle rectangle resize' inputPtr x_pos y_pos w_pos h_pos {# fun Fl_Input_resize_super as resizeSuper' { id `Ptr ()',`Int',`Int',`Int',`Int' } -> `()' supressWarningAboutRes #} instance (impl ~ (Rectangle -> IO ())) => Op (ResizeSuper ()) Input orig impl where runOp _ _ input rectangle = let (x_pos, y_pos, width, height) = fromRectangle rectangle in withRef input $ \inputPtr -> resizeSuper' inputPtr x_pos y_pos width height {# fun Fl_Input_hide as hide' { id `Ptr ()' } -> `()' #} instance (impl ~ ( IO ())) => Op (Hide ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> hide' inputPtr {# fun Fl_Input_hide_super as hideSuper' { id `Ptr ()' } -> `()' supressWarningAboutRes #} instance (impl ~ ( IO ())) => Op (HideSuper ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> hideSuper' inputPtr {# fun Fl_Input_show as show' { id `Ptr ()' } -> `()' #} instance (impl ~ ( IO ())) => Op (ShowWidget ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> show' inputPtr {# fun Fl_Input_show_super as showSuper' { id `Ptr ()' } -> `()' supressWarningAboutRes #} instance (impl ~ ( IO ())) => Op (ShowWidgetSuper ()) Input orig impl where runOp _ _ input = withRef input $ \inputPtr -> showSuper' inputPtr -- $Input -- @ -- copy :: 'Ref' 'Input' -> 'Clipboard' -> 'IO' ('Either' 'NoChange' ()) -- -- copyCuts :: 'Ref' 'Input' -> 'IO' ('Either' 'NoChange' ()) -- -- cut :: 'Ref' 'Input' -> 'IO' ('Either' 'NoChange' ()) -- -- cutFromCursor :: 'Ref' 'Input' -> 'Int' -> 'IO' ('Either' 'NoChange' ()) -- -- cutRange :: 'Ref' 'Input' -> 'Int' -> 'Int' -> 'IO' ('Either' 'NoChange' ()) -- -- destroy :: 'Ref' 'Input' -> 'IO' () -- -- draw :: 'Ref' 'Input' -> 'IO' () -- -- drawSuper :: 'Ref' 'Input' -> 'IO' () -- -- getCursorColor :: 'Ref' 'Input' -> 'IO' ('Color') -- -- getInputType :: 'Ref' 'Input' -> 'IO' ('FlInputType') -- -- getMark :: 'Ref' 'Input' -> 'IO' ('Int') -- -- getMaximumSize :: 'Ref' 'Input' -> 'IO' ('Int') -- -- getPosition :: 'Ref' 'Input' -> 'IO' ('Int') -- -- getReadonly :: 'Ref' 'Input' -> 'IO' ('Int') -- -- getShortcut :: 'Ref' 'Input' -> 'IO' ('Maybe' 'ShortcutKeySequence') -- -- getSize :: 'Ref' 'Input' -> 'IO' ('Int') -- -- getTabNav :: 'Ref' 'Input' -> 'IO' ('Bool') -- -- getTextcolor :: 'Ref' 'Input' -> 'IO' ('Color') -- -- getTextfont :: 'Ref' 'Input' -> 'IO' ('Font') -- -- getTextsize :: 'Ref' 'Input' -> 'IO' ('FontSize') -- -- getValue :: 'Ref' 'Input' -> 'IO' 'T.Text' -- -- getWrap :: 'Ref' 'Input' -> 'IO' ('Bool') -- -- handle :: 'Ref' 'Input' -> 'Event' -> 'IO' ('Either' 'UnknownEvent' ()) -- -- handleSuper :: 'Ref' 'Input' -> 'Event' -> 'IO' ('Either' 'UnknownEvent' ()) -- -- hide :: 'Ref' 'Input' -> 'IO' () -- -- hideSuper :: 'Ref' 'Input' -> 'IO' () -- -- index :: 'Ref' 'Input' -> 'Int' -> 'IO' ('Char') -- -- insert :: 'Ref' 'Input' -> 'T.Text' -> 'IO' ('Either' 'NoChange' ()) -- -- insertWithLength :: 'Ref' 'Input' -> 'T.Text' -> 'Int' -> 'IO' ('Either' 'NoChange' ()) -- -- replace :: 'Ref' 'Input' -> 'Int' -> 'Int' -> 'T.Text' -> 'IO' ('Either' 'NoChange' ()) -- -- resize :: 'Ref' 'Input' -> 'Rectangle' -> 'IO' () -- -- resizeSuper :: 'Ref' 'Input' -> 'Rectangle' -> 'IO' () -- -- setCursorColor :: 'Ref' 'Input' -> 'Color' -> 'IO' () -- -- setInputType :: 'Ref' 'Input' -> 'FlInputType' -> 'IO' () -- -- setMark :: 'Ref' 'Input' -> 'Int' -> 'IO' ('Either' 'NoChange' ()) -- -- setMaximumSize :: 'Ref' 'Input' -> 'Int' -> 'IO' () -- -- setPosition :: 'Ref' 'Input' -> 'Int' -> 'Maybe' 'Int' -> 'IO' ('Either' 'NoChange' ()) -- -- setReadonly :: 'Ref' 'Input' -> 'Int' -> 'IO' () -- -- setShortcut :: 'Ref' 'Input' -> 'ShortcutKeySequence' -> 'IO' () -- -- setSize :: 'Ref' 'Input' -> 'Size' -> 'IO' () -- -- setTabNav :: 'Ref' 'Input' -> 'Bool' -> 'IO' () -- -- setTextcolor :: 'Ref' 'Input' -> 'Color' -> 'IO' () -- -- setTextfont :: 'Ref' 'Input' -> 'Font' -> 'IO' () -- -- setTextsize :: 'Ref' 'Input' -> 'FontSize' -> 'IO' () -- -- setType :: 'Ref' 'Input' -> 'FlInputType' -> 'IO' () -- -- setValue :: 'Ref' 'Input' -> 'T.Text' -> 'Maybe' 'Int' -> 'IO' ('Int') -- -- setWrap :: 'Ref' 'Input' -> 'Bool' -> 'IO' () -- -- showWidget :: 'Ref' 'Input' -> 'IO' () -- -- showWidgetSuper :: 'Ref' 'Input' -> 'IO' () -- -- staticValue :: 'Ref' 'Input' -> 'T.Text' -> 'Maybe' 'Int' -> 'IO' ('Either' 'NoChange' ()) -- -- undo :: 'Ref' 'Input' -> 'IO' ('Either' 'NoChange' ()) -- @ -- $hierarchy -- @ -- "Graphics.UI.FLTK.LowLevel.Widget" -- | -- v -- "Graphics.UI.FLTK.LowLevel.Input" -- @