| 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
- textAddSelection
- textFreeRanges
- textGetBoundedRanges
- textGetCaretOffset
- textGetCharacterAtOffset
- textGetCharacterCount
- textGetCharacterExtents
- textGetDefaultAttributes
- textGetNSelections
- textGetOffsetAtPoint
- textGetRangeExtents
- textGetRunAttributes
- textGetSelection
- textGetStringAtOffset
- textGetText
- textGetTextAfterOffset
- textGetTextAtOffset
- textGetTextBeforeOffset
- textRemoveSelection
- textSetCaretOffset
- textSetSelection
- Signals
Description
- newtype Text = Text (ForeignPtr Text)
- noText :: Maybe Text
- class ForeignPtrNewtype 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 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
Constructors
| Text (ForeignPtr Text) |
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
textAddSelection
textFreeRanges
textGetBoundedRanges
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 #
textGetCaretOffset
textGetCharacterAtOffset
textGetCharacterCount
textGetCharacterExtents
textGetCharacterExtents :: (MonadIO m, IsText a) => a -> Int32 -> Int32 -> Int32 -> Int32 -> Int32 -> CoordType -> m () Source #
textGetDefaultAttributes
textGetNSelections
textGetOffsetAtPoint
textGetOffsetAtPoint :: (MonadIO m, IsText a) => a -> Int32 -> Int32 -> CoordType -> m Int32 Source #
textGetRangeExtents
textGetRangeExtents :: (MonadIO m, IsText a) => a -> Int32 -> Int32 -> CoordType -> TextRectangle -> m () Source #
textGetRunAttributes
textGetSelection
textGetStringAtOffset
textGetStringAtOffset :: (MonadIO m, IsText a) => a -> Int32 -> TextGranularity -> m (Maybe Text, Int32, Int32) Source #
textGetText
data TextGetTextMethodInfo Source #
textGetTextAfterOffset
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.
textGetTextAtOffset
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.
textGetTextBeforeOffset
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.
textRemoveSelection
textSetCaretOffset
textSetSelection
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 #
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 #
data TextTextCaretMovedSignalInfo Source #
Instances
| SignalInfo TextTextCaretMovedSignalInfo Source # | |
| type HaskellCallbackType TextTextCaretMovedSignalInfo 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 #
textTextCaretMovedClosure :: TextTextCaretMovedCallback -> IO Closure Source #
TextChanged
data TextTextChangedSignalInfo Source #
Instances
| SignalInfo TextTextChangedSignalInfo Source # | |
| type HaskellCallbackType TextTextChangedSignalInfo 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 #
textTextChangedClosure :: TextTextChangedCallback -> IO Closure Source #
TextInsert
data TextTextInsertSignalInfo Source #
Instances
| SignalInfo TextTextInsertSignalInfo Source # | |
| type HaskellCallbackType TextTextInsertSignalInfo Source # | |
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 #
textTextInsertClosure :: TextTextInsertCallback -> IO Closure Source #
TextRemove
data TextTextRemoveSignalInfo Source #
Instances
| SignalInfo TextTextRemoveSignalInfo Source # | |
| type HaskellCallbackType TextTextRemoveSignalInfo Source # | |
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 #
textTextRemoveClosure :: TextTextRemoveCallback -> IO Closure 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 #
mkTextTextSelectionChangedCallback :: TextTextSelectionChangedCallbackC -> IO (FunPtr TextTextSelectionChangedCallbackC) Source #
onTextTextSelectionChanged :: (GObject a, MonadIO m) => a -> TextTextSelectionChangedCallback -> m SignalHandlerId Source #
textTextSelectionChangedCallbackWrapper :: TextTextSelectionChangedCallback -> Ptr () -> Ptr () -> IO () Source #
textTextSelectionChangedClosure :: TextTextSelectionChangedCallback -> IO Closure Source #