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
Text
should be implemented by AtkObjects
on behalf of widgets
that have text content which is either attributed or otherwise
non-trivial. AtkObjects
whose text content is simple,
unattributed, and very brief may expose that content via
atk_object_get_name
instead; however if the text is editable,
multi-line, typically longer than three or four words, attributed,
selectable, or if the object already uses the 'name' ATK property
for other information, the Text
interface should be used to
expose the text content. In the case of editable text content,
EditableText
(a subtype of the Text
interface) should be
implemented instead.
Text
provides not only traversal facilities and change
notification for text content, but also caret tracking and glyph
bounding box calculations. Note that the text strings are exposed
as UTF-8, and are therefore potentially multi-byte, and
caret-to-byte offset mapping makes no assumptions about the
character length; also bounding box glyph-to-offset mapping may be
complex for languages which use ligatures.
- newtype Text = Text (ManagedPtr Text)
- noText :: Maybe Text
- class ManagedPtrNewtype a => IsText a
- data TextAddSelectionMethodInfo
- textAddSelection :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> Int32 -> m Bool
- textFreeRanges :: (HasCallStack, MonadIO m) => Ptr (Ptr TextRange) -> m ()
- data TextGetBoundedRangesMethodInfo
- textGetBoundedRanges :: (HasCallStack, MonadIO m, IsText a) => a -> TextRectangle -> CoordType -> TextClipType -> TextClipType -> m [TextRange]
- data TextGetCaretOffsetMethodInfo
- textGetCaretOffset :: (HasCallStack, MonadIO m, IsText a) => a -> m Int32
- data TextGetCharacterAtOffsetMethodInfo
- textGetCharacterAtOffset :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> m Char
- data TextGetCharacterCountMethodInfo
- textGetCharacterCount :: (HasCallStack, MonadIO m, IsText a) => a -> m Int32
- data TextGetCharacterExtentsMethodInfo
- textGetCharacterExtents :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> CoordType -> m (Int32, Int32, Int32, Int32)
- data TextGetDefaultAttributesMethodInfo
- textGetDefaultAttributes :: (HasCallStack, MonadIO m, IsText a) => a -> m [Ptr ()]
- data TextGetNSelectionsMethodInfo
- textGetNSelections :: (HasCallStack, MonadIO m, IsText a) => a -> m Int32
- data TextGetOffsetAtPointMethodInfo
- textGetOffsetAtPoint :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> Int32 -> CoordType -> m Int32
- data TextGetRangeExtentsMethodInfo
- textGetRangeExtents :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> Int32 -> CoordType -> m TextRectangle
- data TextGetRunAttributesMethodInfo
- textGetRunAttributes :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> m ([Ptr ()], Int32, Int32)
- data TextGetSelectionMethodInfo
- textGetSelection :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> m (Text, Int32, Int32)
- data TextGetStringAtOffsetMethodInfo
- textGetStringAtOffset :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> TextGranularity -> m (Maybe Text, Int32, Int32)
- data TextGetTextMethodInfo
- textGetText :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> Int32 -> m Text
- data TextGetTextAfterOffsetMethodInfo
- textGetTextAfterOffset :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> TextBoundary -> m (Text, Int32, Int32)
- data TextGetTextAtOffsetMethodInfo
- textGetTextAtOffset :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> TextBoundary -> m (Text, Int32, Int32)
- data TextGetTextBeforeOffsetMethodInfo
- textGetTextBeforeOffset :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> TextBoundary -> m (Text, Int32, Int32)
- data TextRemoveSelectionMethodInfo
- textRemoveSelection :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> m Bool
- data TextSetCaretOffsetMethodInfo
- textSetCaretOffset :: (HasCallStack, MonadIO m, IsText a) => a -> Int32 -> m Bool
- data TextSetSelectionMethodInfo
- textSetSelection :: (HasCallStack, 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
Constructors
Text (ManagedPtr Text) |
Instances
WrappedPtr Text Source # | |
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 AttributeList Text Source # | |
type SignalList Text Source # | |
class ManagedPtrNewtype a => IsText a Source #
Methods
addSelection
Arguments
:: (HasCallStack, MonadIO m, IsText a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> m Bool |
Adds a selection bounded by the specified offsets.
freeRanges
Arguments
:: (HasCallStack, MonadIO m) | |
=> Ptr (Ptr TextRange) |
|
-> m () |
Frees the memory associated with an array of AtkTextRange. It is assumed that the array was returned by the function atk_text_get_bounded_ranges and is NULL terminated.
Since: 1.3
getBoundedRanges
data TextGetBoundedRangesMethodInfo Source #
Instances
((~) * signature (TextRectangle -> CoordType -> TextClipType -> TextClipType -> m [TextRange]), MonadIO m, IsText a) => MethodInfo * TextGetBoundedRangesMethodInfo a signature Source # | |
Arguments
:: (HasCallStack, MonadIO m, IsText a) | |
=> a |
|
-> TextRectangle |
|
-> CoordType |
|
-> TextClipType |
|
-> TextClipType |
|
-> m [TextRange] | Returns: Array of AtkTextRange. The last element of the array returned by this function will be NULL. |
Get the ranges of text in the specified bounding box.
Since: 1.3
getCaretOffset
data TextGetCaretOffsetMethodInfo Source #
Instances
((~) * signature (m Int32), MonadIO m, IsText a) => MethodInfo * TextGetCaretOffsetMethodInfo a signature Source # | |
Arguments
:: (HasCallStack, MonadIO m, IsText a) | |
=> a |
|
-> m Int32 | Returns: the offset position of the caret (cursor). |
Gets the offset position of the caret (cursor).
getCharacterAtOffset
data TextGetCharacterAtOffsetMethodInfo Source #
Instances
((~) * signature (Int32 -> m Char), MonadIO m, IsText a) => MethodInfo * TextGetCharacterAtOffsetMethodInfo a signature Source # | |
textGetCharacterAtOffset Source #
Arguments
:: (HasCallStack, MonadIO m, IsText a) | |
=> a |
|
-> Int32 |
|
-> m Char | Returns: the character at |
Gets the specified text.
getCharacterCount
data TextGetCharacterCountMethodInfo Source #
Instances
((~) * signature (m Int32), MonadIO m, IsText a) => MethodInfo * TextGetCharacterCountMethodInfo a signature Source # | |
textGetCharacterCount Source #
Arguments
:: (HasCallStack, MonadIO m, IsText a) | |
=> a |
|
-> m Int32 | Returns: the number of characters. |
Gets the character count.
getCharacterExtents
textGetCharacterExtents Source #
Arguments
:: (HasCallStack, MonadIO m, IsText a) | |
=> a |
|
-> Int32 |
|
-> CoordType |
|
-> m (Int32, Int32, Int32, Int32) |
Get the bounding box containing the glyph representing the character at a particular text offset.
getDefaultAttributes
data TextGetDefaultAttributesMethodInfo Source #
Instances
((~) * signature (m [Ptr ()]), MonadIO m, IsText a) => MethodInfo * TextGetDefaultAttributesMethodInfo a signature Source # | |
textGetDefaultAttributes Source #
Arguments
:: (HasCallStack, MonadIO m, IsText a) | |
=> a |
|
-> m [Ptr ()] | Returns: an |
Creates an AtkAttributeSet
which consists of the default values of
attributes for the text. See the enum AtkTextAttribute for types of text
attributes that can be returned. Note that other attributes may also be
returned.
getNSelections
data TextGetNSelectionsMethodInfo Source #
Instances
((~) * signature (m Int32), MonadIO m, IsText a) => MethodInfo * TextGetNSelectionsMethodInfo a signature Source # | |
Arguments
:: (HasCallStack, MonadIO m, IsText a) | |
=> a |
|
-> m Int32 | Returns: The number of selected regions, or -1 if a failure occurred. |
Gets the number of selected regions.
getOffsetAtPoint
Arguments
:: (HasCallStack, MonadIO m, IsText a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> CoordType |
|
-> m Int32 | Returns: the offset to the character which is located at
the specified |
Gets the offset of the character located at coordinates x
and y
. x
and y
are interpreted as being relative to the screen or this widget's window
depending on coords
.
getRangeExtents
data TextGetRangeExtentsMethodInfo Source #
Instances
((~) * signature (Int32 -> Int32 -> CoordType -> m TextRectangle), MonadIO m, IsText a) => MethodInfo * TextGetRangeExtentsMethodInfo a signature Source # | |
Arguments
:: (HasCallStack, MonadIO m, IsText a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> CoordType |
|
-> m TextRectangle |
Get the bounding box for text within the specified range.
Since: 1.3
getRunAttributes
Arguments
:: (HasCallStack, MonadIO m, IsText a) | |
=> a |
|
-> Int32 |
|
-> m ([Ptr ()], Int32, Int32) | Returns: an |
Creates an AtkAttributeSet
which consists of the attributes explicitly
set at the position offset
in the text. startOffset
and endOffset
are
set to the start and end of the range around offset
where the attributes are
invariant. Note that endOffset
is the offset of the first character
after the range. See the enum AtkTextAttribute for types of text
attributes that can be returned. Note that other attributes may also be
returned.
getSelection
Arguments
:: (HasCallStack, MonadIO m, IsText a) | |
=> a |
|
-> Int32 |
|
-> m (Text, Int32, Int32) | Returns: a newly allocated string containing the selected text. Use |
Gets the text from the specified selection.
getStringAtOffset
data TextGetStringAtOffsetMethodInfo Source #
Instances
((~) * signature (Int32 -> TextGranularity -> m (Maybe Text, Int32, Int32)), MonadIO m, IsText a) => MethodInfo * TextGetStringAtOffsetMethodInfo a signature Source # | |
textGetStringAtOffset Source #
Arguments
:: (HasCallStack, MonadIO m, IsText a) | |
=> a |
|
-> Int32 |
|
-> TextGranularity |
|
-> m (Maybe Text, Int32, Int32) | Returns: a newly allocated string containing the text
at the |
Gets a portion of the text exposed through an Text
according to a given offset
and a specific granularity
, along with the start and end offsets defining the
boundaries of such a portion of text.
If granularity
is ATK_TEXT_GRANULARITY_CHAR the character at the
offset is returned.
If granularity
is ATK_TEXT_GRANULARITY_WORD the returned string
is from the word start at or before the offset to the word start after
the offset.
The returned string will contain the word at the offset if the offset is inside a word and will contain the word before the offset if the offset is not inside a word.
If granularity
is ATK_TEXT_GRANULARITY_SENTENCE the returned string
is from the sentence start at or before the offset to the sentence
start after the offset.
The returned string will contain the sentence at the offset if the offset is inside a sentence and will contain the sentence before the offset if the offset is not inside a sentence.
If granularity
is ATK_TEXT_GRANULARITY_LINE the returned string
is from the line start at or before the offset to the line
start after the offset.
If granularity
is ATK_TEXT_GRANULARITY_PARAGRAPH the returned string
is from the start of the paragraph at or before the offset to the start
of the following paragraph after the offset.
Since: 2.10
getText
data TextGetTextMethodInfo Source #
Arguments
:: (HasCallStack, MonadIO m, IsText a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> m Text | Returns: a newly allocated string containing the text from |
Gets the specified text.
getTextAfterOffset
data TextGetTextAfterOffsetMethodInfo Source #
Instances
((~) * signature (Int32 -> TextBoundary -> m (Text, Int32, Int32)), MonadIO m, IsText a) => MethodInfo * TextGetTextAfterOffsetMethodInfo a signature Source # | |
textGetTextAfterOffset Source #
Arguments
:: (HasCallStack, MonadIO m, IsText a) | |
=> a |
|
-> Int32 |
|
-> TextBoundary |
|
-> m (Text, Int32, Int32) | Returns: a newly allocated string containing the text after |
Deprecated: (Since version 2.9.3)Please use textGetStringAtOffset
instead.
Gets the specified text.
getTextAtOffset
data TextGetTextAtOffsetMethodInfo Source #
Instances
((~) * signature (Int32 -> TextBoundary -> m (Text, Int32, Int32)), MonadIO m, IsText a) => MethodInfo * TextGetTextAtOffsetMethodInfo a signature Source # | |
Arguments
:: (HasCallStack, MonadIO m, IsText a) | |
=> a |
|
-> Int32 |
|
-> TextBoundary |
|
-> m (Text, Int32, Int32) | Returns: a newly allocated string containing the text at |
Deprecated: This method is deprecated since ATK version2.9.4. Please use textGetStringAtOffset
instead.
Gets the specified text.
If the boundary_type if ATK_TEXT_BOUNDARY_CHAR the character at the offset is returned.
If the boundary_type is ATK_TEXT_BOUNDARY_WORD_START the returned string is from the word start at or before the offset to the word start after the offset.
The returned string will contain the word at the offset if the offset is inside a word and will contain the word before the offset if the offset is not inside a word.
If the boundary type is ATK_TEXT_BOUNDARY_SENTENCE_START the returned string is from the sentence start at or before the offset to the sentence start after the offset.
The returned string will contain the sentence at the offset if the offset is inside a sentence and will contain the sentence before the offset if the offset is not inside a sentence.
If the boundary type is ATK_TEXT_BOUNDARY_LINE_START the returned string is from the line start at or before the offset to the line start after the offset.
getTextBeforeOffset
data TextGetTextBeforeOffsetMethodInfo Source #
Instances
((~) * signature (Int32 -> TextBoundary -> m (Text, Int32, Int32)), MonadIO m, IsText a) => MethodInfo * TextGetTextBeforeOffsetMethodInfo a signature Source # | |
textGetTextBeforeOffset Source #
Arguments
:: (HasCallStack, MonadIO m, IsText a) | |
=> a |
|
-> Int32 |
|
-> TextBoundary |
|
-> m (Text, Int32, Int32) | Returns: a newly allocated string containing the text before |
Deprecated: (Since version 2.9.3)Please use textGetStringAtOffset
instead.
Gets the specified text.
removeSelection
data TextRemoveSelectionMethodInfo Source #
Instances
((~) * signature (Int32 -> m Bool), MonadIO m, IsText a) => MethodInfo * TextRemoveSelectionMethodInfo a signature Source # | |
Arguments
:: (HasCallStack, MonadIO m, IsText a) | |
=> a |
|
-> Int32 |
|
-> m Bool |
Removes the specified selection.
setCaretOffset
data TextSetCaretOffsetMethodInfo Source #
Instances
((~) * signature (Int32 -> m Bool), MonadIO m, IsText a) => MethodInfo * TextSetCaretOffsetMethodInfo a signature Source # | |
Arguments
:: (HasCallStack, MonadIO m, IsText a) | |
=> a |
|
-> Int32 |
|
-> m Bool |
Sets the caret (cursor) position to the specified offset
.
setSelection
Arguments
:: (HasCallStack, MonadIO m, IsText a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> m Bool |
Changes the start and end offset of the specified selection.
Signals
textAttributesChanged
type TextTextAttributesChangedCallback = IO () 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 #
afterTextTextCaretMoved :: (GObject a, MonadIO m) => a -> TextTextCaretMovedCallback -> m SignalHandlerId 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
afterTextTextChanged :: (GObject a, MonadIO m) => a -> TextTextChangedCallback -> m SignalHandlerId 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
afterTextTextInsert :: (GObject a, MonadIO m) => a -> TextTextInsertCallback -> m SignalHandlerId 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
afterTextTextRemove :: (GObject a, MonadIO m) => a -> TextTextRemoveCallback -> m SignalHandlerId 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 #
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 #