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.TextView
Contents
- Exported types
- Methods
- addChildAtAnchor
- addChildInWindow
- backwardDisplayLine
- backwardDisplayLineStart
- bufferToWindowCoords
- forwardDisplayLine
- forwardDisplayLineEnd
- getAcceptsTab
- getBorderWindowSize
- getBottomMargin
- getBuffer
- getCursorLocations
- getCursorVisible
- getDefaultAttributes
- getEditable
- getHadjustment
- getIndent
- getInputHints
- getInputPurpose
- getIterAtLocation
- getIterAtPosition
- getIterLocation
- getJustification
- getLeftMargin
- getLineAtY
- getLineYrange
- getMonospace
- getOverwrite
- getPixelsAboveLines
- getPixelsBelowLines
- getPixelsInsideWrap
- getRightMargin
- getTabs
- getTopMargin
- getVadjustment
- getVisibleRect
- getWindow
- getWindowType
- getWrapMode
- imContextFilterKeypress
- moveChild
- moveMarkOnscreen
- moveVisually
- new
- newWithBuffer
- placeCursorOnscreen
- resetCursorBlink
- resetImContext
- scrollMarkOnscreen
- scrollToIter
- scrollToMark
- setAcceptsTab
- setBorderWindowSize
- setBottomMargin
- setBuffer
- setCursorVisible
- setEditable
- setIndent
- setInputHints
- setInputPurpose
- setJustification
- setLeftMargin
- setMonospace
- setOverwrite
- setPixelsAboveLines
- setPixelsBelowLines
- setPixelsInsideWrap
- setRightMargin
- setTabs
- setTopMargin
- setWrapMode
- startsDisplayLine
- windowToBufferCoords
- 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.
CSS nodes
plain code
textview.view ├── border.top ├── border.left ├── text │ ╰── [selection] ├── border.right ├── border.bottom ╰── [window.popup]
GtkTextView has a main css node with name textview and style class .view, and subnodes for each of the border windows, and the main text area, with names border and text, respectively. The border nodes each get one of the style classes .left, .right, .top or .bottom.
A node representing the selection will appear below the text node.
If a context menu is opened, the window node will appear as a subnode of the main node.
- newtype TextView = TextView (ManagedPtr TextView)
- class GObject o => IsTextView o
- toTextView :: (MonadIO m, IsTextView o) => o -> m TextView
- noTextView :: Maybe TextView
- textViewAddChildAtAnchor :: (HasCallStack, MonadIO m, IsTextView a, IsWidget b, IsTextChildAnchor c) => a -> b -> c -> m ()
- textViewAddChildInWindow :: (HasCallStack, MonadIO m, IsTextView a, IsWidget b) => a -> b -> TextWindowType -> Int32 -> Int32 -> m ()
- textViewBackwardDisplayLine :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextIter -> m Bool
- textViewBackwardDisplayLineStart :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextIter -> m Bool
- textViewBufferToWindowCoords :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextWindowType -> Int32 -> Int32 -> m (Int32, Int32)
- textViewForwardDisplayLine :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextIter -> m Bool
- textViewForwardDisplayLineEnd :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextIter -> m Bool
- textViewGetAcceptsTab :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Bool
- textViewGetBorderWindowSize :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextWindowType -> m Int32
- textViewGetBottomMargin :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Int32
- textViewGetBuffer :: (HasCallStack, MonadIO m, IsTextView a) => a -> m TextBuffer
- textViewGetCursorLocations :: (HasCallStack, MonadIO m, IsTextView a) => a -> Maybe TextIter -> m (Rectangle, Rectangle)
- textViewGetCursorVisible :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Bool
- textViewGetDefaultAttributes :: (HasCallStack, MonadIO m, IsTextView a) => a -> m TextAttributes
- textViewGetEditable :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Bool
- textViewGetHadjustment :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Adjustment
- textViewGetIndent :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Int32
- textViewGetInputHints :: (HasCallStack, MonadIO m, IsTextView a) => a -> m [InputHints]
- textViewGetInputPurpose :: (HasCallStack, MonadIO m, IsTextView a) => a -> m InputPurpose
- textViewGetIterAtLocation :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> Int32 -> m (Bool, TextIter)
- textViewGetIterAtPosition :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> Int32 -> m (Bool, TextIter, Int32)
- textViewGetIterLocation :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextIter -> m Rectangle
- textViewGetJustification :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Justification
- textViewGetLeftMargin :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Int32
- textViewGetLineAtY :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> m (TextIter, Int32)
- textViewGetLineYrange :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextIter -> m (Int32, Int32)
- textViewGetMonospace :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Bool
- textViewGetOverwrite :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Bool
- textViewGetPixelsAboveLines :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Int32
- textViewGetPixelsBelowLines :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Int32
- textViewGetPixelsInsideWrap :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Int32
- textViewGetRightMargin :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Int32
- textViewGetTabs :: (HasCallStack, MonadIO m, IsTextView a) => a -> m (Maybe TabArray)
- textViewGetTopMargin :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Int32
- textViewGetVadjustment :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Adjustment
- textViewGetVisibleRect :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Rectangle
- textViewGetWindow :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextWindowType -> m (Maybe Window)
- textViewGetWindowType :: (HasCallStack, MonadIO m, IsTextView a, IsWindow b) => a -> b -> m TextWindowType
- textViewGetWrapMode :: (HasCallStack, MonadIO m, IsTextView a) => a -> m WrapMode
- textViewImContextFilterKeypress :: (HasCallStack, MonadIO m, IsTextView a) => a -> EventKey -> m Bool
- textViewMoveChild :: (HasCallStack, MonadIO m, IsTextView a, IsWidget b) => a -> b -> Int32 -> Int32 -> m ()
- textViewMoveMarkOnscreen :: (HasCallStack, MonadIO m, IsTextView a, IsTextMark b) => a -> b -> m Bool
- textViewMoveVisually :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextIter -> Int32 -> m Bool
- textViewNew :: (HasCallStack, MonadIO m) => m TextView
- textViewNewWithBuffer :: (HasCallStack, MonadIO m, IsTextBuffer a) => a -> m TextView
- textViewPlaceCursorOnscreen :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Bool
- textViewResetCursorBlink :: (HasCallStack, MonadIO m, IsTextView a) => a -> m ()
- textViewResetImContext :: (HasCallStack, MonadIO m, IsTextView a) => a -> m ()
- textViewScrollMarkOnscreen :: (HasCallStack, MonadIO m, IsTextView a, IsTextMark b) => a -> b -> m ()
- textViewScrollToIter :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextIter -> Double -> Bool -> Double -> Double -> m Bool
- textViewScrollToMark :: (HasCallStack, MonadIO m, IsTextView a, IsTextMark b) => a -> b -> Double -> Bool -> Double -> Double -> m ()
- textViewSetAcceptsTab :: (HasCallStack, MonadIO m, IsTextView a) => a -> Bool -> m ()
- textViewSetBorderWindowSize :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextWindowType -> Int32 -> m ()
- textViewSetBottomMargin :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> m ()
- textViewSetBuffer :: (HasCallStack, MonadIO m, IsTextView a, IsTextBuffer b) => a -> Maybe b -> m ()
- textViewSetCursorVisible :: (HasCallStack, MonadIO m, IsTextView a) => a -> Bool -> m ()
- textViewSetEditable :: (HasCallStack, MonadIO m, IsTextView a) => a -> Bool -> m ()
- textViewSetIndent :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> m ()
- textViewSetInputHints :: (HasCallStack, MonadIO m, IsTextView a) => a -> [InputHints] -> m ()
- textViewSetInputPurpose :: (HasCallStack, MonadIO m, IsTextView a) => a -> InputPurpose -> m ()
- textViewSetJustification :: (HasCallStack, MonadIO m, IsTextView a) => a -> Justification -> m ()
- textViewSetLeftMargin :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> m ()
- textViewSetMonospace :: (HasCallStack, MonadIO m, IsTextView a) => a -> Bool -> m ()
- textViewSetOverwrite :: (HasCallStack, MonadIO m, IsTextView a) => a -> Bool -> m ()
- textViewSetPixelsAboveLines :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> m ()
- textViewSetPixelsBelowLines :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> m ()
- textViewSetPixelsInsideWrap :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> m ()
- textViewSetRightMargin :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> m ()
- textViewSetTabs :: (HasCallStack, MonadIO m, IsTextView a) => a -> TabArray -> m ()
- textViewSetTopMargin :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> m ()
- textViewSetWrapMode :: (HasCallStack, MonadIO m, IsTextView a) => a -> WrapMode -> m ()
- textViewStartsDisplayLine :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextIter -> m Bool
- textViewWindowToBufferCoords :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextWindowType -> Int32 -> Int32 -> m (Int32, Int32)
- constructTextViewAcceptsTab :: IsTextView o => Bool -> IO (GValueConstruct o)
- getTextViewAcceptsTab :: (MonadIO m, IsTextView o) => o -> m Bool
- setTextViewAcceptsTab :: (MonadIO m, IsTextView o) => o -> Bool -> m ()
- constructTextViewBottomMargin :: IsTextView o => Int32 -> IO (GValueConstruct o)
- getTextViewBottomMargin :: (MonadIO m, IsTextView o) => o -> m Int32
- setTextViewBottomMargin :: (MonadIO m, IsTextView o) => o -> Int32 -> m ()
- clearTextViewBuffer :: (MonadIO m, IsTextView o) => o -> m ()
- constructTextViewBuffer :: (IsTextView o, IsTextBuffer a) => a -> IO (GValueConstruct o)
- getTextViewBuffer :: (MonadIO m, IsTextView o) => o -> m TextBuffer
- setTextViewBuffer :: (MonadIO m, IsTextView o, IsTextBuffer a) => o -> a -> m ()
- constructTextViewCursorVisible :: IsTextView o => Bool -> IO (GValueConstruct o)
- getTextViewCursorVisible :: (MonadIO m, IsTextView o) => o -> m Bool
- setTextViewCursorVisible :: (MonadIO m, IsTextView o) => o -> Bool -> m ()
- constructTextViewEditable :: IsTextView o => Bool -> IO (GValueConstruct o)
- getTextViewEditable :: (MonadIO m, IsTextView o) => o -> m Bool
- setTextViewEditable :: (MonadIO m, IsTextView o) => o -> Bool -> m ()
- clearTextViewImModule :: (MonadIO m, IsTextView o) => o -> m ()
- constructTextViewImModule :: IsTextView o => Text -> IO (GValueConstruct o)
- getTextViewImModule :: (MonadIO m, IsTextView o) => o -> m (Maybe Text)
- setTextViewImModule :: (MonadIO m, IsTextView o) => o -> Text -> m ()
- constructTextViewIndent :: IsTextView o => Int32 -> IO (GValueConstruct o)
- getTextViewIndent :: (MonadIO m, IsTextView o) => o -> m Int32
- setTextViewIndent :: (MonadIO m, IsTextView o) => o -> Int32 -> m ()
- constructTextViewInputHints :: IsTextView o => [InputHints] -> IO (GValueConstruct o)
- getTextViewInputHints :: (MonadIO m, IsTextView o) => o -> m [InputHints]
- setTextViewInputHints :: (MonadIO m, IsTextView o) => o -> [InputHints] -> m ()
- constructTextViewInputPurpose :: IsTextView o => InputPurpose -> IO (GValueConstruct o)
- getTextViewInputPurpose :: (MonadIO m, IsTextView o) => o -> m InputPurpose
- setTextViewInputPurpose :: (MonadIO m, IsTextView o) => o -> InputPurpose -> m ()
- constructTextViewJustification :: IsTextView o => Justification -> IO (GValueConstruct o)
- getTextViewJustification :: (MonadIO m, IsTextView o) => o -> m Justification
- setTextViewJustification :: (MonadIO m, IsTextView o) => o -> Justification -> m ()
- constructTextViewLeftMargin :: IsTextView o => Int32 -> IO (GValueConstruct o)
- getTextViewLeftMargin :: (MonadIO m, IsTextView o) => o -> m Int32
- setTextViewLeftMargin :: (MonadIO m, IsTextView o) => o -> Int32 -> m ()
- constructTextViewMonospace :: IsTextView o => Bool -> IO (GValueConstruct o)
- getTextViewMonospace :: (MonadIO m, IsTextView o) => o -> m Bool
- setTextViewMonospace :: (MonadIO m, IsTextView o) => o -> Bool -> m ()
- constructTextViewOverwrite :: IsTextView o => Bool -> IO (GValueConstruct o)
- getTextViewOverwrite :: (MonadIO m, IsTextView o) => o -> m Bool
- setTextViewOverwrite :: (MonadIO m, IsTextView o) => o -> Bool -> m ()
- constructTextViewPixelsAboveLines :: IsTextView o => Int32 -> IO (GValueConstruct o)
- getTextViewPixelsAboveLines :: (MonadIO m, IsTextView o) => o -> m Int32
- setTextViewPixelsAboveLines :: (MonadIO m, IsTextView o) => o -> Int32 -> m ()
- constructTextViewPixelsBelowLines :: IsTextView o => Int32 -> IO (GValueConstruct o)
- getTextViewPixelsBelowLines :: (MonadIO m, IsTextView o) => o -> m Int32
- setTextViewPixelsBelowLines :: (MonadIO m, IsTextView o) => o -> Int32 -> m ()
- constructTextViewPixelsInsideWrap :: IsTextView o => Int32 -> IO (GValueConstruct o)
- getTextViewPixelsInsideWrap :: (MonadIO m, IsTextView o) => o -> m Int32
- setTextViewPixelsInsideWrap :: (MonadIO m, IsTextView o) => o -> Int32 -> m ()
- constructTextViewPopulateAll :: IsTextView o => Bool -> IO (GValueConstruct o)
- getTextViewPopulateAll :: (MonadIO m, IsTextView o) => o -> m Bool
- setTextViewPopulateAll :: (MonadIO m, IsTextView o) => o -> Bool -> m ()
- constructTextViewRightMargin :: IsTextView o => Int32 -> IO (GValueConstruct o)
- getTextViewRightMargin :: (MonadIO m, IsTextView o) => o -> m Int32
- setTextViewRightMargin :: (MonadIO m, IsTextView o) => o -> Int32 -> m ()
- constructTextViewTabs :: IsTextView o => TabArray -> IO (GValueConstruct o)
- getTextViewTabs :: (MonadIO m, IsTextView o) => o -> m (Maybe TabArray)
- setTextViewTabs :: (MonadIO m, IsTextView o) => o -> TabArray -> m ()
- constructTextViewTopMargin :: IsTextView o => Int32 -> IO (GValueConstruct o)
- getTextViewTopMargin :: (MonadIO m, IsTextView o) => o -> m Int32
- setTextViewTopMargin :: (MonadIO m, IsTextView o) => o -> Int32 -> m ()
- constructTextViewWrapMode :: IsTextView o => WrapMode -> IO (GValueConstruct o)
- getTextViewWrapMode :: (MonadIO m, IsTextView o) => o -> m WrapMode
- setTextViewWrapMode :: (MonadIO m, IsTextView o) => o -> WrapMode -> m ()
- type C_TextViewBackspaceCallback = Ptr () -> Ptr () -> IO ()
- type TextViewBackspaceCallback = IO ()
- afterTextViewBackspace :: (IsTextView a, MonadIO m) => a -> TextViewBackspaceCallback -> m SignalHandlerId
- genClosure_TextViewBackspace :: TextViewBackspaceCallback -> IO Closure
- mk_TextViewBackspaceCallback :: C_TextViewBackspaceCallback -> IO (FunPtr C_TextViewBackspaceCallback)
- noTextViewBackspaceCallback :: Maybe TextViewBackspaceCallback
- onTextViewBackspace :: (IsTextView a, MonadIO m) => a -> TextViewBackspaceCallback -> m SignalHandlerId
- wrap_TextViewBackspaceCallback :: TextViewBackspaceCallback -> Ptr () -> Ptr () -> IO ()
- type C_TextViewCopyClipboardCallback = Ptr () -> Ptr () -> IO ()
- type TextViewCopyClipboardCallback = IO ()
- afterTextViewCopyClipboard :: (IsTextView a, MonadIO m) => a -> TextViewCopyClipboardCallback -> m SignalHandlerId
- genClosure_TextViewCopyClipboard :: TextViewCopyClipboardCallback -> IO Closure
- mk_TextViewCopyClipboardCallback :: C_TextViewCopyClipboardCallback -> IO (FunPtr C_TextViewCopyClipboardCallback)
- noTextViewCopyClipboardCallback :: Maybe TextViewCopyClipboardCallback
- onTextViewCopyClipboard :: (IsTextView a, MonadIO m) => a -> TextViewCopyClipboardCallback -> m SignalHandlerId
- wrap_TextViewCopyClipboardCallback :: TextViewCopyClipboardCallback -> Ptr () -> Ptr () -> IO ()
- type C_TextViewCutClipboardCallback = Ptr () -> Ptr () -> IO ()
- type TextViewCutClipboardCallback = IO ()
- afterTextViewCutClipboard :: (IsTextView a, MonadIO m) => a -> TextViewCutClipboardCallback -> m SignalHandlerId
- genClosure_TextViewCutClipboard :: TextViewCutClipboardCallback -> IO Closure
- mk_TextViewCutClipboardCallback :: C_TextViewCutClipboardCallback -> IO (FunPtr C_TextViewCutClipboardCallback)
- noTextViewCutClipboardCallback :: Maybe TextViewCutClipboardCallback
- onTextViewCutClipboard :: (IsTextView a, MonadIO m) => a -> TextViewCutClipboardCallback -> m SignalHandlerId
- wrap_TextViewCutClipboardCallback :: TextViewCutClipboardCallback -> Ptr () -> Ptr () -> IO ()
- type C_TextViewDeleteFromCursorCallback = Ptr () -> CUInt -> Int32 -> Ptr () -> IO ()
- type TextViewDeleteFromCursorCallback = DeleteType -> Int32 -> IO ()
- afterTextViewDeleteFromCursor :: (IsTextView a, MonadIO m) => a -> TextViewDeleteFromCursorCallback -> m SignalHandlerId
- genClosure_TextViewDeleteFromCursor :: TextViewDeleteFromCursorCallback -> IO Closure
- mk_TextViewDeleteFromCursorCallback :: C_TextViewDeleteFromCursorCallback -> IO (FunPtr C_TextViewDeleteFromCursorCallback)
- noTextViewDeleteFromCursorCallback :: Maybe TextViewDeleteFromCursorCallback
- onTextViewDeleteFromCursor :: (IsTextView a, MonadIO m) => a -> TextViewDeleteFromCursorCallback -> m SignalHandlerId
- wrap_TextViewDeleteFromCursorCallback :: TextViewDeleteFromCursorCallback -> Ptr () -> CUInt -> Int32 -> Ptr () -> IO ()
- type C_TextViewExtendSelectionCallback = Ptr () -> CUInt -> Ptr TextIter -> Ptr TextIter -> Ptr TextIter -> Ptr () -> IO CInt
- type TextViewExtendSelectionCallback = TextExtendSelection -> TextIter -> TextIter -> TextIter -> IO Bool
- afterTextViewExtendSelection :: (IsTextView a, MonadIO m) => a -> TextViewExtendSelectionCallback -> m SignalHandlerId
- genClosure_TextViewExtendSelection :: TextViewExtendSelectionCallback -> IO Closure
- mk_TextViewExtendSelectionCallback :: C_TextViewExtendSelectionCallback -> IO (FunPtr C_TextViewExtendSelectionCallback)
- noTextViewExtendSelectionCallback :: Maybe TextViewExtendSelectionCallback
- onTextViewExtendSelection :: (IsTextView a, MonadIO m) => a -> TextViewExtendSelectionCallback -> m SignalHandlerId
- wrap_TextViewExtendSelectionCallback :: TextViewExtendSelectionCallback -> Ptr () -> CUInt -> Ptr TextIter -> Ptr TextIter -> Ptr TextIter -> Ptr () -> IO CInt
- type C_TextViewInsertAtCursorCallback = Ptr () -> CString -> Ptr () -> IO ()
- type TextViewInsertAtCursorCallback = Text -> IO ()
- afterTextViewInsertAtCursor :: (IsTextView a, MonadIO m) => a -> TextViewInsertAtCursorCallback -> m SignalHandlerId
- genClosure_TextViewInsertAtCursor :: TextViewInsertAtCursorCallback -> IO Closure
- mk_TextViewInsertAtCursorCallback :: C_TextViewInsertAtCursorCallback -> IO (FunPtr C_TextViewInsertAtCursorCallback)
- noTextViewInsertAtCursorCallback :: Maybe TextViewInsertAtCursorCallback
- onTextViewInsertAtCursor :: (IsTextView a, MonadIO m) => a -> TextViewInsertAtCursorCallback -> m SignalHandlerId
- wrap_TextViewInsertAtCursorCallback :: TextViewInsertAtCursorCallback -> Ptr () -> CString -> Ptr () -> IO ()
- type C_TextViewMoveCursorCallback = Ptr () -> CUInt -> Int32 -> CInt -> Ptr () -> IO ()
- type TextViewMoveCursorCallback = MovementStep -> Int32 -> Bool -> IO ()
- afterTextViewMoveCursor :: (IsTextView a, MonadIO m) => a -> TextViewMoveCursorCallback -> m SignalHandlerId
- genClosure_TextViewMoveCursor :: TextViewMoveCursorCallback -> IO Closure
- mk_TextViewMoveCursorCallback :: C_TextViewMoveCursorCallback -> IO (FunPtr C_TextViewMoveCursorCallback)
- noTextViewMoveCursorCallback :: Maybe TextViewMoveCursorCallback
- onTextViewMoveCursor :: (IsTextView a, MonadIO m) => a -> TextViewMoveCursorCallback -> m SignalHandlerId
- wrap_TextViewMoveCursorCallback :: TextViewMoveCursorCallback -> Ptr () -> CUInt -> Int32 -> CInt -> Ptr () -> IO ()
- type C_TextViewMoveViewportCallback = Ptr () -> CUInt -> Int32 -> Ptr () -> IO ()
- type TextViewMoveViewportCallback = ScrollStep -> Int32 -> IO ()
- afterTextViewMoveViewport :: (IsTextView a, MonadIO m) => a -> TextViewMoveViewportCallback -> m SignalHandlerId
- genClosure_TextViewMoveViewport :: TextViewMoveViewportCallback -> IO Closure
- mk_TextViewMoveViewportCallback :: C_TextViewMoveViewportCallback -> IO (FunPtr C_TextViewMoveViewportCallback)
- noTextViewMoveViewportCallback :: Maybe TextViewMoveViewportCallback
- onTextViewMoveViewport :: (IsTextView a, MonadIO m) => a -> TextViewMoveViewportCallback -> m SignalHandlerId
- wrap_TextViewMoveViewportCallback :: TextViewMoveViewportCallback -> Ptr () -> CUInt -> Int32 -> Ptr () -> IO ()
- type C_TextViewPasteClipboardCallback = Ptr () -> Ptr () -> IO ()
- type TextViewPasteClipboardCallback = IO ()
- afterTextViewPasteClipboard :: (IsTextView a, MonadIO m) => a -> TextViewPasteClipboardCallback -> m SignalHandlerId
- genClosure_TextViewPasteClipboard :: TextViewPasteClipboardCallback -> IO Closure
- mk_TextViewPasteClipboardCallback :: C_TextViewPasteClipboardCallback -> IO (FunPtr C_TextViewPasteClipboardCallback)
- noTextViewPasteClipboardCallback :: Maybe TextViewPasteClipboardCallback
- onTextViewPasteClipboard :: (IsTextView a, MonadIO m) => a -> TextViewPasteClipboardCallback -> m SignalHandlerId
- wrap_TextViewPasteClipboardCallback :: TextViewPasteClipboardCallback -> Ptr () -> Ptr () -> IO ()
- type C_TextViewPopulatePopupCallback = Ptr () -> Ptr Widget -> Ptr () -> IO ()
- type TextViewPopulatePopupCallback = Widget -> IO ()
- afterTextViewPopulatePopup :: (IsTextView a, MonadIO m) => a -> TextViewPopulatePopupCallback -> m SignalHandlerId
- genClosure_TextViewPopulatePopup :: TextViewPopulatePopupCallback -> IO Closure
- mk_TextViewPopulatePopupCallback :: C_TextViewPopulatePopupCallback -> IO (FunPtr C_TextViewPopulatePopupCallback)
- noTextViewPopulatePopupCallback :: Maybe TextViewPopulatePopupCallback
- onTextViewPopulatePopup :: (IsTextView a, MonadIO m) => a -> TextViewPopulatePopupCallback -> m SignalHandlerId
- wrap_TextViewPopulatePopupCallback :: TextViewPopulatePopupCallback -> Ptr () -> Ptr Widget -> Ptr () -> IO ()
- type C_TextViewPreeditChangedCallback = Ptr () -> CString -> Ptr () -> IO ()
- type TextViewPreeditChangedCallback = Text -> IO ()
- afterTextViewPreeditChanged :: (IsTextView a, MonadIO m) => a -> TextViewPreeditChangedCallback -> m SignalHandlerId
- genClosure_TextViewPreeditChanged :: TextViewPreeditChangedCallback -> IO Closure
- mk_TextViewPreeditChangedCallback :: C_TextViewPreeditChangedCallback -> IO (FunPtr C_TextViewPreeditChangedCallback)
- noTextViewPreeditChangedCallback :: Maybe TextViewPreeditChangedCallback
- onTextViewPreeditChanged :: (IsTextView a, MonadIO m) => a -> TextViewPreeditChangedCallback -> m SignalHandlerId
- wrap_TextViewPreeditChangedCallback :: TextViewPreeditChangedCallback -> Ptr () -> CString -> Ptr () -> IO ()
- type C_TextViewSelectAllCallback = Ptr () -> CInt -> Ptr () -> IO ()
- type TextViewSelectAllCallback = Bool -> IO ()
- afterTextViewSelectAll :: (IsTextView a, MonadIO m) => a -> TextViewSelectAllCallback -> m SignalHandlerId
- genClosure_TextViewSelectAll :: TextViewSelectAllCallback -> IO Closure
- mk_TextViewSelectAllCallback :: C_TextViewSelectAllCallback -> IO (FunPtr C_TextViewSelectAllCallback)
- noTextViewSelectAllCallback :: Maybe TextViewSelectAllCallback
- onTextViewSelectAll :: (IsTextView a, MonadIO m) => a -> TextViewSelectAllCallback -> m SignalHandlerId
- wrap_TextViewSelectAllCallback :: TextViewSelectAllCallback -> Ptr () -> CInt -> Ptr () -> IO ()
- type C_TextViewSetAnchorCallback = Ptr () -> Ptr () -> IO ()
- type TextViewSetAnchorCallback = IO ()
- afterTextViewSetAnchor :: (IsTextView a, MonadIO m) => a -> TextViewSetAnchorCallback -> m SignalHandlerId
- genClosure_TextViewSetAnchor :: TextViewSetAnchorCallback -> IO Closure
- mk_TextViewSetAnchorCallback :: C_TextViewSetAnchorCallback -> IO (FunPtr C_TextViewSetAnchorCallback)
- noTextViewSetAnchorCallback :: Maybe TextViewSetAnchorCallback
- onTextViewSetAnchor :: (IsTextView a, MonadIO m) => a -> TextViewSetAnchorCallback -> m SignalHandlerId
- wrap_TextViewSetAnchorCallback :: TextViewSetAnchorCallback -> Ptr () -> Ptr () -> IO ()
- type C_TextViewToggleCursorVisibleCallback = Ptr () -> Ptr () -> IO ()
- type TextViewToggleCursorVisibleCallback = IO ()
- afterTextViewToggleCursorVisible :: (IsTextView a, MonadIO m) => a -> TextViewToggleCursorVisibleCallback -> m SignalHandlerId
- genClosure_TextViewToggleCursorVisible :: TextViewToggleCursorVisibleCallback -> IO Closure
- mk_TextViewToggleCursorVisibleCallback :: C_TextViewToggleCursorVisibleCallback -> IO (FunPtr C_TextViewToggleCursorVisibleCallback)
- noTextViewToggleCursorVisibleCallback :: Maybe TextViewToggleCursorVisibleCallback
- onTextViewToggleCursorVisible :: (IsTextView a, MonadIO m) => a -> TextViewToggleCursorVisibleCallback -> m SignalHandlerId
- wrap_TextViewToggleCursorVisibleCallback :: TextViewToggleCursorVisibleCallback -> Ptr () -> Ptr () -> IO ()
- type C_TextViewToggleOverwriteCallback = Ptr () -> Ptr () -> IO ()
- type TextViewToggleOverwriteCallback = IO ()
- afterTextViewToggleOverwrite :: (IsTextView a, MonadIO m) => a -> TextViewToggleOverwriteCallback -> m SignalHandlerId
- genClosure_TextViewToggleOverwrite :: TextViewToggleOverwriteCallback -> IO Closure
- mk_TextViewToggleOverwriteCallback :: C_TextViewToggleOverwriteCallback -> IO (FunPtr C_TextViewToggleOverwriteCallback)
- noTextViewToggleOverwriteCallback :: Maybe TextViewToggleOverwriteCallback
- onTextViewToggleOverwrite :: (IsTextView a, MonadIO m) => a -> TextViewToggleOverwriteCallback -> m SignalHandlerId
- wrap_TextViewToggleOverwriteCallback :: TextViewToggleOverwriteCallback -> Ptr () -> Ptr () -> IO ()
Exported types
Constructors
TextView (ManagedPtr TextView) |
class GObject o => IsTextView o Source #
Instances
(GObject a, UnknownAncestorError Constraint TextView a) => IsTextView a Source # | |
IsTextView TextView Source # | |
toTextView :: (MonadIO m, IsTextView o) => o -> m TextView Source #
Methods
addChildAtAnchor
textViewAddChildAtAnchor Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a, IsWidget b, IsTextChildAnchor c) | |
=> a |
|
-> b |
|
-> c |
|
-> m () |
Adds a child widget in the text buffer, at the given anchor
.
addChildInWindow
textViewAddChildInWindow Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a, IsWidget b) | |
=> a |
|
-> b |
|
-> TextWindowType |
|
-> Int32 |
|
-> Int32 |
|
-> m () |
Adds a child at fixed coordinates in one of the text widget's windows.
The window must have nonzero size (see
textViewSetBorderWindowSize
). Note that the child
coordinates are given relative to scrolling. When
placing a child in GTK_TEXT_WINDOW_WIDGET
, scrolling is
irrelevant, the child floats above all scrollable areas. But when
placing a child in one of the scrollable windows (border windows or
text window) it will move with the scrolling as needed.
backwardDisplayLine
textViewBackwardDisplayLine Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> TextIter |
|
-> m Bool | Returns: |
Moves the given iter
backward by one display (wrapped) line.
A display line is different from a paragraph. Paragraphs are
separated by newlines or other paragraph separator characters.
Display lines are created by line-wrapping a paragraph. If
wrapping is turned off, display lines and paragraphs will be the
same. Display lines are divided differently for each view, since
they depend on the view’s width; paragraphs are the same in all
views, since they depend on the contents of the TextBuffer
.
backwardDisplayLineStart
textViewBackwardDisplayLineStart Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> TextIter |
|
-> m Bool | Returns: |
Moves the given iter
backward to the next display line start.
A display line is different from a paragraph. Paragraphs are
separated by newlines or other paragraph separator characters.
Display lines are created by line-wrapping a paragraph. If
wrapping is turned off, display lines and paragraphs will be the
same. Display lines are divided differently for each view, since
they depend on the view’s width; paragraphs are the same in all
views, since they depend on the contents of the TextBuffer
.
bufferToWindowCoords
textViewBufferToWindowCoords Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> TextWindowType |
|
-> Int32 |
|
-> Int32 |
|
-> m (Int32, Int32) |
Converts coordinate (bufferX
, bufferY
) to coordinates for the window
win
, and stores the result in (windowX
, windowY
).
Note that you can’t convert coordinates for a nonexisting window (see
textViewSetBorderWindowSize
).
forwardDisplayLine
textViewForwardDisplayLine Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> TextIter |
|
-> m Bool | Returns: |
Moves the given iter
forward by one display (wrapped) line.
A display line is different from a paragraph. Paragraphs are
separated by newlines or other paragraph separator characters.
Display lines are created by line-wrapping a paragraph. If
wrapping is turned off, display lines and paragraphs will be the
same. Display lines are divided differently for each view, since
they depend on the view’s width; paragraphs are the same in all
views, since they depend on the contents of the TextBuffer
.
forwardDisplayLineEnd
textViewForwardDisplayLineEnd Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> TextIter |
|
-> m Bool | Returns: |
Moves the given iter
forward to the next display line end.
A display line is different from a paragraph. Paragraphs are
separated by newlines or other paragraph separator characters.
Display lines are created by line-wrapping a paragraph. If
wrapping is turned off, display lines and paragraphs will be the
same. Display lines are divided differently for each view, since
they depend on the view’s width; paragraphs are the same in all
views, since they depend on the contents of the TextBuffer
.
getAcceptsTab
textViewGetAcceptsTab Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether pressing the Tab key inserts a tab characters.
textViewSetAcceptsTab
.
Since: 2.4
getBorderWindowSize
textViewGetBorderWindowSize Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> TextWindowType |
|
-> m Int32 | Returns: width of window |
Gets the width of the specified border window. See
textViewSetBorderWindowSize
.
getBottomMargin
textViewGetBottomMargin Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Int32 | Returns: bottom margin in pixels |
Gets the bottom margin for text in the textView
.
Since: 3.18
getBuffer
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m TextBuffer | Returns: a |
Returns the TextBuffer
being displayed by this text view.
The reference count on the buffer is not incremented; the caller
of this function won’t own a new reference.
getCursorLocations
textViewGetCursorLocations Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Maybe TextIter |
|
-> m (Rectangle, Rectangle) |
Given an iter
within a text layout, determine the positions of the
strong and weak cursors if the insertion point is at that
iterator. The position of each cursor is stored as a zero-width
rectangle. The strong cursor location is the location where
characters of the directionality equal to the base direction of the
paragraph are inserted. The weak cursor location is the location
where characters of the directionality opposite to the base
direction of the paragraph are inserted.
If iter
is Nothing
, the actual cursor position is used.
Note that if iter
happens to be the actual cursor position, and
there is currently an IM preedit sequence being entered, the
returned locations will be adjusted to account for the preedit
cursor’s offset within the preedit sequence.
The rectangle position is in buffer coordinates; use
textViewBufferToWindowCoords
to convert these
coordinates to coordinates for one of the windows in the text view.
Since: 3.0
getCursorVisible
textViewGetCursorVisible Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Bool | Returns: whether the insertion mark is visible |
Find out whether the cursor should be displayed.
getDefaultAttributes
textViewGetDefaultAttributes Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m TextAttributes | Returns: a new |
Obtains a copy of the default text attributes. These are the
attributes used for text unless a tag overrides them.
You’d typically pass the default attributes in to
textIterGetAttributes
in order to get the
attributes in effect at a given text position.
The return value is a copy owned by the caller of this function,
and should be freed with textAttributesUnref
.
getEditable
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Bool | Returns: whether text is editable by default |
Returns the default editability of the TextView
. Tags in the
buffer may override this setting for some ranges of text.
getHadjustment
textViewGetHadjustment Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Adjustment | Returns: pointer to the horizontal |
Deprecated: (Since version 3.0)Use scrollableGetHadjustment
Gets the horizontal-scrolling Adjustment
.
Since: 2.22
getIndent
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Int32 | Returns: number of pixels of indentation |
Gets the default indentation of paragraphs in textView
.
Tags in the view’s buffer may override the default.
The indentation may be negative.
getInputHints
textViewGetInputHints Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m [InputHints] |
Gets the value of the TextView
:input-hints
property.
Since: 3.6
getInputPurpose
textViewGetInputPurpose Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m InputPurpose |
Gets the value of the TextView
:input-purpose
property.
Since: 3.6
getIterAtLocation
textViewGetIterAtLocation Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> m (Bool, TextIter) | Returns: |
Retrieves the iterator at buffer coordinates x
and y
. Buffer
coordinates are coordinates for the entire buffer, not just the
currently-displayed portion. If you have coordinates from an
event, you have to convert those to buffer coordinates with
textViewWindowToBufferCoords
.
getIterAtPosition
textViewGetIterAtPosition Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> m (Bool, TextIter, Int32) | Returns: |
Retrieves the iterator pointing to the character at buffer
coordinates x
and y
. Buffer coordinates are coordinates for
the entire buffer, not just the currently-displayed portion.
If you have coordinates from an event, you have to convert
those to buffer coordinates with
textViewWindowToBufferCoords
.
Note that this is different from textViewGetIterAtLocation
,
which returns cursor locations, i.e. positions between
characters.
Since: 2.6
getIterLocation
textViewGetIterLocation Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> TextIter |
|
-> m Rectangle |
Gets a rectangle which roughly contains the character at iter
.
The rectangle position is in buffer coordinates; use
textViewBufferToWindowCoords
to convert these
coordinates to coordinates for one of the windows in the text view.
getJustification
textViewGetJustification Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Justification | Returns: default justification |
Gets the default justification of paragraphs in textView
.
Tags in the buffer may override the default.
getLeftMargin
textViewGetLeftMargin Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Int32 | Returns: left margin in pixels |
Gets the default left margin size of paragraphs in the textView
.
Tags in the buffer may override the default.
getLineAtY
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Int32 |
|
-> m (TextIter, Int32) |
Gets the TextIter
at the start of the line containing
the coordinate y
. y
is in buffer coordinates, convert from
window coordinates with textViewWindowToBufferCoords
.
If non-Nothing
, lineTop
will be filled with the coordinate of the top
edge of the line.
getLineYrange
textViewGetLineYrange Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> TextIter |
|
-> m (Int32, Int32) |
Gets the y coordinate of the top of the line containing iter
,
and the height of the line. The coordinate is a buffer coordinate;
convert to window coordinates with textViewBufferToWindowCoords
.
getMonospace
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Bool | Returns: |
Gets the value of the TextView
:monospace
property.
Since: 3.16
getOverwrite
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Bool | Returns: whether |
Returns whether the TextView
is in overwrite mode or not.
Since: 2.4
getPixelsAboveLines
textViewGetPixelsAboveLines Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Int32 | Returns: default number of pixels above paragraphs |
Gets the default number of pixels to put above paragraphs.
Adding this function with textViewGetPixelsBelowLines
is equal to the line space between each paragraph.
getPixelsBelowLines
textViewGetPixelsBelowLines Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Int32 | Returns: default number of blank pixels below paragraphs |
Gets the value set by textViewSetPixelsBelowLines
.
The line space is the sum of the value returned by this function and the
value returned by textViewGetPixelsAboveLines
.
getPixelsInsideWrap
textViewGetPixelsInsideWrap Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Int32 | Returns: default number of pixels of blank space between wrapped lines |
Gets the value set by textViewSetPixelsInsideWrap
.
getRightMargin
textViewGetRightMargin Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Int32 | Returns: right margin in pixels |
Gets the default right margin for text in textView
. Tags
in the buffer may override the default.
getTabs
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m (Maybe TabArray) | Returns: copy of default tab array, or |
Gets the default tabs for textView
. Tags in the buffer may
override the defaults. The returned array will be Nothing
if
“standard” (8-space) tabs are used. Free the return value
with tabArrayFree
.
getTopMargin
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Int32 | Returns: top margin in pixels |
Gets the top margin for text in the textView
.
Since: 3.18
getVadjustment
textViewGetVadjustment Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Adjustment | Returns: pointer to the vertical |
Deprecated: (Since version 3.0)Use scrollableGetVadjustment
Gets the vertical-scrolling Adjustment
.
Since: 2.22
getVisibleRect
textViewGetVisibleRect Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Rectangle |
Fills visibleRect
with the currently-visible
region of the buffer, in buffer coordinates. Convert to window coordinates
with textViewBufferToWindowCoords
.
getWindow
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> TextWindowType |
|
-> m (Maybe Window) |
Retrieves the Window
corresponding to an area of the text view;
possible windows include the overall widget window, child windows
on the left, right, top, bottom, and the window that displays the
text buffer. Windows are Nothing
and nonexistent if their width or
height is 0, and are nonexistent before the widget has been
realized.
getWindowType
textViewGetWindowType Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a, IsWindow b) | |
=> a |
|
-> b |
|
-> m TextWindowType | Returns: the window type. |
Usually used to find out which window an event corresponds to.
If you connect to an event signal on textView
, this function
should be called on event->window
to see which window it was.
getWrapMode
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m WrapMode | Returns: the line wrap setting |
Gets the line wrapping for the view.
imContextFilterKeypress
textViewImContextFilterKeypress Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> EventKey |
|
-> m Bool | Returns: |
Allow the TextView
input method to internally handle key press
and release events. If this function returns True
, then no further
processing should be done for this key event. See
iMContextFilterKeypress
.
Note that you are expected to call this function from your handler
when overriding key event handling. This is needed in the case when
you need to insert your own key handling between the input method
and the default key event handling of the TextView
.
C code
static gboolean gtk_foo_bar_key_press_event (GtkWidget *widget, GdkEventKey *event) { if ((key->keyval == GDK_KEY_Return || key->keyval == GDK_KEY_KP_Enter)) { if (gtk_text_view_im_context_filter_keypress (GTK_TEXT_VIEW (view), event)) return TRUE; } // Do some stuff return GTK_WIDGET_CLASS (gtk_foo_bar_parent_class)->key_press_event (widget, event); }
Since: 2.22
moveChild
Arguments
:: (HasCallStack, MonadIO m, IsTextView a, IsWidget b) | |
=> a |
|
-> b |
|
-> Int32 |
|
-> Int32 |
|
-> m () |
Updates the position of a child, as for textViewAddChildInWindow
.
moveMarkOnscreen
textViewMoveMarkOnscreen Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a, IsTextMark b) | |
=> a |
|
-> b |
|
-> m Bool | Returns: |
Moves a mark within the buffer so that it's located within the currently-visible text area.
moveVisually
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> TextIter |
|
-> Int32 |
|
-> m Bool | Returns: |
Move the iterator a given number of characters visually, treating
it as the strong cursor position. If count
is positive, then the
new strong cursor position will be count
positions to the right of
the old cursor position. If count
is negative then the new strong
cursor position will be count
positions to the left of the old
cursor position.
In the presence of bi-directional text, the correspondence between logical and visual order will depend on the direction of the current run, and there may be jumps when the cursor is moved off of the end of a run.
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m TextView | Returns: a new |
Creates a new TextView
. If you don’t call textViewSetBuffer
before using the text view, an empty default buffer will be created
for you. Get the buffer with textViewGetBuffer
. If you want
to specify your own buffer, consider textViewNewWithBuffer
.
newWithBuffer
textViewNewWithBuffer Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextBuffer a) | |
=> a |
|
-> m TextView | Returns: a new |
Creates a new TextView
widget displaying the buffer
buffer
. One buffer can be shared among many widgets.
buffer
may be Nothing
to create a default buffer, in which case
this function is equivalent to textViewNew
. The
text view adds its own reference count to the buffer; it does not
take over an existing reference.
placeCursorOnscreen
textViewPlaceCursorOnscreen Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Bool | Returns: |
Moves the cursor to the currently visible region of the buffer, it it isn’t there already.
resetCursorBlink
textViewResetCursorBlink Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m () |
Ensures that the cursor is shown (i.e. not in an 'off' blink interval) and resets the time that it will stay blinking (or visible, in case blinking is disabled).
This function should be called in response to user input
(e.g. from derived classes that override the textview's
Widget
::key-press-event
handler).
Since: 3.20
resetImContext
textViewResetImContext Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m () |
Reset the input method context of the text view if needed.
This can be necessary in the case where modifying the buffer would confuse on-going input method behavior.
Since: 2.22
scrollMarkOnscreen
textViewScrollMarkOnscreen Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a, IsTextMark b) | |
=> a |
|
-> b |
|
-> m () |
Scrolls textView
the minimum distance such that mark
is contained
within the visible area of the widget.
scrollToIter
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> TextIter |
|
-> Double |
|
-> Bool |
|
-> Double |
|
-> Double |
|
-> m Bool | Returns: |
Scrolls textView
so that iter
is on the screen in the position
indicated by xalign
and yalign
. An alignment of 0.0 indicates
left or top, 1.0 indicates right or bottom, 0.5 means center.
If useAlign
is False
, the text scrolls the minimal distance to
get the mark onscreen, possibly not scrolling at all. The effective
screen for purposes of this function is reduced by a margin of size
withinMargin
.
Note that this function uses the currently-computed height of the
lines in the text buffer. Line heights are computed in an idle
handler; so this function may not have the desired effect if it’s
called before the height computations. To avoid oddness, consider
using textViewScrollToMark
which saves a point to be
scrolled to after line validation.
scrollToMark
Arguments
:: (HasCallStack, MonadIO m, IsTextView a, IsTextMark b) | |
=> a |
|
-> b |
|
-> Double |
|
-> Bool |
|
-> Double |
|
-> Double |
|
-> m () |
Scrolls textView
so that mark
is on the screen in the position
indicated by xalign
and yalign
. An alignment of 0.0 indicates
left or top, 1.0 indicates right or bottom, 0.5 means center.
If useAlign
is False
, the text scrolls the minimal distance to
get the mark onscreen, possibly not scrolling at all. The effective
screen for purposes of this function is reduced by a margin of size
withinMargin
.
setAcceptsTab
textViewSetAcceptsTab Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Bool |
|
-> m () |
setBorderWindowSize
textViewSetBorderWindowSize Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> TextWindowType |
|
-> Int32 |
|
-> m () |
Sets the width of TextWindowTypeLeft
or TextWindowTypeRight
,
or the height of TextWindowTypeTop
or TextWindowTypeBottom
.
Automatically destroys the corresponding window if the size is set
to 0, and creates the window if the size is set to non-zero. This
function can only be used for the “border windows”, and it won’t
work with TextWindowTypeWidget
, TextWindowTypeText
, or
TextWindowTypePrivate
.
setBottomMargin
textViewSetBottomMargin Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the bottom margin for text in textView
.
Note that this function is confusingly named. In CSS terms, the value set here is padding.
Since: 3.18
setBuffer
Arguments
:: (HasCallStack, MonadIO m, IsTextView a, IsTextBuffer b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets buffer
as the buffer being displayed by textView
. The previous
buffer displayed by the text view is unreferenced, and a reference is
added to buffer
. If you owned a reference to buffer
before passing it
to this function, you must remove that reference yourself; TextView
will not “adopt” it.
setCursorVisible
textViewSetCursorVisible Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Bool |
|
-> m () |
Toggles whether the insertion point should be displayed. A buffer with no editable text probably shouldn’t have a visible cursor, so you may want to turn the cursor off.
Note that this property may be overridden by the
Settings
:gtk-keynave-use-caret
settings.
setEditable
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets the default editability of the TextView
. You can override
this default setting with tags in the buffer, using the “editable”
attribute of tags.
setIndent
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the default indentation for paragraphs in textView
.
Tags in the buffer may override the default.
setInputHints
textViewSetInputHints Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> [InputHints] |
|
-> m () |
Sets the TextView
:input-hints
property, which
allows input methods to fine-tune their behaviour.
Since: 3.6
setInputPurpose
textViewSetInputPurpose Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> InputPurpose |
|
-> m () |
Sets the TextView
:input-purpose
property which
can be used by on-screen keyboards and other input
methods to adjust their behaviour.
Since: 3.6
setJustification
textViewSetJustification Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Justification |
|
-> m () |
Sets the default justification of text in textView
.
Tags in the view’s buffer may override the default.
setLeftMargin
textViewSetLeftMargin Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the default left margin for text in textView
.
Tags in the buffer may override the default.
Note that this function is confusingly named. In CSS terms, the value set here is padding.
setMonospace
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets the TextView
:monospace
property, which
indicates that the text view should use monospace
fonts.
Since: 3.16
setOverwrite
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Bool |
|
-> m () |
Changes the TextView
overwrite mode.
Since: 2.4
setPixelsAboveLines
textViewSetPixelsAboveLines Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the default number of blank pixels above paragraphs in textView
.
Tags in the buffer for textView
may override the defaults.
setPixelsBelowLines
textViewSetPixelsBelowLines Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the default number of pixels of blank space
to put below paragraphs in textView
. May be overridden
by tags applied to textView
’s buffer.
setPixelsInsideWrap
textViewSetPixelsInsideWrap Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the default number of pixels of blank space to leave between
display/wrapped lines within a paragraph. May be overridden by
tags in textView
’s buffer.
setRightMargin
textViewSetRightMargin Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the default right margin for text in the text view. Tags in the buffer may override the default.
Note that this function is confusingly named. In CSS terms, the value set here is padding.
setTabs
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> TabArray |
|
-> m () |
Sets the default tab stops for paragraphs in textView
.
Tags in the buffer may override the default.
setTopMargin
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the top margin for text in textView
.
Note that this function is confusingly named. In CSS terms, the value set here is padding.
Since: 3.18
setWrapMode
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> WrapMode |
|
-> m () |
Sets the line wrapping for the view.
startsDisplayLine
textViewStartsDisplayLine Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> TextIter |
|
-> m Bool | Returns: |
Determines whether iter
is at the start of a display line.
See textViewForwardDisplayLine
for an explanation of
display lines vs. paragraphs.
windowToBufferCoords
textViewWindowToBufferCoords Source #
Arguments
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> TextWindowType |
|
-> Int32 |
|
-> Int32 |
|
-> m (Int32, Int32) |
Converts coordinates on the window identified by win
to buffer
coordinates, storing the result in (bufferX
,bufferY
).
Note that you can’t convert coordinates for a nonexisting window (see
textViewSetBorderWindowSize
).
Properties
acceptsTab
constructTextViewAcceptsTab :: IsTextView o => Bool -> IO (GValueConstruct o) Source #
getTextViewAcceptsTab :: (MonadIO m, IsTextView o) => o -> m Bool Source #
setTextViewAcceptsTab :: (MonadIO m, IsTextView o) => o -> Bool -> m () Source #
bottomMargin
constructTextViewBottomMargin :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
getTextViewBottomMargin :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
setTextViewBottomMargin :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
buffer
clearTextViewBuffer :: (MonadIO m, IsTextView o) => o -> m () Source #
constructTextViewBuffer :: (IsTextView o, IsTextBuffer a) => a -> IO (GValueConstruct o) Source #
getTextViewBuffer :: (MonadIO m, IsTextView o) => o -> m TextBuffer Source #
setTextViewBuffer :: (MonadIO m, IsTextView o, IsTextBuffer a) => o -> a -> m () Source #
cursorVisible
constructTextViewCursorVisible :: IsTextView o => Bool -> IO (GValueConstruct o) Source #
getTextViewCursorVisible :: (MonadIO m, IsTextView o) => o -> m Bool Source #
setTextViewCursorVisible :: (MonadIO m, IsTextView o) => o -> Bool -> m () Source #
editable
constructTextViewEditable :: IsTextView o => Bool -> IO (GValueConstruct o) Source #
getTextViewEditable :: (MonadIO m, IsTextView o) => o -> m Bool Source #
setTextViewEditable :: (MonadIO m, IsTextView o) => o -> Bool -> m () Source #
imModule
clearTextViewImModule :: (MonadIO m, IsTextView o) => o -> m () Source #
constructTextViewImModule :: IsTextView o => Text -> IO (GValueConstruct o) Source #
getTextViewImModule :: (MonadIO m, IsTextView o) => o -> m (Maybe Text) Source #
setTextViewImModule :: (MonadIO m, IsTextView o) => o -> Text -> m () Source #
indent
constructTextViewIndent :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
getTextViewIndent :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
setTextViewIndent :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
inputHints
constructTextViewInputHints :: IsTextView o => [InputHints] -> IO (GValueConstruct o) Source #
getTextViewInputHints :: (MonadIO m, IsTextView o) => o -> m [InputHints] Source #
setTextViewInputHints :: (MonadIO m, IsTextView o) => o -> [InputHints] -> m () Source #
inputPurpose
constructTextViewInputPurpose :: IsTextView o => InputPurpose -> IO (GValueConstruct o) Source #
getTextViewInputPurpose :: (MonadIO m, IsTextView o) => o -> m InputPurpose Source #
setTextViewInputPurpose :: (MonadIO m, IsTextView o) => o -> InputPurpose -> m () Source #
justification
constructTextViewJustification :: IsTextView o => Justification -> IO (GValueConstruct o) Source #
getTextViewJustification :: (MonadIO m, IsTextView o) => o -> m Justification Source #
setTextViewJustification :: (MonadIO m, IsTextView o) => o -> Justification -> m () Source #
leftMargin
constructTextViewLeftMargin :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
getTextViewLeftMargin :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
setTextViewLeftMargin :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
monospace
constructTextViewMonospace :: IsTextView o => Bool -> IO (GValueConstruct o) Source #
getTextViewMonospace :: (MonadIO m, IsTextView o) => o -> m Bool Source #
setTextViewMonospace :: (MonadIO m, IsTextView o) => o -> Bool -> m () Source #
overwrite
constructTextViewOverwrite :: IsTextView o => Bool -> IO (GValueConstruct o) Source #
getTextViewOverwrite :: (MonadIO m, IsTextView o) => o -> m Bool Source #
setTextViewOverwrite :: (MonadIO m, IsTextView o) => o -> Bool -> m () Source #
pixelsAboveLines
constructTextViewPixelsAboveLines :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
getTextViewPixelsAboveLines :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
setTextViewPixelsAboveLines :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
pixelsBelowLines
constructTextViewPixelsBelowLines :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
getTextViewPixelsBelowLines :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
setTextViewPixelsBelowLines :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
pixelsInsideWrap
constructTextViewPixelsInsideWrap :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
getTextViewPixelsInsideWrap :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
setTextViewPixelsInsideWrap :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
populateAll
constructTextViewPopulateAll :: IsTextView o => Bool -> IO (GValueConstruct o) Source #
getTextViewPopulateAll :: (MonadIO m, IsTextView o) => o -> m Bool Source #
setTextViewPopulateAll :: (MonadIO m, IsTextView o) => o -> Bool -> m () Source #
rightMargin
constructTextViewRightMargin :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
getTextViewRightMargin :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
setTextViewRightMargin :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
tabs
constructTextViewTabs :: IsTextView o => TabArray -> IO (GValueConstruct o) Source #
getTextViewTabs :: (MonadIO m, IsTextView o) => o -> m (Maybe TabArray) Source #
setTextViewTabs :: (MonadIO m, IsTextView o) => o -> TabArray -> m () Source #
topMargin
constructTextViewTopMargin :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
getTextViewTopMargin :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
setTextViewTopMargin :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
wrapMode
constructTextViewWrapMode :: IsTextView o => WrapMode -> IO (GValueConstruct o) Source #
getTextViewWrapMode :: (MonadIO m, IsTextView o) => o -> m WrapMode Source #
setTextViewWrapMode :: (MonadIO m, IsTextView o) => o -> WrapMode -> m () Source #
Signals
backspace
type TextViewBackspaceCallback = IO () Source #
afterTextViewBackspace :: (IsTextView a, MonadIO m) => a -> TextViewBackspaceCallback -> m SignalHandlerId Source #
mk_TextViewBackspaceCallback :: C_TextViewBackspaceCallback -> IO (FunPtr C_TextViewBackspaceCallback) Source #
onTextViewBackspace :: (IsTextView a, MonadIO m) => a -> TextViewBackspaceCallback -> m SignalHandlerId Source #
wrap_TextViewBackspaceCallback :: TextViewBackspaceCallback -> Ptr () -> Ptr () -> IO () Source #
copyClipboard
type TextViewCopyClipboardCallback = IO () Source #
afterTextViewCopyClipboard :: (IsTextView a, MonadIO m) => a -> TextViewCopyClipboardCallback -> m SignalHandlerId Source #
mk_TextViewCopyClipboardCallback :: C_TextViewCopyClipboardCallback -> IO (FunPtr C_TextViewCopyClipboardCallback) Source #
onTextViewCopyClipboard :: (IsTextView a, MonadIO m) => a -> TextViewCopyClipboardCallback -> m SignalHandlerId Source #
wrap_TextViewCopyClipboardCallback :: TextViewCopyClipboardCallback -> Ptr () -> Ptr () -> IO () Source #
cutClipboard
type TextViewCutClipboardCallback = IO () Source #
afterTextViewCutClipboard :: (IsTextView a, MonadIO m) => a -> TextViewCutClipboardCallback -> m SignalHandlerId Source #
mk_TextViewCutClipboardCallback :: C_TextViewCutClipboardCallback -> IO (FunPtr C_TextViewCutClipboardCallback) Source #
onTextViewCutClipboard :: (IsTextView a, MonadIO m) => a -> TextViewCutClipboardCallback -> m SignalHandlerId Source #
wrap_TextViewCutClipboardCallback :: TextViewCutClipboardCallback -> Ptr () -> Ptr () -> IO () Source #
deleteFromCursor
type TextViewDeleteFromCursorCallback = DeleteType -> Int32 -> IO () Source #
afterTextViewDeleteFromCursor :: (IsTextView a, MonadIO m) => a -> TextViewDeleteFromCursorCallback -> m SignalHandlerId Source #
mk_TextViewDeleteFromCursorCallback :: C_TextViewDeleteFromCursorCallback -> IO (FunPtr C_TextViewDeleteFromCursorCallback) Source #
onTextViewDeleteFromCursor :: (IsTextView a, MonadIO m) => a -> TextViewDeleteFromCursorCallback -> m SignalHandlerId Source #
wrap_TextViewDeleteFromCursorCallback :: TextViewDeleteFromCursorCallback -> Ptr () -> CUInt -> Int32 -> Ptr () -> IO () Source #
extendSelection
type C_TextViewExtendSelectionCallback = Ptr () -> CUInt -> Ptr TextIter -> Ptr TextIter -> Ptr TextIter -> Ptr () -> IO CInt Source #
type TextViewExtendSelectionCallback = TextExtendSelection -> TextIter -> TextIter -> TextIter -> IO Bool Source #
afterTextViewExtendSelection :: (IsTextView a, MonadIO m) => a -> TextViewExtendSelectionCallback -> m SignalHandlerId Source #
mk_TextViewExtendSelectionCallback :: C_TextViewExtendSelectionCallback -> IO (FunPtr C_TextViewExtendSelectionCallback) Source #
onTextViewExtendSelection :: (IsTextView a, MonadIO m) => a -> TextViewExtendSelectionCallback -> m SignalHandlerId Source #
wrap_TextViewExtendSelectionCallback :: TextViewExtendSelectionCallback -> Ptr () -> CUInt -> Ptr TextIter -> Ptr TextIter -> Ptr TextIter -> Ptr () -> IO CInt Source #
insertAtCursor
type TextViewInsertAtCursorCallback = Text -> IO () Source #
afterTextViewInsertAtCursor :: (IsTextView a, MonadIO m) => a -> TextViewInsertAtCursorCallback -> m SignalHandlerId Source #
mk_TextViewInsertAtCursorCallback :: C_TextViewInsertAtCursorCallback -> IO (FunPtr C_TextViewInsertAtCursorCallback) Source #
onTextViewInsertAtCursor :: (IsTextView a, MonadIO m) => a -> TextViewInsertAtCursorCallback -> m SignalHandlerId Source #
wrap_TextViewInsertAtCursorCallback :: TextViewInsertAtCursorCallback -> Ptr () -> CString -> Ptr () -> IO () Source #
moveCursor
type TextViewMoveCursorCallback = MovementStep -> Int32 -> Bool -> IO () Source #
afterTextViewMoveCursor :: (IsTextView a, MonadIO m) => a -> TextViewMoveCursorCallback -> m SignalHandlerId Source #
mk_TextViewMoveCursorCallback :: C_TextViewMoveCursorCallback -> IO (FunPtr C_TextViewMoveCursorCallback) Source #
onTextViewMoveCursor :: (IsTextView a, MonadIO m) => a -> TextViewMoveCursorCallback -> m SignalHandlerId Source #
wrap_TextViewMoveCursorCallback :: TextViewMoveCursorCallback -> Ptr () -> CUInt -> Int32 -> CInt -> Ptr () -> IO () Source #
moveViewport
type TextViewMoveViewportCallback = ScrollStep -> Int32 -> IO () Source #
afterTextViewMoveViewport :: (IsTextView a, MonadIO m) => a -> TextViewMoveViewportCallback -> m SignalHandlerId Source #
mk_TextViewMoveViewportCallback :: C_TextViewMoveViewportCallback -> IO (FunPtr C_TextViewMoveViewportCallback) Source #
onTextViewMoveViewport :: (IsTextView a, MonadIO m) => a -> TextViewMoveViewportCallback -> m SignalHandlerId Source #
wrap_TextViewMoveViewportCallback :: TextViewMoveViewportCallback -> Ptr () -> CUInt -> Int32 -> Ptr () -> IO () Source #
pasteClipboard
type TextViewPasteClipboardCallback = IO () Source #
afterTextViewPasteClipboard :: (IsTextView a, MonadIO m) => a -> TextViewPasteClipboardCallback -> m SignalHandlerId Source #
mk_TextViewPasteClipboardCallback :: C_TextViewPasteClipboardCallback -> IO (FunPtr C_TextViewPasteClipboardCallback) Source #
onTextViewPasteClipboard :: (IsTextView a, MonadIO m) => a -> TextViewPasteClipboardCallback -> m SignalHandlerId Source #
wrap_TextViewPasteClipboardCallback :: TextViewPasteClipboardCallback -> Ptr () -> Ptr () -> IO () Source #
populatePopup
type TextViewPopulatePopupCallback = Widget -> IO () Source #
afterTextViewPopulatePopup :: (IsTextView a, MonadIO m) => a -> TextViewPopulatePopupCallback -> m SignalHandlerId Source #
mk_TextViewPopulatePopupCallback :: C_TextViewPopulatePopupCallback -> IO (FunPtr C_TextViewPopulatePopupCallback) Source #
onTextViewPopulatePopup :: (IsTextView a, MonadIO m) => a -> TextViewPopulatePopupCallback -> m SignalHandlerId Source #
wrap_TextViewPopulatePopupCallback :: TextViewPopulatePopupCallback -> Ptr () -> Ptr Widget -> Ptr () -> IO () Source #
preeditChanged
type TextViewPreeditChangedCallback = Text -> IO () Source #
afterTextViewPreeditChanged :: (IsTextView a, MonadIO m) => a -> TextViewPreeditChangedCallback -> m SignalHandlerId Source #
mk_TextViewPreeditChangedCallback :: C_TextViewPreeditChangedCallback -> IO (FunPtr C_TextViewPreeditChangedCallback) Source #
onTextViewPreeditChanged :: (IsTextView a, MonadIO m) => a -> TextViewPreeditChangedCallback -> m SignalHandlerId Source #
wrap_TextViewPreeditChangedCallback :: TextViewPreeditChangedCallback -> Ptr () -> CString -> Ptr () -> IO () Source #
selectAll
type TextViewSelectAllCallback = Bool -> IO () Source #
afterTextViewSelectAll :: (IsTextView a, MonadIO m) => a -> TextViewSelectAllCallback -> m SignalHandlerId Source #
mk_TextViewSelectAllCallback :: C_TextViewSelectAllCallback -> IO (FunPtr C_TextViewSelectAllCallback) Source #
onTextViewSelectAll :: (IsTextView a, MonadIO m) => a -> TextViewSelectAllCallback -> m SignalHandlerId Source #
wrap_TextViewSelectAllCallback :: TextViewSelectAllCallback -> Ptr () -> CInt -> Ptr () -> IO () Source #
setAnchor
type TextViewSetAnchorCallback = IO () Source #
afterTextViewSetAnchor :: (IsTextView a, MonadIO m) => a -> TextViewSetAnchorCallback -> m SignalHandlerId Source #
mk_TextViewSetAnchorCallback :: C_TextViewSetAnchorCallback -> IO (FunPtr C_TextViewSetAnchorCallback) Source #
onTextViewSetAnchor :: (IsTextView a, MonadIO m) => a -> TextViewSetAnchorCallback -> m SignalHandlerId Source #
wrap_TextViewSetAnchorCallback :: TextViewSetAnchorCallback -> Ptr () -> Ptr () -> IO () Source #
toggleCursorVisible
type TextViewToggleCursorVisibleCallback = IO () Source #
afterTextViewToggleCursorVisible :: (IsTextView a, MonadIO m) => a -> TextViewToggleCursorVisibleCallback -> m SignalHandlerId Source #
genClosure_TextViewToggleCursorVisible :: TextViewToggleCursorVisibleCallback -> IO Closure Source #
mk_TextViewToggleCursorVisibleCallback :: C_TextViewToggleCursorVisibleCallback -> IO (FunPtr C_TextViewToggleCursorVisibleCallback) Source #
onTextViewToggleCursorVisible :: (IsTextView a, MonadIO m) => a -> TextViewToggleCursorVisibleCallback -> m SignalHandlerId Source #
wrap_TextViewToggleCursorVisibleCallback :: TextViewToggleCursorVisibleCallback -> Ptr () -> Ptr () -> IO () Source #
toggleOverwrite
type TextViewToggleOverwriteCallback = IO () Source #
afterTextViewToggleOverwrite :: (IsTextView a, MonadIO m) => a -> TextViewToggleOverwriteCallback -> m SignalHandlerId Source #
mk_TextViewToggleOverwriteCallback :: C_TextViewToggleOverwriteCallback -> IO (FunPtr C_TextViewToggleOverwriteCallback) Source #
onTextViewToggleOverwrite :: (IsTextView a, MonadIO m) => a -> TextViewToggleOverwriteCallback -> m SignalHandlerId Source #
wrap_TextViewToggleOverwriteCallback :: TextViewToggleOverwriteCallback -> Ptr () -> Ptr () -> IO () Source #