| 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.Gtk.Objects.TextBuffer
Contents
- Exported types
- Methods
- addMark
- addSelectionClipboard
- applyTag
- applyTagByName
- backspace
- beginUserAction
- copyClipboard
- createChildAnchor
- createMark
- cutClipboard
- delete
- deleteInteractive
- deleteMark
- deleteMarkByName
- deleteSelection
- deserialize
- deserializeGetCanCreateTags
- deserializeSetCanCreateTags
- endUserAction
- getBounds
- getCharCount
- getCopyTargetList
- getDeserializeFormats
- getEndIter
- getHasSelection
- getInsert
- getIterAtChildAnchor
- getIterAtLine
- getIterAtLineIndex
- getIterAtLineOffset
- getIterAtMark
- getIterAtOffset
- getLineCount
- getMark
- getModified
- getPasteTargetList
- getSelectionBound
- getSelectionBounds
- getSerializeFormats
- getSlice
- getStartIter
- getTagTable
- getText
- insert
- insertAtCursor
- insertChildAnchor
- insertInteractive
- insertInteractiveAtCursor
- insertMarkup
- insertPixbuf
- insertRange
- insertRangeInteractive
- moveMark
- moveMarkByName
- new
- pasteClipboard
- placeCursor
- registerDeserializeFormat
- registerDeserializeTagset
- registerSerializeFormat
- registerSerializeTagset
- removeAllTags
- removeSelectionClipboard
- removeTag
- removeTagByName
- selectRange
- serialize
- setModified
- setText
- unregisterDeserializeFormat
- unregisterSerializeFormat
- Properties
- Signals
Description
You may wish to begin by reading the [text widget conceptual overview][TextWidget] which gives an overview of all the objects and data types related to the text widget and how they work together.
- newtype TextBuffer = TextBuffer (ManagedPtr TextBuffer)
- class GObject o => IsTextBuffer o
- toTextBuffer :: IsTextBuffer o => o -> IO TextBuffer
- noTextBuffer :: Maybe TextBuffer
- data TextBufferAddMarkMethodInfo
- textBufferAddMark :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextMark b) => a -> b -> TextIter -> m ()
- data TextBufferAddSelectionClipboardMethodInfo
- textBufferAddSelectionClipboard :: (HasCallStack, MonadIO m, IsTextBuffer a, IsClipboard b) => a -> b -> m ()
- data TextBufferApplyTagMethodInfo
- textBufferApplyTag :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextTag b) => a -> b -> TextIter -> TextIter -> m ()
- data TextBufferApplyTagByNameMethodInfo
- textBufferApplyTagByName :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Text -> TextIter -> TextIter -> m ()
- data TextBufferBackspaceMethodInfo
- textBufferBackspace :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> TextIter -> Bool -> Bool -> m Bool
- data TextBufferBeginUserActionMethodInfo
- textBufferBeginUserAction :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> m ()
- data TextBufferCopyClipboardMethodInfo
- textBufferCopyClipboard :: (HasCallStack, MonadIO m, IsTextBuffer a, IsClipboard b) => a -> b -> m ()
- data TextBufferCreateChildAnchorMethodInfo
- textBufferCreateChildAnchor :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> TextIter -> m TextChildAnchor
- data TextBufferCreateMarkMethodInfo
- textBufferCreateMark :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Maybe Text -> TextIter -> Bool -> m TextMark
- data TextBufferCutClipboardMethodInfo
- textBufferCutClipboard :: (HasCallStack, MonadIO m, IsTextBuffer a, IsClipboard b) => a -> b -> Bool -> m ()
- data TextBufferDeleteMethodInfo
- textBufferDelete :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> TextIter -> TextIter -> m ()
- data TextBufferDeleteInteractiveMethodInfo
- textBufferDeleteInteractive :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> TextIter -> TextIter -> Bool -> m Bool
- data TextBufferDeleteMarkMethodInfo
- textBufferDeleteMark :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextMark b) => a -> b -> m ()
- data TextBufferDeleteMarkByNameMethodInfo
- textBufferDeleteMarkByName :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Text -> m ()
- data TextBufferDeleteSelectionMethodInfo
- textBufferDeleteSelection :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Bool -> Bool -> m Bool
- data TextBufferDeserializeMethodInfo
- textBufferDeserialize :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextBuffer b) => a -> b -> Atom -> TextIter -> ByteString -> m ()
- data TextBufferDeserializeGetCanCreateTagsMethodInfo
- textBufferDeserializeGetCanCreateTags :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Atom -> m Bool
- data TextBufferDeserializeSetCanCreateTagsMethodInfo
- textBufferDeserializeSetCanCreateTags :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Atom -> Bool -> m ()
- data TextBufferEndUserActionMethodInfo
- textBufferEndUserAction :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> m ()
- data TextBufferGetBoundsMethodInfo
- textBufferGetBounds :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> m (TextIter, TextIter)
- data TextBufferGetCharCountMethodInfo
- textBufferGetCharCount :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> m Int32
- data TextBufferGetCopyTargetListMethodInfo
- textBufferGetCopyTargetList :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> m TargetList
- data TextBufferGetDeserializeFormatsMethodInfo
- textBufferGetDeserializeFormats :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> m [Atom]
- data TextBufferGetEndIterMethodInfo
- textBufferGetEndIter :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> m TextIter
- data TextBufferGetHasSelectionMethodInfo
- textBufferGetHasSelection :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> m Bool
- data TextBufferGetInsertMethodInfo
- textBufferGetInsert :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> m TextMark
- data TextBufferGetIterAtChildAnchorMethodInfo
- textBufferGetIterAtChildAnchor :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextChildAnchor b) => a -> b -> m TextIter
- data TextBufferGetIterAtLineMethodInfo
- textBufferGetIterAtLine :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Int32 -> m TextIter
- data TextBufferGetIterAtLineIndexMethodInfo
- textBufferGetIterAtLineIndex :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Int32 -> Int32 -> m TextIter
- data TextBufferGetIterAtLineOffsetMethodInfo
- textBufferGetIterAtLineOffset :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Int32 -> Int32 -> m TextIter
- data TextBufferGetIterAtMarkMethodInfo
- textBufferGetIterAtMark :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextMark b) => a -> b -> m TextIter
- data TextBufferGetIterAtOffsetMethodInfo
- textBufferGetIterAtOffset :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Int32 -> m TextIter
- data TextBufferGetLineCountMethodInfo
- textBufferGetLineCount :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> m Int32
- data TextBufferGetMarkMethodInfo
- textBufferGetMark :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Text -> m (Maybe TextMark)
- data TextBufferGetModifiedMethodInfo
- textBufferGetModified :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> m Bool
- data TextBufferGetPasteTargetListMethodInfo
- textBufferGetPasteTargetList :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> m TargetList
- data TextBufferGetSelectionBoundMethodInfo
- textBufferGetSelectionBound :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> m TextMark
- data TextBufferGetSelectionBoundsMethodInfo
- textBufferGetSelectionBounds :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> m (Bool, TextIter, TextIter)
- data TextBufferGetSerializeFormatsMethodInfo
- textBufferGetSerializeFormats :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> m [Atom]
- data TextBufferGetSliceMethodInfo
- textBufferGetSlice :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> TextIter -> TextIter -> Bool -> m Text
- data TextBufferGetStartIterMethodInfo
- textBufferGetStartIter :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> m TextIter
- data TextBufferGetTagTableMethodInfo
- textBufferGetTagTable :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> m TextTagTable
- data TextBufferGetTextMethodInfo
- textBufferGetText :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> TextIter -> TextIter -> Bool -> m Text
- data TextBufferInsertMethodInfo
- textBufferInsert :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> TextIter -> Text -> Int32 -> m ()
- data TextBufferInsertAtCursorMethodInfo
- textBufferInsertAtCursor :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Text -> Int32 -> m ()
- data TextBufferInsertChildAnchorMethodInfo
- textBufferInsertChildAnchor :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextChildAnchor b) => a -> TextIter -> b -> m ()
- data TextBufferInsertInteractiveMethodInfo
- textBufferInsertInteractive :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> TextIter -> Text -> Int32 -> Bool -> m Bool
- data TextBufferInsertInteractiveAtCursorMethodInfo
- textBufferInsertInteractiveAtCursor :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Text -> Int32 -> Bool -> m Bool
- data TextBufferInsertMarkupMethodInfo
- textBufferInsertMarkup :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> TextIter -> Text -> Int32 -> m ()
- data TextBufferInsertPixbufMethodInfo
- textBufferInsertPixbuf :: (HasCallStack, MonadIO m, IsTextBuffer a, IsPixbuf b) => a -> TextIter -> b -> m ()
- data TextBufferInsertRangeMethodInfo
- textBufferInsertRange :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> TextIter -> TextIter -> TextIter -> m ()
- data TextBufferInsertRangeInteractiveMethodInfo
- textBufferInsertRangeInteractive :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> TextIter -> TextIter -> TextIter -> Bool -> m Bool
- data TextBufferMoveMarkMethodInfo
- textBufferMoveMark :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextMark b) => a -> b -> TextIter -> m ()
- data TextBufferMoveMarkByNameMethodInfo
- textBufferMoveMarkByName :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Text -> TextIter -> m ()
- textBufferNew :: (HasCallStack, MonadIO m, IsTextTagTable a) => Maybe a -> m TextBuffer
- data TextBufferPasteClipboardMethodInfo
- textBufferPasteClipboard :: (HasCallStack, MonadIO m, IsTextBuffer a, IsClipboard b) => a -> b -> Maybe TextIter -> Bool -> m ()
- data TextBufferPlaceCursorMethodInfo
- textBufferPlaceCursor :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> TextIter -> m ()
- data TextBufferRegisterDeserializeFormatMethodInfo
- textBufferRegisterDeserializeFormat :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Text -> FunPtr C_TextBufferDeserializeFunc -> m Atom
- data TextBufferRegisterDeserializeTagsetMethodInfo
- textBufferRegisterDeserializeTagset :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Maybe Text -> m Atom
- data TextBufferRegisterSerializeFormatMethodInfo
- textBufferRegisterSerializeFormat :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Text -> TextBufferSerializeFunc -> m Atom
- data TextBufferRegisterSerializeTagsetMethodInfo
- textBufferRegisterSerializeTagset :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Maybe Text -> m Atom
- data TextBufferRemoveAllTagsMethodInfo
- textBufferRemoveAllTags :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> TextIter -> TextIter -> m ()
- data TextBufferRemoveSelectionClipboardMethodInfo
- textBufferRemoveSelectionClipboard :: (HasCallStack, MonadIO m, IsTextBuffer a, IsClipboard b) => a -> b -> m ()
- data TextBufferRemoveTagMethodInfo
- textBufferRemoveTag :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextTag b) => a -> b -> TextIter -> TextIter -> m ()
- data TextBufferRemoveTagByNameMethodInfo
- textBufferRemoveTagByName :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Text -> TextIter -> TextIter -> m ()
- data TextBufferSelectRangeMethodInfo
- textBufferSelectRange :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> TextIter -> TextIter -> m ()
- data TextBufferSerializeMethodInfo
- textBufferSerialize :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextBuffer b) => a -> b -> Atom -> TextIter -> TextIter -> m ByteString
- data TextBufferSetModifiedMethodInfo
- textBufferSetModified :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Bool -> m ()
- data TextBufferSetTextMethodInfo
- textBufferSetText :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Text -> Int32 -> m ()
- data TextBufferUnregisterDeserializeFormatMethodInfo
- textBufferUnregisterDeserializeFormat :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Atom -> m ()
- data TextBufferUnregisterSerializeFormatMethodInfo
- textBufferUnregisterSerializeFormat :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> Atom -> m ()
- data TextBufferCopyTargetListPropertyInfo
- getTextBufferCopyTargetList :: (MonadIO m, IsTextBuffer o) => o -> m TargetList
- textBufferCopyTargetList :: AttrLabelProxy "copyTargetList"
- data TextBufferCursorPositionPropertyInfo
- getTextBufferCursorPosition :: (MonadIO m, IsTextBuffer o) => o -> m Int32
- textBufferCursorPosition :: AttrLabelProxy "cursorPosition"
- data TextBufferHasSelectionPropertyInfo
- getTextBufferHasSelection :: (MonadIO m, IsTextBuffer o) => o -> m Bool
- textBufferHasSelection :: AttrLabelProxy "hasSelection"
- data TextBufferPasteTargetListPropertyInfo
- getTextBufferPasteTargetList :: (MonadIO m, IsTextBuffer o) => o -> m TargetList
- textBufferPasteTargetList :: AttrLabelProxy "pasteTargetList"
- data TextBufferTagTablePropertyInfo
- constructTextBufferTagTable :: (IsTextBuffer o, IsTextTagTable a) => a -> IO (GValueConstruct o)
- getTextBufferTagTable :: (MonadIO m, IsTextBuffer o) => o -> m TextTagTable
- textBufferTagTable :: AttrLabelProxy "tagTable"
- data TextBufferTextPropertyInfo
- clearTextBufferText :: (MonadIO m, IsTextBuffer o) => o -> m ()
- constructTextBufferText :: IsTextBuffer o => Text -> IO (GValueConstruct o)
- getTextBufferText :: (MonadIO m, IsTextBuffer o) => o -> m (Maybe Text)
- setTextBufferText :: (MonadIO m, IsTextBuffer o) => o -> Text -> m ()
- textBufferText :: AttrLabelProxy "text"
- type C_TextBufferApplyTagCallback = Ptr () -> Ptr TextTag -> Ptr TextIter -> Ptr TextIter -> Ptr () -> IO ()
- type TextBufferApplyTagCallback = TextTag -> TextIter -> TextIter -> IO ()
- data TextBufferApplyTagSignalInfo
- afterTextBufferApplyTag :: (GObject a, MonadIO m) => a -> TextBufferApplyTagCallback -> m SignalHandlerId
- genClosure_TextBufferApplyTag :: TextBufferApplyTagCallback -> IO Closure
- mk_TextBufferApplyTagCallback :: C_TextBufferApplyTagCallback -> IO (FunPtr C_TextBufferApplyTagCallback)
- noTextBufferApplyTagCallback :: Maybe TextBufferApplyTagCallback
- onTextBufferApplyTag :: (GObject a, MonadIO m) => a -> TextBufferApplyTagCallback -> m SignalHandlerId
- wrap_TextBufferApplyTagCallback :: TextBufferApplyTagCallback -> Ptr () -> Ptr TextTag -> Ptr TextIter -> Ptr TextIter -> Ptr () -> IO ()
- type C_TextBufferBeginUserActionCallback = Ptr () -> Ptr () -> IO ()
- type TextBufferBeginUserActionCallback = IO ()
- data TextBufferBeginUserActionSignalInfo
- afterTextBufferBeginUserAction :: (GObject a, MonadIO m) => a -> TextBufferBeginUserActionCallback -> m SignalHandlerId
- genClosure_TextBufferBeginUserAction :: TextBufferBeginUserActionCallback -> IO Closure
- mk_TextBufferBeginUserActionCallback :: C_TextBufferBeginUserActionCallback -> IO (FunPtr C_TextBufferBeginUserActionCallback)
- noTextBufferBeginUserActionCallback :: Maybe TextBufferBeginUserActionCallback
- onTextBufferBeginUserAction :: (GObject a, MonadIO m) => a -> TextBufferBeginUserActionCallback -> m SignalHandlerId
- wrap_TextBufferBeginUserActionCallback :: TextBufferBeginUserActionCallback -> Ptr () -> Ptr () -> IO ()
- type C_TextBufferChangedCallback = Ptr () -> Ptr () -> IO ()
- type TextBufferChangedCallback = IO ()
- data TextBufferChangedSignalInfo
- afterTextBufferChanged :: (GObject a, MonadIO m) => a -> TextBufferChangedCallback -> m SignalHandlerId
- genClosure_TextBufferChanged :: TextBufferChangedCallback -> IO Closure
- mk_TextBufferChangedCallback :: C_TextBufferChangedCallback -> IO (FunPtr C_TextBufferChangedCallback)
- noTextBufferChangedCallback :: Maybe TextBufferChangedCallback
- onTextBufferChanged :: (GObject a, MonadIO m) => a -> TextBufferChangedCallback -> m SignalHandlerId
- wrap_TextBufferChangedCallback :: TextBufferChangedCallback -> Ptr () -> Ptr () -> IO ()
- type C_TextBufferDeleteRangeCallback = Ptr () -> Ptr TextIter -> Ptr TextIter -> Ptr () -> IO ()
- type TextBufferDeleteRangeCallback = TextIter -> TextIter -> IO ()
- data TextBufferDeleteRangeSignalInfo
- afterTextBufferDeleteRange :: (GObject a, MonadIO m) => a -> TextBufferDeleteRangeCallback -> m SignalHandlerId
- genClosure_TextBufferDeleteRange :: TextBufferDeleteRangeCallback -> IO Closure
- mk_TextBufferDeleteRangeCallback :: C_TextBufferDeleteRangeCallback -> IO (FunPtr C_TextBufferDeleteRangeCallback)
- noTextBufferDeleteRangeCallback :: Maybe TextBufferDeleteRangeCallback
- onTextBufferDeleteRange :: (GObject a, MonadIO m) => a -> TextBufferDeleteRangeCallback -> m SignalHandlerId
- wrap_TextBufferDeleteRangeCallback :: TextBufferDeleteRangeCallback -> Ptr () -> Ptr TextIter -> Ptr TextIter -> Ptr () -> IO ()
- type C_TextBufferEndUserActionCallback = Ptr () -> Ptr () -> IO ()
- type TextBufferEndUserActionCallback = IO ()
- data TextBufferEndUserActionSignalInfo
- afterTextBufferEndUserAction :: (GObject a, MonadIO m) => a -> TextBufferEndUserActionCallback -> m SignalHandlerId
- genClosure_TextBufferEndUserAction :: TextBufferEndUserActionCallback -> IO Closure
- mk_TextBufferEndUserActionCallback :: C_TextBufferEndUserActionCallback -> IO (FunPtr C_TextBufferEndUserActionCallback)
- noTextBufferEndUserActionCallback :: Maybe TextBufferEndUserActionCallback
- onTextBufferEndUserAction :: (GObject a, MonadIO m) => a -> TextBufferEndUserActionCallback -> m SignalHandlerId
- wrap_TextBufferEndUserActionCallback :: TextBufferEndUserActionCallback -> Ptr () -> Ptr () -> IO ()
- type C_TextBufferInsertChildAnchorCallback = Ptr () -> Ptr TextIter -> Ptr TextChildAnchor -> Ptr () -> IO ()
- type TextBufferInsertChildAnchorCallback = TextIter -> TextChildAnchor -> IO ()
- data TextBufferInsertChildAnchorSignalInfo
- afterTextBufferInsertChildAnchor :: (GObject a, MonadIO m) => a -> TextBufferInsertChildAnchorCallback -> m SignalHandlerId
- genClosure_TextBufferInsertChildAnchor :: TextBufferInsertChildAnchorCallback -> IO Closure
- mk_TextBufferInsertChildAnchorCallback :: C_TextBufferInsertChildAnchorCallback -> IO (FunPtr C_TextBufferInsertChildAnchorCallback)
- noTextBufferInsertChildAnchorCallback :: Maybe TextBufferInsertChildAnchorCallback
- onTextBufferInsertChildAnchor :: (GObject a, MonadIO m) => a -> TextBufferInsertChildAnchorCallback -> m SignalHandlerId
- wrap_TextBufferInsertChildAnchorCallback :: TextBufferInsertChildAnchorCallback -> Ptr () -> Ptr TextIter -> Ptr TextChildAnchor -> Ptr () -> IO ()
- type C_TextBufferInsertPixbufCallback = Ptr () -> Ptr TextIter -> Ptr Pixbuf -> Ptr () -> IO ()
- type TextBufferInsertPixbufCallback = TextIter -> Pixbuf -> IO ()
- data TextBufferInsertPixbufSignalInfo
- afterTextBufferInsertPixbuf :: (GObject a, MonadIO m) => a -> TextBufferInsertPixbufCallback -> m SignalHandlerId
- genClosure_TextBufferInsertPixbuf :: TextBufferInsertPixbufCallback -> IO Closure
- mk_TextBufferInsertPixbufCallback :: C_TextBufferInsertPixbufCallback -> IO (FunPtr C_TextBufferInsertPixbufCallback)
- noTextBufferInsertPixbufCallback :: Maybe TextBufferInsertPixbufCallback
- onTextBufferInsertPixbuf :: (GObject a, MonadIO m) => a -> TextBufferInsertPixbufCallback -> m SignalHandlerId
- wrap_TextBufferInsertPixbufCallback :: TextBufferInsertPixbufCallback -> Ptr () -> Ptr TextIter -> Ptr Pixbuf -> Ptr () -> IO ()
- type C_TextBufferInsertTextCallback = Ptr () -> Ptr TextIter -> CString -> Int32 -> Ptr () -> IO ()
- type TextBufferInsertTextCallback = TextIter -> Text -> Int32 -> IO ()
- data TextBufferInsertTextSignalInfo
- afterTextBufferInsertText :: (GObject a, MonadIO m) => a -> TextBufferInsertTextCallback -> m SignalHandlerId
- genClosure_TextBufferInsertText :: TextBufferInsertTextCallback -> IO Closure
- mk_TextBufferInsertTextCallback :: C_TextBufferInsertTextCallback -> IO (FunPtr C_TextBufferInsertTextCallback)
- noTextBufferInsertTextCallback :: Maybe TextBufferInsertTextCallback
- onTextBufferInsertText :: (GObject a, MonadIO m) => a -> TextBufferInsertTextCallback -> m SignalHandlerId
- wrap_TextBufferInsertTextCallback :: TextBufferInsertTextCallback -> Ptr () -> Ptr TextIter -> CString -> Int32 -> Ptr () -> IO ()
- type C_TextBufferMarkDeletedCallback = Ptr () -> Ptr TextMark -> Ptr () -> IO ()
- type TextBufferMarkDeletedCallback = TextMark -> IO ()
- data TextBufferMarkDeletedSignalInfo
- afterTextBufferMarkDeleted :: (GObject a, MonadIO m) => a -> TextBufferMarkDeletedCallback -> m SignalHandlerId
- genClosure_TextBufferMarkDeleted :: TextBufferMarkDeletedCallback -> IO Closure
- mk_TextBufferMarkDeletedCallback :: C_TextBufferMarkDeletedCallback -> IO (FunPtr C_TextBufferMarkDeletedCallback)
- noTextBufferMarkDeletedCallback :: Maybe TextBufferMarkDeletedCallback
- onTextBufferMarkDeleted :: (GObject a, MonadIO m) => a -> TextBufferMarkDeletedCallback -> m SignalHandlerId
- wrap_TextBufferMarkDeletedCallback :: TextBufferMarkDeletedCallback -> Ptr () -> Ptr TextMark -> Ptr () -> IO ()
- type C_TextBufferMarkSetCallback = Ptr () -> Ptr TextIter -> Ptr TextMark -> Ptr () -> IO ()
- type TextBufferMarkSetCallback = TextIter -> TextMark -> IO ()
- data TextBufferMarkSetSignalInfo
- afterTextBufferMarkSet :: (GObject a, MonadIO m) => a -> TextBufferMarkSetCallback -> m SignalHandlerId
- genClosure_TextBufferMarkSet :: TextBufferMarkSetCallback -> IO Closure
- mk_TextBufferMarkSetCallback :: C_TextBufferMarkSetCallback -> IO (FunPtr C_TextBufferMarkSetCallback)
- noTextBufferMarkSetCallback :: Maybe TextBufferMarkSetCallback
- onTextBufferMarkSet :: (GObject a, MonadIO m) => a -> TextBufferMarkSetCallback -> m SignalHandlerId
- wrap_TextBufferMarkSetCallback :: TextBufferMarkSetCallback -> Ptr () -> Ptr TextIter -> Ptr TextMark -> Ptr () -> IO ()
- type C_TextBufferModifiedChangedCallback = Ptr () -> Ptr () -> IO ()
- type TextBufferModifiedChangedCallback = IO ()
- data TextBufferModifiedChangedSignalInfo
- afterTextBufferModifiedChanged :: (GObject a, MonadIO m) => a -> TextBufferModifiedChangedCallback -> m SignalHandlerId
- genClosure_TextBufferModifiedChanged :: TextBufferModifiedChangedCallback -> IO Closure
- mk_TextBufferModifiedChangedCallback :: C_TextBufferModifiedChangedCallback -> IO (FunPtr C_TextBufferModifiedChangedCallback)
- noTextBufferModifiedChangedCallback :: Maybe TextBufferModifiedChangedCallback
- onTextBufferModifiedChanged :: (GObject a, MonadIO m) => a -> TextBufferModifiedChangedCallback -> m SignalHandlerId
- wrap_TextBufferModifiedChangedCallback :: TextBufferModifiedChangedCallback -> Ptr () -> Ptr () -> IO ()
- type C_TextBufferPasteDoneCallback = Ptr () -> Ptr Clipboard -> Ptr () -> IO ()
- type TextBufferPasteDoneCallback = Clipboard -> IO ()
- data TextBufferPasteDoneSignalInfo
- afterTextBufferPasteDone :: (GObject a, MonadIO m) => a -> TextBufferPasteDoneCallback -> m SignalHandlerId
- genClosure_TextBufferPasteDone :: TextBufferPasteDoneCallback -> IO Closure
- mk_TextBufferPasteDoneCallback :: C_TextBufferPasteDoneCallback -> IO (FunPtr C_TextBufferPasteDoneCallback)
- noTextBufferPasteDoneCallback :: Maybe TextBufferPasteDoneCallback
- onTextBufferPasteDone :: (GObject a, MonadIO m) => a -> TextBufferPasteDoneCallback -> m SignalHandlerId
- wrap_TextBufferPasteDoneCallback :: TextBufferPasteDoneCallback -> Ptr () -> Ptr Clipboard -> Ptr () -> IO ()
- type C_TextBufferRemoveTagCallback = Ptr () -> Ptr TextTag -> Ptr TextIter -> Ptr TextIter -> Ptr () -> IO ()
- type TextBufferRemoveTagCallback = TextTag -> TextIter -> TextIter -> IO ()
- data TextBufferRemoveTagSignalInfo
- afterTextBufferRemoveTag :: (GObject a, MonadIO m) => a -> TextBufferRemoveTagCallback -> m SignalHandlerId
- genClosure_TextBufferRemoveTag :: TextBufferRemoveTagCallback -> IO Closure
- mk_TextBufferRemoveTagCallback :: C_TextBufferRemoveTagCallback -> IO (FunPtr C_TextBufferRemoveTagCallback)
- noTextBufferRemoveTagCallback :: Maybe TextBufferRemoveTagCallback
- onTextBufferRemoveTag :: (GObject a, MonadIO m) => a -> TextBufferRemoveTagCallback -> m SignalHandlerId
- wrap_TextBufferRemoveTagCallback :: TextBufferRemoveTagCallback -> Ptr () -> Ptr TextTag -> Ptr TextIter -> Ptr TextIter -> Ptr () -> IO ()
Exported types
newtype TextBuffer Source #
Constructors
| TextBuffer (ManagedPtr TextBuffer) |
Instances
| GObject TextBuffer Source # | |
| IsObject TextBuffer Source # | |
| IsTextBuffer TextBuffer Source # | |
| ((~) * info (ResolveTextBufferMethod t TextBuffer), MethodInfo * info TextBuffer p) => IsLabel t (TextBuffer -> p) Source # | |
| ((~) * info (ResolveTextBufferMethod t TextBuffer), MethodInfo * info TextBuffer p) => IsLabelProxy t (TextBuffer -> p) Source # | |
| HasAttributeList * TextBuffer Source # | |
| type AttributeList TextBuffer Source # | |
| type SignalList TextBuffer Source # | |
class GObject o => IsTextBuffer o Source #
Instances
toTextBuffer :: IsTextBuffer o => o -> IO TextBuffer Source #
Methods
addMark
data TextBufferAddMarkMethodInfo Source #
Instances
| ((~) * signature (b -> TextIter -> m ()), MonadIO m, IsTextBuffer a, IsTextMark b) => MethodInfo * TextBufferAddMarkMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextMark b) | |
| => a |
|
| -> b |
|
| -> TextIter |
|
| -> m () |
Adds the mark at position where. The mark must not be added to
another buffer, and if its name is not Nothing then there must not
be another mark in the buffer with the same name.
Emits the TextBuffer::mark-set signal as notification of the mark's
initial placement.
Since: 2.12
addSelectionClipboard
data TextBufferAddSelectionClipboardMethodInfo Source #
Instances
| ((~) * signature (b -> m ()), MonadIO m, IsTextBuffer a, IsClipboard b) => MethodInfo * TextBufferAddSelectionClipboardMethodInfo a signature Source # | |
textBufferAddSelectionClipboard Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a, IsClipboard b) | |
| => a |
|
| -> b |
|
| -> m () |
Adds clipboard to the list of clipboards in which the selection
contents of buffer are available. In most cases, clipboard will be
the Clipboard of type GDK_SELECTION_PRIMARY for a view of buffer.
applyTag
data TextBufferApplyTagMethodInfo Source #
Instances
| ((~) * signature (b -> TextIter -> TextIter -> m ()), MonadIO m, IsTextBuffer a, IsTextTag b) => MethodInfo * TextBufferApplyTagMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextTag b) | |
| => a |
|
| -> b |
|
| -> TextIter |
|
| -> TextIter |
|
| -> m () |
Emits the “apply-tag” signal on buffer. The default
handler for the signal applies tag to the given range.
start and end do not have to be in order.
applyTagByName
data TextBufferApplyTagByNameMethodInfo Source #
Instances
| ((~) * signature (Text -> TextIter -> TextIter -> m ()), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferApplyTagByNameMethodInfo a signature Source # | |
textBufferApplyTagByName Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Text |
|
| -> TextIter |
|
| -> TextIter |
|
| -> m () |
Calls textTagTableLookup on the buffer’s tag table to
get a TextTag, then calls textBufferApplyTag.
backspace
data TextBufferBackspaceMethodInfo Source #
Instances
| ((~) * signature (TextIter -> Bool -> Bool -> m Bool), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferBackspaceMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> TextIter |
|
| -> Bool |
|
| -> Bool |
|
| -> m Bool | Returns: |
Performs the appropriate action as if the user hit the delete
key with the cursor at the position specified by iter. In the
normal case a single character will be deleted, but when
combining accents are involved, more than one character can
be deleted, and when precomposed character and accent combinations
are involved, less than one character will be deleted.
Because the buffer is modified, all outstanding iterators become
invalid after calling this function; however, the iter will be
re-initialized to point to the location where text was deleted.
Since: 2.6
beginUserAction
data TextBufferBeginUserActionMethodInfo Source #
Instances
| ((~) * signature (m ()), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferBeginUserActionMethodInfo a signature Source # | |
textBufferBeginUserAction Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> m () |
Called to indicate that the buffer operations between here and a
call to textBufferEndUserAction are part of a single
user-visible operation. The operations between
textBufferBeginUserAction and
textBufferEndUserAction can then be grouped when creating
an undo stack. TextBuffer maintains a count of calls to
textBufferBeginUserAction that have not been closed with
a call to textBufferEndUserAction, and emits the
“begin-user-action” and “end-user-action” signals only for the
outermost pair of calls. This allows you to build user actions
from other user actions.
The “interactive” buffer mutation functions, such as
textBufferInsertInteractive, automatically call begin/end
user action around the buffer operations they perform, so there's
no need to add extra calls if you user action consists solely of a
single call to one of those functions.
copyClipboard
data TextBufferCopyClipboardMethodInfo Source #
Instances
| ((~) * signature (b -> m ()), MonadIO m, IsTextBuffer a, IsClipboard b) => MethodInfo * TextBufferCopyClipboardMethodInfo a signature Source # | |
textBufferCopyClipboard Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a, IsClipboard b) | |
| => a |
|
| -> b |
|
| -> m () |
Copies the currently-selected text to a clipboard.
createChildAnchor
data TextBufferCreateChildAnchorMethodInfo Source #
Instances
| ((~) * signature (TextIter -> m TextChildAnchor), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferCreateChildAnchorMethodInfo a signature Source # | |
textBufferCreateChildAnchor Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> TextIter |
|
| -> m TextChildAnchor | Returns: the created child anchor |
This is a convenience function which simply creates a child anchor
with textChildAnchorNew and inserts it into the buffer
with textBufferInsertChildAnchor. The new anchor is
owned by the buffer; no reference count is returned to
the caller of textBufferCreateChildAnchor.
createMark
data TextBufferCreateMarkMethodInfo Source #
Instances
| ((~) * signature (Maybe Text -> TextIter -> Bool -> m TextMark), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferCreateMarkMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Maybe Text |
|
| -> TextIter |
|
| -> Bool |
|
| -> m TextMark | Returns: the new |
Creates a mark at position where. If markName is Nothing, the mark
is anonymous; otherwise, the mark can be retrieved by name using
textBufferGetMark. If a mark has left gravity, and text is
inserted at the mark’s current location, the mark will be moved to
the left of the newly-inserted text. If the mark has right gravity
(leftGravity = False), the mark will end up on the right of
newly-inserted text. The standard left-to-right cursor is a mark
with right gravity (when you type, the cursor stays on the right
side of the text you’re typing).
The caller of this function does not own a
reference to the returned TextMark, so you can ignore the
return value if you like. Marks are owned by the buffer and go
away when the buffer does.
Emits the TextBuffer::mark-set signal as notification of the mark's
initial placement.
cutClipboard
data TextBufferCutClipboardMethodInfo Source #
Instances
| ((~) * signature (b -> Bool -> m ()), MonadIO m, IsTextBuffer a, IsClipboard b) => MethodInfo * TextBufferCutClipboardMethodInfo a signature Source # | |
textBufferCutClipboard Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a, IsClipboard b) | |
| => a |
|
| -> b |
|
| -> Bool |
|
| -> m () |
Copies the currently-selected text to a clipboard, then deletes said text if it’s editable.
delete
data TextBufferDeleteMethodInfo Source #
Instances
| ((~) * signature (TextIter -> TextIter -> m ()), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferDeleteMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> TextIter |
|
| -> TextIter |
|
| -> m () |
Deletes text between start and end. The order of start and end
is not actually relevant; textBufferDelete will reorder
them. This function actually emits the “delete-range” signal, and
the default handler of that signal deletes the text. Because the
buffer is modified, all outstanding iterators become invalid after
calling this function; however, the start and end will be
re-initialized to point to the location where text was deleted.
deleteInteractive
data TextBufferDeleteInteractiveMethodInfo Source #
Instances
| ((~) * signature (TextIter -> TextIter -> Bool -> m Bool), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferDeleteInteractiveMethodInfo a signature Source # | |
textBufferDeleteInteractive Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> TextIter |
|
| -> TextIter |
|
| -> Bool |
|
| -> m Bool | Returns: whether some text was actually deleted |
Deletes all editable text in the given range.
Calls textBufferDelete for each editable sub-range of
[start,end). start and end are revalidated to point to
the location of the last deleted range, or left untouched if
no text was deleted.
deleteMark
data TextBufferDeleteMarkMethodInfo Source #
Instances
| ((~) * signature (b -> m ()), MonadIO m, IsTextBuffer a, IsTextMark b) => MethodInfo * TextBufferDeleteMarkMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextMark b) | |
| => a |
|
| -> b |
|
| -> m () |
Deletes mark, so that it’s no longer located anywhere in the
buffer. Removes the reference the buffer holds to the mark, so if
you haven’t called objectRef on the mark, it will be freed. Even
if the mark isn’t freed, most operations on mark become
invalid, until it gets added to a buffer again with
textBufferAddMark. Use textMarkGetDeleted to
find out if a mark has been removed from its buffer.
The TextBuffer::mark-deleted signal will be emitted as notification after
the mark is deleted.
deleteMarkByName
data TextBufferDeleteMarkByNameMethodInfo Source #
Instances
| ((~) * signature (Text -> m ()), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferDeleteMarkByNameMethodInfo a signature Source # | |
textBufferDeleteMarkByName Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Text |
|
| -> m () |
Deletes the mark named name; the mark must exist. See
textBufferDeleteMark for details.
deleteSelection
data TextBufferDeleteSelectionMethodInfo Source #
Instances
| ((~) * signature (Bool -> Bool -> m Bool), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferDeleteSelectionMethodInfo a signature Source # | |
textBufferDeleteSelection Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Bool |
|
| -> Bool |
|
| -> m Bool | Returns: whether there was a non-empty selection to delete |
Deletes the range between the “insert” and “selection_bound” marks,
that is, the currently-selected text. If interactive is True,
the editability of the selection will be considered (users can’t delete
uneditable text).
deserialize
data TextBufferDeserializeMethodInfo Source #
Instances
| ((~) * signature (b -> Atom -> TextIter -> ByteString -> m ()), MonadIO m, IsTextBuffer a, IsTextBuffer b) => MethodInfo * TextBufferDeserializeMethodInfo a signature Source # | |
textBufferDeserialize Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextBuffer b) | |
| => a |
|
| -> b |
|
| -> Atom |
|
| -> TextIter |
|
| -> ByteString |
|
| -> m () | (Can throw |
This function deserializes rich text in format format and inserts
it at iter.
formats to be used must be registered using
textBufferRegisterDeserializeFormat or
textBufferRegisterDeserializeTagset beforehand.
Since: 2.10
deserializeGetCanCreateTags
data TextBufferDeserializeGetCanCreateTagsMethodInfo Source #
Instances
| ((~) * signature (Atom -> m Bool), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferDeserializeGetCanCreateTagsMethodInfo a signature Source # | |
textBufferDeserializeGetCanCreateTags Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Atom |
|
| -> m Bool | Returns: whether deserializing this format may create tags |
This functions returns the value set with
textBufferDeserializeSetCanCreateTags
Since: 2.10
deserializeSetCanCreateTags
data TextBufferDeserializeSetCanCreateTagsMethodInfo Source #
Instances
| ((~) * signature (Atom -> Bool -> m ()), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferDeserializeSetCanCreateTagsMethodInfo a signature Source # | |
textBufferDeserializeSetCanCreateTags Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Atom |
|
| -> Bool |
|
| -> m () |
Use this function to allow a rich text deserialization function to create new tags in the receiving buffer. Note that using this function is almost always a bad idea, because the rich text functions you register should know how to map the rich text format they handler to your text buffers set of tags.
The ability of creating new (arbitrary!) tags in the receiving buffer
is meant for special rich text formats like the internal one that
is registered using textBufferRegisterDeserializeTagset,
because that format is essentially a dump of the internal structure
of the source buffer, including its tag names.
You should allow creation of tags only if you know what you are doing, e.g. if you defined a tagset name for your application suite’s text buffers and you know that it’s fine to receive new tags from these buffers, because you know that your application can handle the newly created tags.
Since: 2.10
endUserAction
data TextBufferEndUserActionMethodInfo Source #
Instances
| ((~) * signature (m ()), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferEndUserActionMethodInfo a signature Source # | |
textBufferEndUserAction Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> m () |
Should be paired with a call to textBufferBeginUserAction.
See that function for a full explanation.
getBounds
data TextBufferGetBoundsMethodInfo Source #
Instances
| ((~) * signature (m (TextIter, TextIter)), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetBoundsMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> m (TextIter, TextIter) |
Retrieves the first and last iterators in the buffer, i.e. the
entire buffer lies within the range [start,end).
getCharCount
data TextBufferGetCharCountMethodInfo Source #
Instances
| ((~) * signature (m Int32), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetCharCountMethodInfo a signature Source # | |
textBufferGetCharCount Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> m Int32 | Returns: number of characters in the buffer |
Gets the number of characters in the buffer; note that characters and bytes are not the same, you can’t e.g. expect the contents of the buffer in string form to be this many bytes long. The character count is cached, so this function is very fast.
getCopyTargetList
data TextBufferGetCopyTargetListMethodInfo Source #
Instances
| ((~) * signature (m TargetList), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetCopyTargetListMethodInfo a signature Source # | |
textBufferGetCopyTargetList Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> m TargetList | Returns: the |
This function returns the list of targets this text buffer can
provide for copying and as DND source. The targets in the list are
added with info values from the TextBufferTargetInfo enum,
using targetListAddRichTextTargets and
targetListAddTextTargets.
Since: 2.10
getDeserializeFormats
data TextBufferGetDeserializeFormatsMethodInfo Source #
Instances
| ((~) * signature (m [Atom]), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetDeserializeFormatsMethodInfo a signature Source # | |
textBufferGetDeserializeFormats Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> m [Atom] | Returns: an array of
|
This function returns the rich text deserialize formats registered
with buffer using textBufferRegisterDeserializeFormat or
textBufferRegisterDeserializeTagset
Since: 2.10
getEndIter
data TextBufferGetEndIterMethodInfo Source #
Instances
| ((~) * signature (m TextIter), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetEndIterMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> m TextIter |
Initializes iter with the “end iterator,” one past the last valid
character in the text buffer. If dereferenced with
textIterGetChar, the end iterator has a character value of 0.
The entire buffer lies in the range from the first position in
the buffer (call textBufferGetStartIter to get
character position 0) to the end iterator.
getHasSelection
data TextBufferGetHasSelectionMethodInfo Source #
Instances
| ((~) * signature (m Bool), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetHasSelectionMethodInfo a signature Source # | |
textBufferGetHasSelection Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> m Bool | Returns: |
Indicates whether the buffer has some text currently selected.
Since: 2.10
getInsert
data TextBufferGetInsertMethodInfo Source #
Instances
| ((~) * signature (m TextMark), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetInsertMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> m TextMark | Returns: insertion point mark |
Returns the mark that represents the cursor (insertion point).
Equivalent to calling textBufferGetMark to get the mark
named “insert”, but very slightly more efficient, and involves less
typing.
getIterAtChildAnchor
data TextBufferGetIterAtChildAnchorMethodInfo Source #
Instances
| ((~) * signature (b -> m TextIter), MonadIO m, IsTextBuffer a, IsTextChildAnchor b) => MethodInfo * TextBufferGetIterAtChildAnchorMethodInfo a signature Source # | |
textBufferGetIterAtChildAnchor Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextChildAnchor b) | |
| => a |
|
| -> b |
|
| -> m TextIter |
Obtains the location of anchor within buffer.
getIterAtLine
data TextBufferGetIterAtLineMethodInfo Source #
Instances
| ((~) * signature (Int32 -> m TextIter), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetIterAtLineMethodInfo a signature Source # | |
textBufferGetIterAtLine Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Int32 |
|
| -> m TextIter |
Initializes iter to the start of the given line. If lineNumber is greater
than the number of lines in the buffer, the end iterator is returned.
getIterAtLineIndex
data TextBufferGetIterAtLineIndexMethodInfo Source #
Instances
| ((~) * signature (Int32 -> Int32 -> m TextIter), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetIterAtLineIndexMethodInfo a signature Source # | |
textBufferGetIterAtLineIndex Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Int32 |
|
| -> Int32 |
|
| -> m TextIter |
Obtains an iterator pointing to byteIndex within the given line.
byteIndex must be the start of a UTF-8 character. Note bytes, not
characters; UTF-8 may encode one character as multiple bytes.
Before the 3.20 version, it was not allowed to pass an invalid location.
Since the 3.20 version, if lineNumber is greater than the number of lines
in the buffer, the end iterator is returned. And if byteIndex is off the
end of the line, the iterator at the end of the line is returned.
getIterAtLineOffset
data TextBufferGetIterAtLineOffsetMethodInfo Source #
Instances
| ((~) * signature (Int32 -> Int32 -> m TextIter), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetIterAtLineOffsetMethodInfo a signature Source # | |
textBufferGetIterAtLineOffset Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Int32 |
|
| -> Int32 |
|
| -> m TextIter |
Obtains an iterator pointing to charOffset within the given line. Note
characters, not bytes; UTF-8 may encode one character as multiple bytes.
Before the 3.20 version, it was not allowed to pass an invalid location.
Since the 3.20 version, if lineNumber is greater than the number of lines
in the buffer, the end iterator is returned. And if charOffset is off the
end of the line, the iterator at the end of the line is returned.
getIterAtMark
data TextBufferGetIterAtMarkMethodInfo Source #
Instances
| ((~) * signature (b -> m TextIter), MonadIO m, IsTextBuffer a, IsTextMark b) => MethodInfo * TextBufferGetIterAtMarkMethodInfo a signature Source # | |
textBufferGetIterAtMark Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextMark b) | |
| => a |
|
| -> b |
|
| -> m TextIter |
Initializes iter with the current position of mark.
getIterAtOffset
data TextBufferGetIterAtOffsetMethodInfo Source #
Instances
| ((~) * signature (Int32 -> m TextIter), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetIterAtOffsetMethodInfo a signature Source # | |
textBufferGetIterAtOffset Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Int32 |
|
| -> m TextIter |
Initializes iter to a position charOffset chars from the start
of the entire buffer. If charOffset is -1 or greater than the number
of characters in the buffer, iter is initialized to the end iterator,
the iterator one past the last valid character in the buffer.
getLineCount
data TextBufferGetLineCountMethodInfo Source #
Instances
| ((~) * signature (m Int32), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetLineCountMethodInfo a signature Source # | |
textBufferGetLineCount Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> m Int32 | Returns: number of lines in the buffer |
Obtains the number of lines in the buffer. This value is cached, so the function is very fast.
getMark
data TextBufferGetMarkMethodInfo Source #
Instances
| ((~) * signature (Text -> m (Maybe TextMark)), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetMarkMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Text |
|
| -> m (Maybe TextMark) |
Returns the mark named name in buffer buffer, or Nothing if no such
mark exists in the buffer.
getModified
data TextBufferGetModifiedMethodInfo Source #
Instances
| ((~) * signature (m Bool), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetModifiedMethodInfo a signature Source # | |
textBufferGetModified Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> m Bool | Returns: |
Indicates whether the buffer has been modified since the last call
to textBufferSetModified set the modification flag to
False. Used for example to enable a “save” function in a text
editor.
getPasteTargetList
data TextBufferGetPasteTargetListMethodInfo Source #
Instances
| ((~) * signature (m TargetList), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetPasteTargetListMethodInfo a signature Source # | |
textBufferGetPasteTargetList Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> m TargetList | Returns: the |
This function returns the list of targets this text buffer supports
for pasting and as DND destination. The targets in the list are
added with info values from the TextBufferTargetInfo enum,
using targetListAddRichTextTargets and
targetListAddTextTargets.
Since: 2.10
getSelectionBound
data TextBufferGetSelectionBoundMethodInfo Source #
Instances
| ((~) * signature (m TextMark), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetSelectionBoundMethodInfo a signature Source # | |
textBufferGetSelectionBound Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> m TextMark | Returns: selection bound mark |
Returns the mark that represents the selection bound. Equivalent
to calling textBufferGetMark to get the mark named
“selection_bound”, but very slightly more efficient, and involves
less typing.
The currently-selected text in buffer is the region between the
“selection_bound” and “insert” marks. If “selection_bound” and
“insert” are in the same place, then there is no current selection.
textBufferGetSelectionBounds is another convenient function
for handling the selection, if you just want to know whether there’s a
selection and what its bounds are.
getSelectionBounds
data TextBufferGetSelectionBoundsMethodInfo Source #
Instances
| ((~) * signature (m (Bool, TextIter, TextIter)), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetSelectionBoundsMethodInfo a signature Source # | |
textBufferGetSelectionBounds Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> m (Bool, TextIter, TextIter) | Returns: whether the selection has nonzero length |
Returns True if some text is selected; places the bounds
of the selection in start and end (if the selection has length 0,
then start and end are filled in with the same value).
start and end will be in ascending order. If start and end are
NULL, then they are not filled in, but the return value still indicates
whether text is selected.
getSerializeFormats
data TextBufferGetSerializeFormatsMethodInfo Source #
Instances
| ((~) * signature (m [Atom]), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetSerializeFormatsMethodInfo a signature Source # | |
textBufferGetSerializeFormats Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> m [Atom] | Returns: an array of
|
This function returns the rich text serialize formats registered
with buffer using textBufferRegisterSerializeFormat or
textBufferRegisterSerializeTagset
Since: 2.10
getSlice
data TextBufferGetSliceMethodInfo Source #
Instances
| ((~) * signature (TextIter -> TextIter -> Bool -> m Text), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetSliceMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> TextIter |
|
| -> TextIter |
|
| -> Bool |
|
| -> m Text | Returns: an allocated UTF-8 string |
Returns the text in the range [start,end). Excludes undisplayed
text (text marked with tags that set the invisibility attribute) if
includeHiddenChars is False. The returned string includes a
0xFFFC character whenever the buffer contains
embedded images, so byte and character indexes into
the returned string do correspond to byte
and character indexes into the buffer. Contrast with
textBufferGetText. Note that 0xFFFC can occur in normal
text as well, so it is not a reliable indicator that a pixbuf or
widget is in the buffer.
getStartIter
data TextBufferGetStartIterMethodInfo Source #
Instances
| ((~) * signature (m TextIter), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetStartIterMethodInfo a signature Source # | |
textBufferGetStartIter Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> m TextIter |
Initialized iter with the first position in the text buffer. This
is the same as using textBufferGetIterAtOffset to get
the iter at character offset 0.
getTagTable
data TextBufferGetTagTableMethodInfo Source #
Instances
| ((~) * signature (m TextTagTable), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetTagTableMethodInfo a signature Source # | |
textBufferGetTagTable Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> m TextTagTable | Returns: the buffer’s tag table |
Get the TextTagTable associated with this buffer.
getText
data TextBufferGetTextMethodInfo Source #
Instances
| ((~) * signature (TextIter -> TextIter -> Bool -> m Text), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferGetTextMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> TextIter |
|
| -> TextIter |
|
| -> Bool |
|
| -> m Text | Returns: an allocated UTF-8 string |
Returns the text in the range [start,end). Excludes undisplayed
text (text marked with tags that set the invisibility attribute) if
includeHiddenChars is False. Does not include characters
representing embedded images, so byte and character indexes into
the returned string do not correspond to byte
and character indexes into the buffer. Contrast with
textBufferGetSlice.
insert
data TextBufferInsertMethodInfo Source #
Instances
| ((~) * signature (TextIter -> Text -> Int32 -> m ()), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferInsertMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> TextIter |
|
| -> Text |
|
| -> Int32 |
|
| -> m () |
Inserts len bytes of text at position iter. If len is -1,
text must be nul-terminated and will be inserted in its
entirety. Emits the “insert-text” signal; insertion actually occurs
in the default handler for the signal. iter is invalidated when
insertion occurs (because the buffer contents change), but the
default signal handler revalidates it to point to the end of the
inserted text.
insertAtCursor
data TextBufferInsertAtCursorMethodInfo Source #
Instances
| ((~) * signature (Text -> Int32 -> m ()), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferInsertAtCursorMethodInfo a signature Source # | |
textBufferInsertAtCursor Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Text |
|
| -> Int32 |
|
| -> m () |
Simply calls textBufferInsert, using the current
cursor position as the insertion point.
insertChildAnchor
data TextBufferInsertChildAnchorMethodInfo Source #
Instances
| ((~) * signature (TextIter -> b -> m ()), MonadIO m, IsTextBuffer a, IsTextChildAnchor b) => MethodInfo * TextBufferInsertChildAnchorMethodInfo a signature Source # | |
textBufferInsertChildAnchor Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextChildAnchor b) | |
| => a |
|
| -> TextIter |
|
| -> b |
|
| -> m () |
Inserts a child widget anchor into the text buffer at iter. The
anchor will be counted as one character in character counts, and
when obtaining the buffer contents as a string, will be represented
by the Unicode “object replacement character” 0xFFFC. Note that the
“slice” variants for obtaining portions of the buffer as a string
include this character for child anchors, but the “text” variants do
not. E.g. see textBufferGetSlice and
textBufferGetText. Consider
textBufferCreateChildAnchor as a more convenient
alternative to this function. The buffer will add a reference to
the anchor, so you can unref it after insertion.
insertInteractive
data TextBufferInsertInteractiveMethodInfo Source #
Instances
| ((~) * signature (TextIter -> Text -> Int32 -> Bool -> m Bool), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferInsertInteractiveMethodInfo a signature Source # | |
textBufferInsertInteractive Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> TextIter |
|
| -> Text |
|
| -> Int32 |
|
| -> Bool |
|
| -> m Bool | Returns: whether text was actually inserted |
Like textBufferInsert, but the insertion will not occur if
iter is at a non-editable location in the buffer. Usually you
want to prevent insertions at ineditable locations if the insertion
results from a user action (is interactive).
defaultEditable indicates the editability of text that doesn't
have a tag affecting editability applied to it. Typically the
result of textViewGetEditable is appropriate here.
insertInteractiveAtCursor
data TextBufferInsertInteractiveAtCursorMethodInfo Source #
Instances
| ((~) * signature (Text -> Int32 -> Bool -> m Bool), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferInsertInteractiveAtCursorMethodInfo a signature Source # | |
textBufferInsertInteractiveAtCursor Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Text |
|
| -> Int32 |
|
| -> Bool |
|
| -> m Bool | Returns: whether text was actually inserted |
Calls textBufferInsertInteractive at the cursor
position.
defaultEditable indicates the editability of text that doesn't
have a tag affecting editability applied to it. Typically the
result of textViewGetEditable is appropriate here.
insertMarkup
data TextBufferInsertMarkupMethodInfo Source #
Instances
| ((~) * signature (TextIter -> Text -> Int32 -> m ()), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferInsertMarkupMethodInfo a signature Source # | |
textBufferInsertMarkup Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> TextIter |
|
| -> Text |
|
| -> Int32 |
|
| -> m () |
Inserts the text in markup at position iter. markup will be inserted
in its entirety and must be nul-terminated and valid UTF-8. Emits the
TextBuffer::insert-text signal, possibly multiple times; insertion
actually occurs in the default handler for the signal. iter will point
to the end of the inserted text on return.
Since: 3.16
insertPixbuf
data TextBufferInsertPixbufMethodInfo Source #
Instances
| ((~) * signature (TextIter -> b -> m ()), MonadIO m, IsTextBuffer a, IsPixbuf b) => MethodInfo * TextBufferInsertPixbufMethodInfo a signature Source # | |
textBufferInsertPixbuf Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a, IsPixbuf b) | |
| => a |
|
| -> TextIter |
|
| -> b |
|
| -> m () |
Inserts an image into the text buffer at iter. The image will be
counted as one character in character counts, and when obtaining
the buffer contents as a string, will be represented by the Unicode
“object replacement character” 0xFFFC. Note that the “slice”
variants for obtaining portions of the buffer as a string include
this character for pixbufs, but the “text” variants do
not. e.g. see textBufferGetSlice and
textBufferGetText.
insertRange
data TextBufferInsertRangeMethodInfo Source #
Instances
| ((~) * signature (TextIter -> TextIter -> TextIter -> m ()), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferInsertRangeMethodInfo a signature Source # | |
textBufferInsertRange Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> TextIter |
|
| -> TextIter |
|
| -> TextIter |
|
| -> m () |
Copies text, tags, and pixbufs between start and end (the order
of start and end doesn’t matter) and inserts the copy at iter.
Used instead of simply getting/inserting text because it preserves
images and tags. If start and end are in a different buffer from
buffer, the two buffers must share the same tag table.
Implemented via emissions of the insert_text and apply_tag signals, so expect those.
insertRangeInteractive
data TextBufferInsertRangeInteractiveMethodInfo Source #
Instances
| ((~) * signature (TextIter -> TextIter -> TextIter -> Bool -> m Bool), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferInsertRangeInteractiveMethodInfo a signature Source # | |
textBufferInsertRangeInteractive Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> TextIter |
|
| -> TextIter |
|
| -> TextIter |
|
| -> Bool |
|
| -> m Bool | Returns: whether an insertion was possible at |
Same as textBufferInsertRange, but does nothing if the
insertion point isn’t editable. The defaultEditable parameter
indicates whether the text is editable at iter if no tags
enclosing iter affect editability. Typically the result of
textViewGetEditable is appropriate here.
moveMark
data TextBufferMoveMarkMethodInfo Source #
Instances
| ((~) * signature (b -> TextIter -> m ()), MonadIO m, IsTextBuffer a, IsTextMark b) => MethodInfo * TextBufferMoveMarkMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextMark b) | |
| => a |
|
| -> b |
|
| -> TextIter |
|
| -> m () |
Moves mark to the new location where. Emits the TextBuffer::mark-set
signal as notification of the move.
moveMarkByName
data TextBufferMoveMarkByNameMethodInfo Source #
Instances
| ((~) * signature (Text -> TextIter -> m ()), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferMoveMarkByNameMethodInfo a signature Source # | |
textBufferMoveMarkByName Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Text |
|
| -> TextIter |
|
| -> m () |
Moves the mark named name (which must exist) to location where.
See textBufferMoveMark for details.
new
Arguments
| :: (HasCallStack, MonadIO m, IsTextTagTable a) | |
| => Maybe a |
|
| -> m TextBuffer | Returns: a new text buffer |
Creates a new text buffer.
pasteClipboard
data TextBufferPasteClipboardMethodInfo Source #
Instances
| ((~) * signature (b -> Maybe TextIter -> Bool -> m ()), MonadIO m, IsTextBuffer a, IsClipboard b) => MethodInfo * TextBufferPasteClipboardMethodInfo a signature Source # | |
textBufferPasteClipboard Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a, IsClipboard b) | |
| => a |
|
| -> b |
|
| -> Maybe TextIter |
|
| -> Bool |
|
| -> m () |
Pastes the contents of a clipboard. If overrideLocation is Nothing, the
pasted text will be inserted at the cursor position, or the buffer selection
will be replaced if the selection is non-empty.
Note: pasting is asynchronous, that is, we’ll ask for the paste data and return, and at some point later after the main loop runs, the paste data will be inserted.
placeCursor
data TextBufferPlaceCursorMethodInfo Source #
Instances
| ((~) * signature (TextIter -> m ()), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferPlaceCursorMethodInfo a signature Source # | |
textBufferPlaceCursor Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> TextIter |
|
| -> m () |
This function moves the “insert” and “selection_bound” marks
simultaneously. If you move them to the same place in two steps
with textBufferMoveMark, you will temporarily select a
region in between their old and new locations, which can be pretty
inefficient since the temporarily-selected region will force stuff
to be recalculated. This function moves them as a unit, which can
be optimized.
registerDeserializeFormat
data TextBufferRegisterDeserializeFormatMethodInfo Source #
Instances
| ((~) * signature (Text -> FunPtr C_TextBufferDeserializeFunc -> m Atom), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferRegisterDeserializeFormatMethodInfo a signature Source # | |
textBufferRegisterDeserializeFormat Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Text |
|
| -> FunPtr C_TextBufferDeserializeFunc |
|
| -> m Atom | Returns: the |
This function registers a rich text deserialization function along with
its mimeType with the passed buffer.
Since: 2.10
registerDeserializeTagset
data TextBufferRegisterDeserializeTagsetMethodInfo Source #
Instances
| ((~) * signature (Maybe Text -> m Atom), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferRegisterDeserializeTagsetMethodInfo a signature Source # | |
textBufferRegisterDeserializeTagset Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Maybe Text |
|
| -> m Atom | Returns: the |
This function registers GTK+’s internal rich text serialization
format with the passed buffer. See
textBufferRegisterSerializeTagset for details.
Since: 2.10
registerSerializeFormat
data TextBufferRegisterSerializeFormatMethodInfo Source #
Instances
| ((~) * signature (Text -> TextBufferSerializeFunc -> m Atom), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferRegisterSerializeFormatMethodInfo a signature Source # | |
textBufferRegisterSerializeFormat Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Text |
|
| -> TextBufferSerializeFunc |
|
| -> m Atom | Returns: the |
This function registers a rich text serialization function along with
its mimeType with the passed buffer.
Since: 2.10
registerSerializeTagset
data TextBufferRegisterSerializeTagsetMethodInfo Source #
Instances
| ((~) * signature (Maybe Text -> m Atom), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferRegisterSerializeTagsetMethodInfo a signature Source # | |
textBufferRegisterSerializeTagset Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Maybe Text |
|
| -> m Atom | Returns: the |
This function registers GTK+’s internal rich text serialization
format with the passed buffer. The internal format does not comply
to any standard rich text format and only works between TextBuffer
instances. It is capable of serializing all of a text buffer’s tags
and embedded pixbufs.
This function is just a wrapper around
textBufferRegisterSerializeFormat. The mime type used
for registering is “application/x-gtk-text-buffer-rich-text”, or
“application/x-gtk-text-buffer-rich-text;format=tagsetName” if a
tagsetName was passed.
The tagsetName can be used to restrict the transfer of rich text
to buffers with compatible sets of tags, in order to avoid unknown
tags from being pasted. It is probably the common case to pass an
identifier != Nothing here, since the Nothing tagset requires the
receiving buffer to deal with with pasting of arbitrary tags.
Since: 2.10
removeAllTags
data TextBufferRemoveAllTagsMethodInfo Source #
Instances
| ((~) * signature (TextIter -> TextIter -> m ()), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferRemoveAllTagsMethodInfo a signature Source # | |
textBufferRemoveAllTags Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> TextIter |
|
| -> TextIter |
|
| -> m () |
Removes all tags in the range between start and end. Be careful
with this function; it could remove tags added in code unrelated to
the code you’re currently writing. That is, using this function is
probably a bad idea if you have two or more unrelated code sections
that add tags.
removeSelectionClipboard
data TextBufferRemoveSelectionClipboardMethodInfo Source #
Instances
| ((~) * signature (b -> m ()), MonadIO m, IsTextBuffer a, IsClipboard b) => MethodInfo * TextBufferRemoveSelectionClipboardMethodInfo a signature Source # | |
textBufferRemoveSelectionClipboard Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a, IsClipboard b) | |
| => a |
|
| -> b |
|
| -> m () |
Removes a Clipboard added with
textBufferAddSelectionClipboard.
removeTag
data TextBufferRemoveTagMethodInfo Source #
Instances
| ((~) * signature (b -> TextIter -> TextIter -> m ()), MonadIO m, IsTextBuffer a, IsTextTag b) => MethodInfo * TextBufferRemoveTagMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextTag b) | |
| => a |
|
| -> b |
|
| -> TextIter |
|
| -> TextIter |
|
| -> m () |
Emits the “remove-tag” signal. The default handler for the signal
removes all occurrences of tag from the given range. start and
end don’t have to be in order.
removeTagByName
data TextBufferRemoveTagByNameMethodInfo Source #
Instances
| ((~) * signature (Text -> TextIter -> TextIter -> m ()), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferRemoveTagByNameMethodInfo a signature Source # | |
textBufferRemoveTagByName Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Text |
|
| -> TextIter |
|
| -> TextIter |
|
| -> m () |
Calls textTagTableLookup on the buffer’s tag table to
get a TextTag, then calls textBufferRemoveTag.
selectRange
data TextBufferSelectRangeMethodInfo Source #
Instances
| ((~) * signature (TextIter -> TextIter -> m ()), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferSelectRangeMethodInfo a signature Source # | |
textBufferSelectRange Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> TextIter |
|
| -> TextIter |
|
| -> m () |
This function moves the “insert” and “selection_bound” marks
simultaneously. If you move them in two steps
with textBufferMoveMark, you will temporarily select a
region in between their old and new locations, which can be pretty
inefficient since the temporarily-selected region will force stuff
to be recalculated. This function moves them as a unit, which can
be optimized.
Since: 2.4
serialize
data TextBufferSerializeMethodInfo Source #
Instances
| ((~) * signature (b -> Atom -> TextIter -> TextIter -> m ByteString), MonadIO m, IsTextBuffer a, IsTextBuffer b) => MethodInfo * TextBufferSerializeMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextBuffer b) | |
| => a |
|
| -> b |
|
| -> Atom |
|
| -> TextIter |
|
| -> TextIter |
|
| -> m ByteString | Returns: the serialized
data, encoded as |
This function serializes the portion of text between start
and end in the rich text format represented by format.
formats to be used must be registered using
textBufferRegisterSerializeFormat or
textBufferRegisterSerializeTagset beforehand.
Since: 2.10
setModified
data TextBufferSetModifiedMethodInfo Source #
Instances
| ((~) * signature (Bool -> m ()), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferSetModifiedMethodInfo a signature Source # | |
textBufferSetModified Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Used to keep track of whether the buffer has been modified since the
last time it was saved. Whenever the buffer is saved to disk, call
gtk_text_buffer_set_modified (buffer, FALSE). When the buffer is modified,
it will automatically toggled on the modified bit again. When the modified
bit flips, the buffer emits the TextBuffer::modified-changed signal.
setText
data TextBufferSetTextMethodInfo Source #
Instances
| ((~) * signature (Text -> Int32 -> m ()), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferSetTextMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Text |
|
| -> Int32 |
|
| -> m () |
Deletes current contents of buffer, and inserts text instead. If
len is -1, text must be nul-terminated. text must be valid UTF-8.
unregisterDeserializeFormat
data TextBufferUnregisterDeserializeFormatMethodInfo Source #
Instances
| ((~) * signature (Atom -> m ()), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferUnregisterDeserializeFormatMethodInfo a signature Source # | |
textBufferUnregisterDeserializeFormat Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Atom |
|
| -> m () |
This function unregisters a rich text format that was previously
registered using textBufferRegisterDeserializeFormat or
textBufferRegisterDeserializeTagset.
Since: 2.10
unregisterSerializeFormat
data TextBufferUnregisterSerializeFormatMethodInfo Source #
Instances
| ((~) * signature (Atom -> m ()), MonadIO m, IsTextBuffer a) => MethodInfo * TextBufferUnregisterSerializeFormatMethodInfo a signature Source # | |
textBufferUnregisterSerializeFormat Source #
Arguments
| :: (HasCallStack, MonadIO m, IsTextBuffer a) | |
| => a |
|
| -> Atom |
|
| -> m () |
This function unregisters a rich text format that was previously
registered using textBufferRegisterSerializeFormat or
textBufferRegisterSerializeTagset
Since: 2.10
Properties
copyTargetList
data TextBufferCopyTargetListPropertyInfo Source #
Instances
getTextBufferCopyTargetList :: (MonadIO m, IsTextBuffer o) => o -> m TargetList Source #
textBufferCopyTargetList :: AttrLabelProxy "copyTargetList" Source #
cursorPosition
data TextBufferCursorPositionPropertyInfo Source #
Instances
getTextBufferCursorPosition :: (MonadIO m, IsTextBuffer o) => o -> m Int32 Source #
textBufferCursorPosition :: AttrLabelProxy "cursorPosition" Source #
hasSelection
data TextBufferHasSelectionPropertyInfo Source #
Instances
getTextBufferHasSelection :: (MonadIO m, IsTextBuffer o) => o -> m Bool Source #
textBufferHasSelection :: AttrLabelProxy "hasSelection" Source #
pasteTargetList
data TextBufferPasteTargetListPropertyInfo Source #
Instances
getTextBufferPasteTargetList :: (MonadIO m, IsTextBuffer o) => o -> m TargetList Source #
textBufferPasteTargetList :: AttrLabelProxy "pasteTargetList" Source #
tagTable
data TextBufferTagTablePropertyInfo Source #
Instances
constructTextBufferTagTable :: (IsTextBuffer o, IsTextTagTable a) => a -> IO (GValueConstruct o) Source #
getTextBufferTagTable :: (MonadIO m, IsTextBuffer o) => o -> m TextTagTable Source #
textBufferTagTable :: AttrLabelProxy "tagTable" Source #
text
data TextBufferTextPropertyInfo Source #
Instances
clearTextBufferText :: (MonadIO m, IsTextBuffer o) => o -> m () Source #
constructTextBufferText :: IsTextBuffer o => Text -> IO (GValueConstruct o) Source #
getTextBufferText :: (MonadIO m, IsTextBuffer o) => o -> m (Maybe Text) Source #
setTextBufferText :: (MonadIO m, IsTextBuffer o) => o -> Text -> m () Source #
textBufferText :: AttrLabelProxy "text" Source #
Signals
applyTag
type C_TextBufferApplyTagCallback = Ptr () -> Ptr TextTag -> Ptr TextIter -> Ptr TextIter -> Ptr () -> IO () Source #
afterTextBufferApplyTag :: (GObject a, MonadIO m) => a -> TextBufferApplyTagCallback -> m SignalHandlerId Source #
mk_TextBufferApplyTagCallback :: C_TextBufferApplyTagCallback -> IO (FunPtr C_TextBufferApplyTagCallback) Source #
onTextBufferApplyTag :: (GObject a, MonadIO m) => a -> TextBufferApplyTagCallback -> m SignalHandlerId Source #
wrap_TextBufferApplyTagCallback :: TextBufferApplyTagCallback -> Ptr () -> Ptr TextTag -> Ptr TextIter -> Ptr TextIter -> Ptr () -> IO () Source #
beginUserAction
type TextBufferBeginUserActionCallback = IO () Source #
afterTextBufferBeginUserAction :: (GObject a, MonadIO m) => a -> TextBufferBeginUserActionCallback -> m SignalHandlerId Source #
mk_TextBufferBeginUserActionCallback :: C_TextBufferBeginUserActionCallback -> IO (FunPtr C_TextBufferBeginUserActionCallback) Source #
onTextBufferBeginUserAction :: (GObject a, MonadIO m) => a -> TextBufferBeginUserActionCallback -> m SignalHandlerId Source #
wrap_TextBufferBeginUserActionCallback :: TextBufferBeginUserActionCallback -> Ptr () -> Ptr () -> IO () Source #
changed
type TextBufferChangedCallback = IO () Source #
afterTextBufferChanged :: (GObject a, MonadIO m) => a -> TextBufferChangedCallback -> m SignalHandlerId Source #
mk_TextBufferChangedCallback :: C_TextBufferChangedCallback -> IO (FunPtr C_TextBufferChangedCallback) Source #
onTextBufferChanged :: (GObject a, MonadIO m) => a -> TextBufferChangedCallback -> m SignalHandlerId Source #
wrap_TextBufferChangedCallback :: TextBufferChangedCallback -> Ptr () -> Ptr () -> IO () Source #
deleteRange
type C_TextBufferDeleteRangeCallback = Ptr () -> Ptr TextIter -> Ptr TextIter -> Ptr () -> IO () Source #
afterTextBufferDeleteRange :: (GObject a, MonadIO m) => a -> TextBufferDeleteRangeCallback -> m SignalHandlerId Source #
mk_TextBufferDeleteRangeCallback :: C_TextBufferDeleteRangeCallback -> IO (FunPtr C_TextBufferDeleteRangeCallback) Source #
onTextBufferDeleteRange :: (GObject a, MonadIO m) => a -> TextBufferDeleteRangeCallback -> m SignalHandlerId Source #
wrap_TextBufferDeleteRangeCallback :: TextBufferDeleteRangeCallback -> Ptr () -> Ptr TextIter -> Ptr TextIter -> Ptr () -> IO () Source #
endUserAction
type TextBufferEndUserActionCallback = IO () Source #
afterTextBufferEndUserAction :: (GObject a, MonadIO m) => a -> TextBufferEndUserActionCallback -> m SignalHandlerId Source #
mk_TextBufferEndUserActionCallback :: C_TextBufferEndUserActionCallback -> IO (FunPtr C_TextBufferEndUserActionCallback) Source #
onTextBufferEndUserAction :: (GObject a, MonadIO m) => a -> TextBufferEndUserActionCallback -> m SignalHandlerId Source #
wrap_TextBufferEndUserActionCallback :: TextBufferEndUserActionCallback -> Ptr () -> Ptr () -> IO () Source #
insertChildAnchor
type C_TextBufferInsertChildAnchorCallback = Ptr () -> Ptr TextIter -> Ptr TextChildAnchor -> Ptr () -> IO () Source #
type TextBufferInsertChildAnchorCallback = TextIter -> TextChildAnchor -> IO () Source #
afterTextBufferInsertChildAnchor :: (GObject a, MonadIO m) => a -> TextBufferInsertChildAnchorCallback -> m SignalHandlerId Source #
genClosure_TextBufferInsertChildAnchor :: TextBufferInsertChildAnchorCallback -> IO Closure Source #
mk_TextBufferInsertChildAnchorCallback :: C_TextBufferInsertChildAnchorCallback -> IO (FunPtr C_TextBufferInsertChildAnchorCallback) Source #
onTextBufferInsertChildAnchor :: (GObject a, MonadIO m) => a -> TextBufferInsertChildAnchorCallback -> m SignalHandlerId Source #
wrap_TextBufferInsertChildAnchorCallback :: TextBufferInsertChildAnchorCallback -> Ptr () -> Ptr TextIter -> Ptr TextChildAnchor -> Ptr () -> IO () Source #
insertPixbuf
type C_TextBufferInsertPixbufCallback = Ptr () -> Ptr TextIter -> Ptr Pixbuf -> Ptr () -> IO () Source #
afterTextBufferInsertPixbuf :: (GObject a, MonadIO m) => a -> TextBufferInsertPixbufCallback -> m SignalHandlerId Source #
mk_TextBufferInsertPixbufCallback :: C_TextBufferInsertPixbufCallback -> IO (FunPtr C_TextBufferInsertPixbufCallback) Source #
onTextBufferInsertPixbuf :: (GObject a, MonadIO m) => a -> TextBufferInsertPixbufCallback -> m SignalHandlerId Source #
wrap_TextBufferInsertPixbufCallback :: TextBufferInsertPixbufCallback -> Ptr () -> Ptr TextIter -> Ptr Pixbuf -> Ptr () -> IO () Source #
insertText
type C_TextBufferInsertTextCallback = Ptr () -> Ptr TextIter -> CString -> Int32 -> Ptr () -> IO () Source #
afterTextBufferInsertText :: (GObject a, MonadIO m) => a -> TextBufferInsertTextCallback -> m SignalHandlerId Source #
mk_TextBufferInsertTextCallback :: C_TextBufferInsertTextCallback -> IO (FunPtr C_TextBufferInsertTextCallback) Source #
onTextBufferInsertText :: (GObject a, MonadIO m) => a -> TextBufferInsertTextCallback -> m SignalHandlerId Source #
wrap_TextBufferInsertTextCallback :: TextBufferInsertTextCallback -> Ptr () -> Ptr TextIter -> CString -> Int32 -> Ptr () -> IO () Source #
markDeleted
type TextBufferMarkDeletedCallback = TextMark -> IO () Source #
afterTextBufferMarkDeleted :: (GObject a, MonadIO m) => a -> TextBufferMarkDeletedCallback -> m SignalHandlerId Source #
mk_TextBufferMarkDeletedCallback :: C_TextBufferMarkDeletedCallback -> IO (FunPtr C_TextBufferMarkDeletedCallback) Source #
onTextBufferMarkDeleted :: (GObject a, MonadIO m) => a -> TextBufferMarkDeletedCallback -> m SignalHandlerId Source #
wrap_TextBufferMarkDeletedCallback :: TextBufferMarkDeletedCallback -> Ptr () -> Ptr TextMark -> Ptr () -> IO () Source #
markSet
type C_TextBufferMarkSetCallback = Ptr () -> Ptr TextIter -> Ptr TextMark -> Ptr () -> IO () Source #
afterTextBufferMarkSet :: (GObject a, MonadIO m) => a -> TextBufferMarkSetCallback -> m SignalHandlerId Source #
mk_TextBufferMarkSetCallback :: C_TextBufferMarkSetCallback -> IO (FunPtr C_TextBufferMarkSetCallback) Source #
onTextBufferMarkSet :: (GObject a, MonadIO m) => a -> TextBufferMarkSetCallback -> m SignalHandlerId Source #
wrap_TextBufferMarkSetCallback :: TextBufferMarkSetCallback -> Ptr () -> Ptr TextIter -> Ptr TextMark -> Ptr () -> IO () Source #
modifiedChanged
type TextBufferModifiedChangedCallback = IO () Source #
afterTextBufferModifiedChanged :: (GObject a, MonadIO m) => a -> TextBufferModifiedChangedCallback -> m SignalHandlerId Source #
mk_TextBufferModifiedChangedCallback :: C_TextBufferModifiedChangedCallback -> IO (FunPtr C_TextBufferModifiedChangedCallback) Source #
onTextBufferModifiedChanged :: (GObject a, MonadIO m) => a -> TextBufferModifiedChangedCallback -> m SignalHandlerId Source #
wrap_TextBufferModifiedChangedCallback :: TextBufferModifiedChangedCallback -> Ptr () -> Ptr () -> IO () Source #
pasteDone
type TextBufferPasteDoneCallback = Clipboard -> IO () Source #
afterTextBufferPasteDone :: (GObject a, MonadIO m) => a -> TextBufferPasteDoneCallback -> m SignalHandlerId Source #
mk_TextBufferPasteDoneCallback :: C_TextBufferPasteDoneCallback -> IO (FunPtr C_TextBufferPasteDoneCallback) Source #
onTextBufferPasteDone :: (GObject a, MonadIO m) => a -> TextBufferPasteDoneCallback -> m SignalHandlerId Source #
wrap_TextBufferPasteDoneCallback :: TextBufferPasteDoneCallback -> Ptr () -> Ptr Clipboard -> Ptr () -> IO () Source #
removeTag
type C_TextBufferRemoveTagCallback = Ptr () -> Ptr TextTag -> Ptr TextIter -> Ptr TextIter -> Ptr () -> IO () Source #
afterTextBufferRemoveTag :: (GObject a, MonadIO m) => a -> TextBufferRemoveTagCallback -> m SignalHandlerId Source #
mk_TextBufferRemoveTagCallback :: C_TextBufferRemoveTagCallback -> IO (FunPtr C_TextBufferRemoveTagCallback) Source #
onTextBufferRemoveTag :: (GObject a, MonadIO m) => a -> TextBufferRemoveTagCallback -> m SignalHandlerId Source #