| ||||||
| ||||||
| ||||||
| Description | ||||||
| ||||||
| Synopsis | ||||||
| Data types | ||||||
| data Editable | ||||||
| ||||||
| class GObjectClass o => EditableClass o | ||||||
| ||||||
| castToEditable :: GObjectClass obj => obj -> Editable | ||||||
| Methods | ||||||
| editableSelectRegion :: EditableClass ed => ed -> Int -> Int -> IO () | ||||||
Select a span of text.
| ||||||
| editableGetSelectionBounds :: EditableClass ed => ed -> IO (Int, Int) | ||||||
Get the span of the current selection.
| ||||||
| editableInsertText :: EditableClass ed => ed -> String -> Int -> IO Int | ||||||
Insert new text at the specified position.
| ||||||
| editableDeleteText :: EditableClass ed => ed -> Int -> Int -> IO () | ||||||
Delete a given range of text.
| ||||||
| editableGetChars :: EditableClass ed => ed -> Int -> Int -> IO String | ||||||
Retrieve a range of characters.
| ||||||
| editableCutClipboard :: EditableClass ed => ed -> IO () | ||||||
| Cut the selected characters to the Clipboard. | ||||||
| editableCopyClipboard :: EditableClass ed => ed -> IO () | ||||||
| Copy the selected characters to the Clipboard. | ||||||
| editablePasteClipboard :: EditableClass ed => ed -> IO () | ||||||
| Paste the selected characters to the Clipboard. | ||||||
| editableDeleteSelection :: EditableClass ed => ed -> IO () | ||||||
| Delete the current selection. | ||||||
| editableSetEditable :: EditableClass ed => ed -> Bool -> IO () | ||||||
Make the widget insensitive.
| ||||||
| editableGetEditable :: EditableClass ed => ed -> IO Bool | ||||||
| Retrieves whether the text is editable. | ||||||
| editableSetPosition :: EditableClass ed => ed -> Int -> IO () | ||||||
| Set the cursor to a specific position. | ||||||
| editableGetPosition :: EditableClass ed => ed -> IO Int | ||||||
| Get the current cursor position. | ||||||
| Signals | ||||||
| onEditableChanged :: EditableClass ec => ec -> IO () -> IO (ConnectId ec) | ||||||
| Emitted when the settings of the Editable widget changes. | ||||||
| afterEditableChanged :: EditableClass ec => ec -> IO () -> IO (ConnectId ec) | ||||||
| onDeleteText :: EditableClass ec => ec -> (Int -> Int -> IO ()) -> IO (ConnectId ec) | ||||||
| Emitted when a piece of text is deleted from the Editable widget. | ||||||
| afterDeleteText :: EditableClass ec => ec -> (Int -> Int -> IO ()) -> IO (ConnectId ec) | ||||||
| Produced by Haddock version 0.6 |