| Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Atk.Interfaces.Text
Contents
- Exported types
- Methods
- addSelection
- freeRanges
- getBoundedRanges
- getCaretOffset
- getCharacterAtOffset
- getCharacterCount
- getCharacterExtents
- getDefaultAttributes
- getNSelections
- getOffsetAtPoint
- getRangeExtents
- getRunAttributes
- getSelection
- getStringAtOffset
- getText
- getTextAfterOffset
- getTextAtOffset
- getTextBeforeOffset
- removeSelection
- setCaretOffset
- setSelection
- Signals
Description
- newtype Text = Text (ManagedPtr Text)
- noText :: Maybe Text
- class ManagedPtrNewtype a => IsText a
- data TextAddSelectionMethodInfo
- textAddSelection :: (MonadIO m, IsText a) => a -> Int32 -> Int32 -> m Bool
- textFreeRanges :: MonadIO m => Ptr (Ptr TextRange) -> m ()
- data TextGetBoundedRangesMethodInfo
- textGetBoundedRanges :: (MonadIO m, IsText a) => a -> TextRectangle -> CoordType -> TextClipType -> TextClipType -> m [TextRange]
- data TextGetCaretOffsetMethodInfo
- textGetCaretOffset :: (MonadIO m, IsText a) => a -> m Int32
- data TextGetCharacterAtOffsetMethodInfo
- textGetCharacterAtOffset :: (MonadIO m, IsText a) => a -> Int32 -> m Char
- data TextGetCharacterCountMethodInfo
- textGetCharacterCount :: (MonadIO m, IsText a) => a -> m Int32
- data TextGetCharacterExtentsMethodInfo
- textGetCharacterExtents :: (MonadIO m, IsText a) => a -> Int32 -> Int32 -> Int32 -> Int32 -> Int32 -> CoordType -> m ()
- data TextGetDefaultAttributesMethodInfo
- textGetDefaultAttributes :: (MonadIO m, IsText a) => a -> m [Ptr ()]
- data TextGetNSelectionsMethodInfo
- textGetNSelections :: (MonadIO m, IsText a) => a -> m Int32
- data TextGetOffsetAtPointMethodInfo
- textGetOffsetAtPoint :: (MonadIO m, IsText a) => a -> Int32 -> Int32 -> CoordType -> m Int32
- data TextGetRangeExtentsMethodInfo
- textGetRangeExtents :: (MonadIO m, IsText a) => a -> Int32 -> Int32 -> CoordType -> TextRectangle -> m ()
- data TextGetRunAttributesMethodInfo
- textGetRunAttributes :: (MonadIO m, IsText a) => a -> Int32 -> m ([Ptr ()], Int32, Int32)
- data TextGetSelectionMethodInfo
- textGetSelection :: (MonadIO m, IsText a) => a -> Int32 -> m (Text, Int32, Int32)
- data TextGetStringAtOffsetMethodInfo
- textGetStringAtOffset :: (MonadIO m, IsText a) => a -> Int32 -> TextGranularity -> m (Maybe Text, Int32, Int32)
- data TextGetTextMethodInfo
- textGetText :: (MonadIO m, IsText a) => a -> Int32 -> Int32 -> m Text
- data TextGetTextAfterOffsetMethodInfo
- textGetTextAfterOffset :: (MonadIO m, IsText a) => a -> Int32 -> TextBoundary -> m (Text, Int32, Int32)
- data TextGetTextAtOffsetMethodInfo
- textGetTextAtOffset :: (MonadIO m, IsText a) => a -> Int32 -> TextBoundary -> m (Text, Int32, Int32)
- data TextGetTextBeforeOffsetMethodInfo
- textGetTextBeforeOffset :: (MonadIO m, IsText a) => a -> Int32 -> TextBoundary -> m (Text, Int32, Int32)
- data TextRemoveSelectionMethodInfo
- textRemoveSelection :: (MonadIO m, IsText a) => a -> Int32 -> m Bool
- data TextSetCaretOffsetMethodInfo
- textSetCaretOffset :: (MonadIO m, IsText a) => a -> Int32 -> m Bool
- data TextSetSelectionMethodInfo
- textSetSelection :: (MonadIO m, IsText a) => a -> Int32 -> Int32 -> Int32 -> m Bool
- type C_TextTextAttributesChangedCallback = Ptr () -> Ptr () -> IO ()
- type TextTextAttributesChangedCallback = IO ()
- data TextTextAttributesChangedSignalInfo
- afterTextTextAttributesChanged :: (GObject a, MonadIO m) => a -> TextTextAttributesChangedCallback -> m SignalHandlerId
- genClosure_TextTextAttributesChanged :: TextTextAttributesChangedCallback -> IO Closure
- mk_TextTextAttributesChangedCallback :: C_TextTextAttributesChangedCallback -> IO (FunPtr C_TextTextAttributesChangedCallback)
- noTextTextAttributesChangedCallback :: Maybe TextTextAttributesChangedCallback
- onTextTextAttributesChanged :: (GObject a, MonadIO m) => a -> TextTextAttributesChangedCallback -> m SignalHandlerId
- wrap_TextTextAttributesChangedCallback :: TextTextAttributesChangedCallback -> Ptr () -> Ptr () -> IO ()
- type C_TextTextCaretMovedCallback = Ptr () -> Int32 -> Ptr () -> IO ()
- type TextTextCaretMovedCallback = Int32 -> IO ()
- data TextTextCaretMovedSignalInfo
- afterTextTextCaretMoved :: (GObject a, MonadIO m) => a -> TextTextCaretMovedCallback -> m SignalHandlerId
- genClosure_TextTextCaretMoved :: TextTextCaretMovedCallback -> IO Closure
- mk_TextTextCaretMovedCallback :: C_TextTextCaretMovedCallback -> IO (FunPtr C_TextTextCaretMovedCallback)
- noTextTextCaretMovedCallback :: Maybe TextTextCaretMovedCallback
- onTextTextCaretMoved :: (GObject a, MonadIO m) => a -> TextTextCaretMovedCallback -> m SignalHandlerId
- wrap_TextTextCaretMovedCallback :: TextTextCaretMovedCallback -> Ptr () -> Int32 -> Ptr () -> IO ()
- type C_TextTextChangedCallback = Ptr () -> Int32 -> Int32 -> Ptr () -> IO ()
- type TextTextChangedCallback = Int32 -> Int32 -> IO ()
- data TextTextChangedSignalInfo
- afterTextTextChanged :: (GObject a, MonadIO m) => a -> TextTextChangedCallback -> m SignalHandlerId
- genClosure_TextTextChanged :: TextTextChangedCallback -> IO Closure
- mk_TextTextChangedCallback :: C_TextTextChangedCallback -> IO (FunPtr C_TextTextChangedCallback)
- noTextTextChangedCallback :: Maybe TextTextChangedCallback
- onTextTextChanged :: (GObject a, MonadIO m) => a -> TextTextChangedCallback -> m SignalHandlerId
- wrap_TextTextChangedCallback :: TextTextChangedCallback -> Ptr () -> Int32 -> Int32 -> Ptr () -> IO ()
- type C_TextTextInsertCallback = Ptr () -> Int32 -> Int32 -> CString -> Ptr () -> IO ()
- type TextTextInsertCallback = Int32 -> Int32 -> Text -> IO ()
- data TextTextInsertSignalInfo
- afterTextTextInsert :: (GObject a, MonadIO m) => a -> TextTextInsertCallback -> m SignalHandlerId
- genClosure_TextTextInsert :: TextTextInsertCallback -> IO Closure
- mk_TextTextInsertCallback :: C_TextTextInsertCallback -> IO (FunPtr C_TextTextInsertCallback)
- noTextTextInsertCallback :: Maybe TextTextInsertCallback
- onTextTextInsert :: (GObject a, MonadIO m) => a -> TextTextInsertCallback -> m SignalHandlerId
- wrap_TextTextInsertCallback :: TextTextInsertCallback -> Ptr () -> Int32 -> Int32 -> CString -> Ptr () -> IO ()
- type C_TextTextRemoveCallback = Ptr () -> Int32 -> Int32 -> CString -> Ptr () -> IO ()
- type TextTextRemoveCallback = Int32 -> Int32 -> Text -> IO ()
- data TextTextRemoveSignalInfo
- afterTextTextRemove :: (GObject a, MonadIO m) => a -> TextTextRemoveCallback -> m SignalHandlerId
- genClosure_TextTextRemove :: TextTextRemoveCallback -> IO Closure
- mk_TextTextRemoveCallback :: C_TextTextRemoveCallback -> IO (FunPtr C_TextTextRemoveCallback)
- noTextTextRemoveCallback :: Maybe TextTextRemoveCallback
- onTextTextRemove :: (GObject a, MonadIO m) => a -> TextTextRemoveCallback -> m SignalHandlerId
- wrap_TextTextRemoveCallback :: TextTextRemoveCallback -> Ptr () -> Int32 -> Int32 -> CString -> Ptr () -> IO ()
- type C_TextTextSelectionChangedCallback = Ptr () -> Ptr () -> IO ()
- type TextTextSelectionChangedCallback = IO ()
- data TextTextSelectionChangedSignalInfo
- afterTextTextSelectionChanged :: (GObject a, MonadIO m) => a -> TextTextSelectionChangedCallback -> m SignalHandlerId
- genClosure_TextTextSelectionChanged :: TextTextSelectionChangedCallback -> IO Closure
- mk_TextTextSelectionChangedCallback :: C_TextTextSelectionChangedCallback -> IO (FunPtr C_TextTextSelectionChangedCallback)
- noTextTextSelectionChangedCallback :: Maybe TextTextSelectionChangedCallback
- onTextTextSelectionChanged :: (GObject a, MonadIO m) => a -> TextTextSelectionChangedCallback -> m SignalHandlerId
- wrap_TextTextSelectionChangedCallback :: TextTextSelectionChangedCallback -> Ptr () -> Ptr () -> IO ()
Exported types
Instances
| IsText Text Source # | |
| ((~) * info (ResolveTextMethod t Text), MethodInfo * info Text p) => IsLabel t (Text -> p) Source # | |
| ((~) * info (ResolveTextMethod t Text), MethodInfo * info Text p) => IsLabelProxy t (Text -> p) Source # | |
| HasAttributeList * Text Source # | |
| type SignalList Text Source # | |
| type AttributeList Text Source # | |
Methods
addSelection
freeRanges
getBoundedRanges
data TextGetBoundedRangesMethodInfo Source #
Instances
| ((~) * signature (TextRectangle -> CoordType -> TextClipType -> TextClipType -> m [TextRange]), MonadIO m, IsText a) => MethodInfo * TextGetBoundedRangesMethodInfo a signature Source # | |
textGetBoundedRanges :: (MonadIO m, IsText a) => a -> TextRectangle -> CoordType -> TextClipType -> TextClipType -> m [TextRange] Source #
getCaretOffset
getCharacterAtOffset
getCharacterCount
getCharacterExtents
textGetCharacterExtents :: (MonadIO m, IsText a) => a -> Int32 -> Int32 -> Int32 -> Int32 -> Int32 -> CoordType -> m () Source #
getDefaultAttributes
getNSelections
getOffsetAtPoint
textGetOffsetAtPoint :: (MonadIO m, IsText a) => a -> Int32 -> Int32 -> CoordType -> m Int32 Source #
getRangeExtents
textGetRangeExtents :: (MonadIO m, IsText a) => a -> Int32 -> Int32 -> CoordType -> TextRectangle -> m () Source #
getRunAttributes
getSelection
getStringAtOffset
textGetStringAtOffset :: (MonadIO m, IsText a) => a -> Int32 -> TextGranularity -> m (Maybe Text, Int32, Int32) Source #
getText
data TextGetTextMethodInfo Source #
getTextAfterOffset
textGetTextAfterOffset :: (MonadIO m, IsText a) => a -> Int32 -> TextBoundary -> m (Text, Int32, Int32) Source #
Deprecated: (Since version 2.9.3)Please use atk_text_get_string_at_offset() instead.
getTextAtOffset
textGetTextAtOffset :: (MonadIO m, IsText a) => a -> Int32 -> TextBoundary -> m (Text, Int32, Int32) Source #
Deprecated: This method is deprecated since ATK version2.9.4. Please use atk_text_get_string_at_offset() instead.
getTextBeforeOffset
textGetTextBeforeOffset :: (MonadIO m, IsText a) => a -> Int32 -> TextBoundary -> m (Text, Int32, Int32) Source #
Deprecated: (Since version 2.9.3)Please use atk_text_get_string_at_offset() instead.
removeSelection
setCaretOffset
setSelection
Signals
textAttributesChanged
type TextTextAttributesChangedCallback = IO () Source #
data TextTextAttributesChangedSignalInfo Source #
Instances
| SignalInfo TextTextAttributesChangedSignalInfo Source # | |
| type HaskellCallbackType TextTextAttributesChangedSignalInfo Source # | |
afterTextTextAttributesChanged :: (GObject a, MonadIO m) => a -> TextTextAttributesChangedCallback -> m SignalHandlerId Source #
mk_TextTextAttributesChangedCallback :: C_TextTextAttributesChangedCallback -> IO (FunPtr C_TextTextAttributesChangedCallback) Source #
onTextTextAttributesChanged :: (GObject a, MonadIO m) => a -> TextTextAttributesChangedCallback -> m SignalHandlerId Source #
wrap_TextTextAttributesChangedCallback :: TextTextAttributesChangedCallback -> Ptr () -> Ptr () -> IO () Source #
textCaretMoved
type TextTextCaretMovedCallback = Int32 -> IO () Source #
data TextTextCaretMovedSignalInfo Source #
Instances
| SignalInfo TextTextCaretMovedSignalInfo Source # | |
| type HaskellCallbackType TextTextCaretMovedSignalInfo Source # | |
afterTextTextCaretMoved :: (GObject a, MonadIO m) => a -> TextTextCaretMovedCallback -> m SignalHandlerId Source #
genClosure_TextTextCaretMoved :: TextTextCaretMovedCallback -> IO Closure Source #
mk_TextTextCaretMovedCallback :: C_TextTextCaretMovedCallback -> IO (FunPtr C_TextTextCaretMovedCallback) Source #
onTextTextCaretMoved :: (GObject a, MonadIO m) => a -> TextTextCaretMovedCallback -> m SignalHandlerId Source #
wrap_TextTextCaretMovedCallback :: TextTextCaretMovedCallback -> Ptr () -> Int32 -> Ptr () -> IO () Source #
textChanged
data TextTextChangedSignalInfo Source #
Instances
| SignalInfo TextTextChangedSignalInfo Source # | |
| type HaskellCallbackType TextTextChangedSignalInfo Source # | |
afterTextTextChanged :: (GObject a, MonadIO m) => a -> TextTextChangedCallback -> m SignalHandlerId Source #
genClosure_TextTextChanged :: TextTextChangedCallback -> IO Closure Source #
mk_TextTextChangedCallback :: C_TextTextChangedCallback -> IO (FunPtr C_TextTextChangedCallback) Source #
onTextTextChanged :: (GObject a, MonadIO m) => a -> TextTextChangedCallback -> m SignalHandlerId Source #
wrap_TextTextChangedCallback :: TextTextChangedCallback -> Ptr () -> Int32 -> Int32 -> Ptr () -> IO () Source #
textInsert
data TextTextInsertSignalInfo Source #
Instances
| SignalInfo TextTextInsertSignalInfo Source # | |
| type HaskellCallbackType TextTextInsertSignalInfo Source # | |
afterTextTextInsert :: (GObject a, MonadIO m) => a -> TextTextInsertCallback -> m SignalHandlerId Source #
genClosure_TextTextInsert :: TextTextInsertCallback -> IO Closure Source #
mk_TextTextInsertCallback :: C_TextTextInsertCallback -> IO (FunPtr C_TextTextInsertCallback) Source #
onTextTextInsert :: (GObject a, MonadIO m) => a -> TextTextInsertCallback -> m SignalHandlerId Source #
wrap_TextTextInsertCallback :: TextTextInsertCallback -> Ptr () -> Int32 -> Int32 -> CString -> Ptr () -> IO () Source #
textRemove
data TextTextRemoveSignalInfo Source #
Instances
| SignalInfo TextTextRemoveSignalInfo Source # | |
| type HaskellCallbackType TextTextRemoveSignalInfo Source # | |
afterTextTextRemove :: (GObject a, MonadIO m) => a -> TextTextRemoveCallback -> m SignalHandlerId Source #
genClosure_TextTextRemove :: TextTextRemoveCallback -> IO Closure Source #
mk_TextTextRemoveCallback :: C_TextTextRemoveCallback -> IO (FunPtr C_TextTextRemoveCallback) Source #
onTextTextRemove :: (GObject a, MonadIO m) => a -> TextTextRemoveCallback -> m SignalHandlerId Source #
wrap_TextTextRemoveCallback :: TextTextRemoveCallback -> Ptr () -> Int32 -> Int32 -> CString -> Ptr () -> IO () Source #
textSelectionChanged
type TextTextSelectionChangedCallback = IO () Source #
data TextTextSelectionChangedSignalInfo Source #
Instances
| SignalInfo TextTextSelectionChangedSignalInfo Source # | |
| type HaskellCallbackType TextTextSelectionChangedSignalInfo Source # | |
afterTextTextSelectionChanged :: (GObject a, MonadIO m) => a -> TextTextSelectionChangedCallback -> m SignalHandlerId Source #
mk_TextTextSelectionChangedCallback :: C_TextTextSelectionChangedCallback -> IO (FunPtr C_TextTextSelectionChangedCallback) Source #
onTextTextSelectionChanged :: (GObject a, MonadIO m) => a -> TextTextSelectionChangedCallback -> m SignalHandlerId Source #
wrap_TextTextSelectionChangedCallback :: TextTextSelectionChangedCallback -> Ptr () -> Ptr () -> IO () Source #