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 |
- Exported types
- Methods
- textAddSelection
- textGetBoundedRanges
- textGetCaretOffset
- textGetCharacterAtOffset
- textGetCharacterCount
- textGetCharacterExtents
- textGetDefaultAttributes
- textGetNSelections
- textGetOffsetAtPoint
- textGetRangeExtents
- textGetRunAttributes
- textGetSelection
- textGetStringAtOffset
- textGetText
- textGetTextAfterOffset
- textGetTextAtOffset
- textGetTextBeforeOffset
- textRemoveSelection
- textSetCaretOffset
- textSetSelection
- Signals
- newtype Text = Text (ForeignPtr Text)
- noText :: Maybe Text
- class ForeignPtrNewtype a => TextK a
- textAddSelection :: (MonadIO m, TextK a) => a -> Int32 -> Int32 -> m Bool
- textGetBoundedRanges :: (MonadIO m, TextK a) => a -> TextRectangle -> CoordType -> TextClipType -> TextClipType -> m [TextRange]
- textGetCaretOffset :: (MonadIO m, TextK a) => a -> m Int32
- textGetCharacterAtOffset :: (MonadIO m, TextK a) => a -> Int32 -> m Char
- textGetCharacterCount :: (MonadIO m, TextK a) => a -> m Int32
- textGetCharacterExtents :: (MonadIO m, TextK a) => a -> Int32 -> Int32 -> Int32 -> Int32 -> Int32 -> CoordType -> m ()
- textGetDefaultAttributes :: (MonadIO m, TextK a) => a -> m [Ptr ()]
- textGetNSelections :: (MonadIO m, TextK a) => a -> m Int32
- textGetOffsetAtPoint :: (MonadIO m, TextK a) => a -> Int32 -> Int32 -> CoordType -> m Int32
- textGetRangeExtents :: (MonadIO m, TextK a) => a -> Int32 -> Int32 -> CoordType -> TextRectangle -> m ()
- textGetRunAttributes :: (MonadIO m, TextK a) => a -> Int32 -> m ([Ptr ()], Int32, Int32)
- textGetSelection :: (MonadIO m, TextK a) => a -> Int32 -> m (Text, Int32, Int32)
- textGetStringAtOffset :: (MonadIO m, TextK a) => a -> Int32 -> TextGranularity -> m (Text, Int32, Int32)
- textGetText :: (MonadIO m, TextK a) => a -> Int32 -> Int32 -> m Text
- textGetTextAfterOffset :: (MonadIO m, TextK a) => a -> Int32 -> TextBoundary -> m (Text, Int32, Int32)
- textGetTextAtOffset :: (MonadIO m, TextK a) => a -> Int32 -> TextBoundary -> m (Text, Int32, Int32)
- textGetTextBeforeOffset :: (MonadIO m, TextK a) => a -> Int32 -> TextBoundary -> m (Text, Int32, Int32)
- textRemoveSelection :: (MonadIO m, TextK a) => a -> Int32 -> m Bool
- textSetCaretOffset :: (MonadIO m, TextK a) => a -> Int32 -> m Bool
- textSetSelection :: (MonadIO m, TextK a) => a -> Int32 -> Int32 -> Int32 -> m Bool
- type TextTextAttributesChangedCallback = IO ()
- type TextTextAttributesChangedCallbackC = Ptr () -> Ptr () -> IO ()
- data TextTextAttributesChangedSignalInfo
- afterTextTextAttributesChanged :: (GObject a, MonadIO m) => a -> TextTextAttributesChangedCallback -> m SignalHandlerId
- mkTextTextAttributesChangedCallback :: TextTextAttributesChangedCallbackC -> IO (FunPtr TextTextAttributesChangedCallbackC)
- noTextTextAttributesChangedCallback :: Maybe TextTextAttributesChangedCallback
- onTextTextAttributesChanged :: (GObject a, MonadIO m) => a -> TextTextAttributesChangedCallback -> m SignalHandlerId
- textTextAttributesChangedCallbackWrapper :: TextTextAttributesChangedCallback -> Ptr () -> Ptr () -> IO ()
- textTextAttributesChangedClosure :: TextTextAttributesChangedCallback -> IO Closure
- type TextTextCaretMovedCallback = Int32 -> IO ()
- type TextTextCaretMovedCallbackC = Ptr () -> Int32 -> Ptr () -> IO ()
- data TextTextCaretMovedSignalInfo
- afterTextTextCaretMoved :: (GObject a, MonadIO m) => a -> TextTextCaretMovedCallback -> m SignalHandlerId
- mkTextTextCaretMovedCallback :: TextTextCaretMovedCallbackC -> IO (FunPtr TextTextCaretMovedCallbackC)
- noTextTextCaretMovedCallback :: Maybe TextTextCaretMovedCallback
- onTextTextCaretMoved :: (GObject a, MonadIO m) => a -> TextTextCaretMovedCallback -> m SignalHandlerId
- textTextCaretMovedCallbackWrapper :: TextTextCaretMovedCallback -> Ptr () -> Int32 -> Ptr () -> IO ()
- textTextCaretMovedClosure :: TextTextCaretMovedCallback -> IO Closure
- type TextTextChangedCallback = Int32 -> Int32 -> IO ()
- type TextTextChangedCallbackC = Ptr () -> Int32 -> Int32 -> Ptr () -> IO ()
- data TextTextChangedSignalInfo
- afterTextTextChanged :: (GObject a, MonadIO m) => a -> TextTextChangedCallback -> m SignalHandlerId
- mkTextTextChangedCallback :: TextTextChangedCallbackC -> IO (FunPtr TextTextChangedCallbackC)
- noTextTextChangedCallback :: Maybe TextTextChangedCallback
- onTextTextChanged :: (GObject a, MonadIO m) => a -> TextTextChangedCallback -> m SignalHandlerId
- textTextChangedCallbackWrapper :: TextTextChangedCallback -> Ptr () -> Int32 -> Int32 -> Ptr () -> IO ()
- textTextChangedClosure :: TextTextChangedCallback -> IO Closure
- type TextTextInsertCallback = Int32 -> Int32 -> Text -> IO ()
- type TextTextInsertCallbackC = Ptr () -> Int32 -> Int32 -> CString -> Ptr () -> IO ()
- data TextTextInsertSignalInfo
- afterTextTextInsert :: (GObject a, MonadIO m) => a -> TextTextInsertCallback -> m SignalHandlerId
- mkTextTextInsertCallback :: TextTextInsertCallbackC -> IO (FunPtr TextTextInsertCallbackC)
- noTextTextInsertCallback :: Maybe TextTextInsertCallback
- onTextTextInsert :: (GObject a, MonadIO m) => a -> TextTextInsertCallback -> m SignalHandlerId
- textTextInsertCallbackWrapper :: TextTextInsertCallback -> Ptr () -> Int32 -> Int32 -> CString -> Ptr () -> IO ()
- textTextInsertClosure :: TextTextInsertCallback -> IO Closure
- type TextTextRemoveCallback = Int32 -> Int32 -> Text -> IO ()
- type TextTextRemoveCallbackC = Ptr () -> Int32 -> Int32 -> CString -> Ptr () -> IO ()
- data TextTextRemoveSignalInfo
- afterTextTextRemove :: (GObject a, MonadIO m) => a -> TextTextRemoveCallback -> m SignalHandlerId
- mkTextTextRemoveCallback :: TextTextRemoveCallbackC -> IO (FunPtr TextTextRemoveCallbackC)
- noTextTextRemoveCallback :: Maybe TextTextRemoveCallback
- onTextTextRemove :: (GObject a, MonadIO m) => a -> TextTextRemoveCallback -> m SignalHandlerId
- textTextRemoveCallbackWrapper :: TextTextRemoveCallback -> Ptr () -> Int32 -> Int32 -> CString -> Ptr () -> IO ()
- textTextRemoveClosure :: TextTextRemoveCallback -> IO Closure
- type TextTextSelectionChangedCallback = IO ()
- type TextTextSelectionChangedCallbackC = Ptr () -> Ptr () -> IO ()
- data TextTextSelectionChangedSignalInfo
- afterTextTextSelectionChanged :: (GObject a, MonadIO m) => a -> TextTextSelectionChangedCallback -> m SignalHandlerId
- mkTextTextSelectionChangedCallback :: TextTextSelectionChangedCallbackC -> IO (FunPtr TextTextSelectionChangedCallbackC)
- noTextTextSelectionChangedCallback :: Maybe TextTextSelectionChangedCallback
- onTextTextSelectionChanged :: (GObject a, MonadIO m) => a -> TextTextSelectionChangedCallback -> m SignalHandlerId
- textTextSelectionChangedCallbackWrapper :: TextTextSelectionChangedCallback -> Ptr () -> Ptr () -> IO ()
- textTextSelectionChangedClosure :: TextTextSelectionChangedCallback -> IO Closure
Exported types
type ParentTypes Text | |
type AttributeList Text | |
type SignalList Text |
class ForeignPtrNewtype a => TextK a Source
(ForeignPtrNewtype o, IsDescendantOf Text o) => TextK o |
Methods
textAddSelection
textGetBoundedRanges
textGetBoundedRanges :: (MonadIO m, TextK a) => a -> TextRectangle -> CoordType -> TextClipType -> TextClipType -> m [TextRange] Source
textGetCaretOffset
textGetCaretOffset :: (MonadIO m, TextK a) => a -> m Int32 Source
textGetCharacterAtOffset
textGetCharacterCount
textGetCharacterCount :: (MonadIO m, TextK a) => a -> m Int32 Source
textGetCharacterExtents
textGetCharacterExtents :: (MonadIO m, TextK a) => a -> Int32 -> Int32 -> Int32 -> Int32 -> Int32 -> CoordType -> m () Source
textGetDefaultAttributes
textGetDefaultAttributes :: (MonadIO m, TextK a) => a -> m [Ptr ()] Source
textGetNSelections
textGetNSelections :: (MonadIO m, TextK a) => a -> m Int32 Source
textGetOffsetAtPoint
textGetRangeExtents
textGetRangeExtents :: (MonadIO m, TextK a) => a -> Int32 -> Int32 -> CoordType -> TextRectangle -> m () Source
textGetRunAttributes
textGetSelection
textGetStringAtOffset
textGetStringAtOffset :: (MonadIO m, TextK a) => a -> Int32 -> TextGranularity -> m (Text, Int32, Int32) Source
textGetText
textGetTextAfterOffset
textGetTextAfterOffset :: (MonadIO m, TextK a) => a -> Int32 -> TextBoundary -> m (Text, Int32, Int32) Source
Deprecated: (Since version 2.9.3)Please use atk_text_get_string_at_offset() instead.
textGetTextAtOffset
textGetTextAtOffset :: (MonadIO m, TextK 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.
textGetTextBeforeOffset
textGetTextBeforeOffset :: (MonadIO m, TextK a) => a -> Int32 -> TextBoundary -> m (Text, Int32, Int32) Source
Deprecated: (Since version 2.9.3)Please use atk_text_get_string_at_offset() instead.
textRemoveSelection
textSetCaretOffset
textSetSelection
Signals
TextAttributesChanged
type TextTextAttributesChangedCallback = IO () Source
type TextTextAttributesChangedCallbackC = Ptr () -> Ptr () -> IO () Source
afterTextTextAttributesChanged :: (GObject a, MonadIO m) => a -> TextTextAttributesChangedCallback -> m SignalHandlerId Source
mkTextTextAttributesChangedCallback :: TextTextAttributesChangedCallbackC -> IO (FunPtr TextTextAttributesChangedCallbackC) Source
onTextTextAttributesChanged :: (GObject a, MonadIO m) => a -> TextTextAttributesChangedCallback -> m SignalHandlerId Source
textTextAttributesChangedCallbackWrapper :: TextTextAttributesChangedCallback -> Ptr () -> Ptr () -> IO () Source
TextCaretMoved
type TextTextCaretMovedCallback = Int32 -> IO () Source
afterTextTextCaretMoved :: (GObject a, MonadIO m) => a -> TextTextCaretMovedCallback -> m SignalHandlerId Source
mkTextTextCaretMovedCallback :: TextTextCaretMovedCallbackC -> IO (FunPtr TextTextCaretMovedCallbackC) Source
onTextTextCaretMoved :: (GObject a, MonadIO m) => a -> TextTextCaretMovedCallback -> m SignalHandlerId Source
textTextCaretMovedCallbackWrapper :: TextTextCaretMovedCallback -> Ptr () -> Int32 -> Ptr () -> IO () Source
TextChanged
type TextTextChangedCallback = Int32 -> Int32 -> IO () Source
afterTextTextChanged :: (GObject a, MonadIO m) => a -> TextTextChangedCallback -> m SignalHandlerId Source
mkTextTextChangedCallback :: TextTextChangedCallbackC -> IO (FunPtr TextTextChangedCallbackC) Source
onTextTextChanged :: (GObject a, MonadIO m) => a -> TextTextChangedCallback -> m SignalHandlerId Source
textTextChangedCallbackWrapper :: TextTextChangedCallback -> Ptr () -> Int32 -> Int32 -> Ptr () -> IO () Source
TextInsert
afterTextTextInsert :: (GObject a, MonadIO m) => a -> TextTextInsertCallback -> m SignalHandlerId Source
onTextTextInsert :: (GObject a, MonadIO m) => a -> TextTextInsertCallback -> m SignalHandlerId Source
textTextInsertCallbackWrapper :: TextTextInsertCallback -> Ptr () -> Int32 -> Int32 -> CString -> Ptr () -> IO () Source
TextRemove
afterTextTextRemove :: (GObject a, MonadIO m) => a -> TextTextRemoveCallback -> m SignalHandlerId Source
onTextTextRemove :: (GObject a, MonadIO m) => a -> TextTextRemoveCallback -> m SignalHandlerId Source
textTextRemoveCallbackWrapper :: TextTextRemoveCallback -> Ptr () -> Int32 -> Int32 -> CString -> Ptr () -> IO () Source
TextSelectionChanged
type TextTextSelectionChangedCallback = IO () Source
type TextTextSelectionChangedCallbackC = Ptr () -> Ptr () -> IO () Source
afterTextTextSelectionChanged :: (GObject a, MonadIO m) => a -> TextTextSelectionChangedCallback -> m SignalHandlerId Source
mkTextTextSelectionChangedCallback :: TextTextSelectionChangedCallbackC -> IO (FunPtr TextTextSelectionChangedCallbackC) Source
onTextTextSelectionChanged :: (GObject a, MonadIO m) => a -> TextTextSelectionChangedCallback -> m SignalHandlerId Source
textTextSelectionChangedCallbackWrapper :: TextTextSelectionChangedCallback -> Ptr () -> Ptr () -> IO () Source