Safe Haskell | None |
---|
- hasInputFocus :: HG3DClass -> IO Bool
- isReadOnly :: HG3DClass -> IO Bool
- getCaratIndex :: HG3DClass -> IO Int
- getSelectionStartIndex :: HG3DClass -> IO Int
- getSelectionEndIndex :: HG3DClass -> IO Int
- getSelectionLength :: HG3DClass -> IO Int
- getMaxTextLength :: HG3DClass -> IO Int
- isWordWrapped :: HG3DClass -> IO Bool
- getVertScrollbar :: HG3DClass -> IO HG3DClass
- isVertScrollbarAlwaysShown :: HG3DClass -> IO Bool
- getHorzScrollbar :: HG3DClass -> IO HG3DClass
- getLineNumberFromIndex :: HG3DClass -> Int -> IO Int
- initialiseComponents :: HG3DClass -> IO ()
- setReadOnly :: HG3DClass -> Bool -> IO ()
- setCaratIndex :: HG3DClass -> Int -> IO ()
- setSelection :: HG3DClass -> Int -> Int -> IO ()
- setMaxTextLength :: HG3DClass -> Int -> IO ()
- ensureCaratIsVisible :: HG3DClass -> IO ()
- setWordWrapping :: HG3DClass -> Bool -> IO ()
- setShowVertScrollbar :: HG3DClass -> Bool -> IO ()
- new :: String -> String -> IO HG3DClass
- delete :: HG3DClass -> IO ()
- hasInputFocus'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- isReadOnly'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- getCaratIndex'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- getSelectionStartIndex'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- getSelectionEndIndex'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- getSelectionLength'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- getMaxTextLength'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- isWordWrapped'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- getVertScrollbar'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()
- isVertScrollbarAlwaysShown'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- getHorzScrollbar'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()
- getLineNumberFromIndex'_ :: HG3DClassPtr -> CInt -> Ptr CInt -> IO ()
- initialiseComponents'_ :: HG3DClassPtr -> IO ()
- setReadOnly'_ :: HG3DClassPtr -> CInt -> IO ()
- setCaratIndex'_ :: HG3DClassPtr -> CInt -> IO ()
- setSelection'_ :: HG3DClassPtr -> CInt -> CInt -> IO ()
- setMaxTextLength'_ :: HG3DClassPtr -> CInt -> IO ()
- ensureCaratIsVisible'_ :: HG3DClassPtr -> IO ()
- setWordWrapping'_ :: HG3DClassPtr -> CInt -> IO ()
- setShowVertScrollbar'_ :: HG3DClassPtr -> CInt -> IO ()
- new'_ :: Ptr CChar -> Ptr CChar -> HG3DClassPtr -> IO ()
- delete'_ :: HG3DClassPtr -> IO ()
Documentation
return true if the edit box has input focus.
return true if the edit box is read-only.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO Int | return value - Index of the insert carat relative to the start of the text. |
return the current position of the carat.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO Int | return value - Index of the selection start point relative to the start of the text. If no selection is defined this function returns the position of the carat. |
return the current selection start point.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO Int | return value - Index of the selection end point relative to the start of the text. If no selection is defined this function returns the position of the carat. |
return the current selection end point.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO Int | return value - Number of code points (or characters) contained within the currently defined selection. |
return the length of the current selection (in code points / characters).
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO Int | return value - The maximum number of code points (characters) that can be entered into this edit box. |
return the maximum text length set for this edit box.
Return whether the text in the edit box will be word-wrapped.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO HG3DClass | return value - Pointer to a |
Return a pointer to the vertical scrollbar component widget for this MultiLineEditbox
isVertScrollbarAlwaysShownSource
Return whether the vertical scroll bar is always shown.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO HG3DClass | return value - Pointer to a |
Return a pointer to the horizontal scrollbar component widget for this MultiLineEditbox
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Int | index |
-> IO Int |
Return the line number a given index falls on with the current formatting. Will return last line if index is out of range.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO () | return value - Nothing |
Specify whether the edit box is read-only.
Initialise the Window - Details: This must be called for every window created. Normally this is handled automatically by the WindowFactory for each Window
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | setting - |
-> IO () | return value - Nothing. |
Set the current position of the carat.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Int | carat_pos - New index for the insert carat relative to the start of the text. If the value specified is greater than the number of characters in the edit box, the carat is positioned at the end of the text. |
-> IO () | return value - Nothing. |
Define the current selection for the edit box.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Int | start_pos - Index of the starting point for the selection. If this value is greater than the number of characters in the edit box, the selection start will be set to the end of the text. |
-> Int | end_pos - Index of the ending point for the selection. If this value is greater than the number of characters in the edit box, the selection start will be set to the end of the text. |
-> IO () | return value - Nothing. |
set the maximum text length for this edit box.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Int | max_len - The maximum number of code points (characters) that can be entered into this Editbox. |
-> IO () | return value - Nothing. |
Scroll the view so that the current carat position is visible.
Set whether the text will be word wrapped or not.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | setting - |
-> IO () | return value - Nothing. |
Set whether the vertical scroll bar should always be shown.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | setting - true if the vertical scroll bar should be shown even when it is not required. false if the vertical scroll bar should only be shown when it is required. |
-> IO () | return value - Nothing. |
Constructor for the MultiLineEditbox
Destructor for the MultiLineEditbox
hasInputFocus'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
isReadOnly'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
getCaratIndex'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
getSelectionStartIndex'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
getSelectionEndIndex'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
getSelectionLength'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
getMaxTextLength'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
isWordWrapped'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
getVertScrollbar'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()Source
isVertScrollbarAlwaysShown'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
getHorzScrollbar'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()Source
getLineNumberFromIndex'_ :: HG3DClassPtr -> CInt -> Ptr CInt -> IO ()Source
initialiseComponents'_ :: HG3DClassPtr -> IO ()Source
setReadOnly'_ :: HG3DClassPtr -> CInt -> IO ()Source
setCaratIndex'_ :: HG3DClassPtr -> CInt -> IO ()Source
setSelection'_ :: HG3DClassPtr -> CInt -> CInt -> IO ()Source
setMaxTextLength'_ :: HG3DClassPtr -> CInt -> IO ()Source
ensureCaratIsVisible'_ :: HG3DClassPtr -> IO ()Source
setWordWrapping'_ :: HG3DClassPtr -> CInt -> IO ()Source
setShowVertScrollbar'_ :: HG3DClassPtr -> CInt -> IO ()Source
delete'_ :: HG3DClassPtr -> IO ()Source