Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- 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
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.
Synopsis
- 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 -> C_TextViewBackspaceCallback
- 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 -> C_TextViewCopyClipboardCallback
- 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 -> C_TextViewCutClipboardCallback
- 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 -> C_TextViewDeleteFromCursorCallback
- 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 -> C_TextViewExtendSelectionCallback
- 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 -> C_TextViewInsertAtCursorCallback
- type C_TextViewInsertEmojiCallback = Ptr () -> Ptr () -> IO ()
- type TextViewInsertEmojiCallback = IO ()
- afterTextViewInsertEmoji :: (IsTextView a, MonadIO m) => a -> TextViewInsertEmojiCallback -> m SignalHandlerId
- genClosure_TextViewInsertEmoji :: TextViewInsertEmojiCallback -> IO Closure
- mk_TextViewInsertEmojiCallback :: C_TextViewInsertEmojiCallback -> IO (FunPtr C_TextViewInsertEmojiCallback)
- noTextViewInsertEmojiCallback :: Maybe TextViewInsertEmojiCallback
- onTextViewInsertEmoji :: (IsTextView a, MonadIO m) => a -> TextViewInsertEmojiCallback -> m SignalHandlerId
- wrap_TextViewInsertEmojiCallback :: TextViewInsertEmojiCallback -> C_TextViewInsertEmojiCallback
- 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 -> C_TextViewMoveCursorCallback
- 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 -> C_TextViewMoveViewportCallback
- 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 -> C_TextViewPasteClipboardCallback
- 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 -> C_TextViewPopulatePopupCallback
- 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 -> C_TextViewPreeditChangedCallback
- 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 -> C_TextViewSelectAllCallback
- 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 -> C_TextViewSetAnchorCallback
- 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 -> C_TextViewToggleCursorVisibleCallback
- 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 -> C_TextViewToggleOverwriteCallback
Exported types
Memory-managed wrapper type.
Instances
GObject TextView Source # | |
Defined in GI.Gtk.Objects.TextView gobjectType :: TextView -> IO GType # | |
IsImplementorIface TextView Source # | |
Defined in GI.Gtk.Objects.TextView | |
IsObject TextView Source # | |
Defined in GI.Gtk.Objects.TextView | |
IsBuildable TextView Source # | |
Defined in GI.Gtk.Objects.TextView | |
IsScrollable TextView Source # | |
Defined in GI.Gtk.Objects.TextView | |
IsContainer TextView Source # | |
Defined in GI.Gtk.Objects.TextView | |
IsWidget TextView Source # | |
Defined in GI.Gtk.Objects.TextView | |
IsTextView TextView Source # | |
Defined in GI.Gtk.Objects.TextView |
class GObject o => IsTextView o Source #
Type class for types which can be safely cast to TextView
, for instance with toTextView
.
Instances
(GObject a, (UnknownAncestorError TextView a :: Constraint)) => IsTextView a Source # | |
Defined in GI.Gtk.Objects.TextView | |
IsTextView TextView Source # | |
Defined in GI.Gtk.Objects.TextView |
toTextView :: (MonadIO m, IsTextView o) => o -> m TextView Source #
Methods
addChildAtAnchor
textViewAddChildAtAnchor Source #
:: (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 #
:: (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 #
:: (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 #
:: (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 #
:: (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 #
:: (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 #
:: (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 #
:: (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 #
:: (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 #
:: (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
:: (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 #
:: (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 #
:: (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 #
:: (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
:: (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 #
:: (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
:: (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 #
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m [InputHints] |
Gets the value of the TextView
:input-hints
property.
Since: 3.6
getInputPurpose
textViewGetInputPurpose Source #
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m InputPurpose |
Gets the value of the TextView
:input-purpose
property.
Since: 3.6
getIterAtLocation
textViewGetIterAtLocation Source #
:: (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 #
:: (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 #
:: (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 #
:: (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 #
:: (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
:: (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 #
:: (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
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Bool | Returns: |
Gets the value of the TextView
:monospace
property.
Since: 3.16
getOverwrite
:: (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 #
:: (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 #
:: (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 #
:: (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 #
:: (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
:: (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
:: (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 #
:: (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 #
:: (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
:: (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 #
:: (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
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m WrapMode | Returns: the line wrap setting |
Gets the line wrapping for the view.
imContextFilterKeypress
textViewImContextFilterKeypress Source #
:: (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) { guint keyval; gdk_event_get_keyval ((GdkEvent*)event, &keyval); if (keyval == GDK_KEY_Return || keyval == GDK_KEY_KP_Enter) { if (gtk_text_view_im_context_filter_keypress (GTK_TEXT_VIEW (widget), event)) return TRUE; } // Do some stuff return GTK_WIDGET_CLASS (gtk_foo_bar_parent_class)->key_press_event (widget, event); }
Since: 2.22
moveChild
:: (HasCallStack, MonadIO m, IsTextView a, IsWidget b) | |
=> a |
|
-> b |
|
-> Int32 |
|
-> Int32 |
|
-> m () |
Updates the position of a child, as for textViewAddChildInWindow
.
moveMarkOnscreen
textViewMoveMarkOnscreen Source #
:: (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
:: (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
:: (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 #
:: (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 #
:: (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 #
:: (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 #
:: (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 #
:: (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
:: (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
:: (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 #
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Bool |
|
-> m () |
setBorderWindowSize
textViewSetBorderWindowSize Source #
:: (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 #
:: (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
:: (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 #
:: (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
:: (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
:: (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 #
:: (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 #
:: (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 #
:: (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 #
:: (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
:: (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
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Bool |
|
-> m () |
Changes the TextView
overwrite mode.
Since: 2.4
setPixelsAboveLines
textViewSetPixelsAboveLines Source #
:: (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 #
:: (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 #
:: (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 #
:: (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
:: (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
:: (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
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> WrapMode |
|
-> m () |
Sets the line wrapping for the view.
startsDisplayLine
textViewStartsDisplayLine Source #
:: (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 #
:: (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
No description available in the introspection data.
constructTextViewAcceptsTab :: IsTextView o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “accepts-tab
” property. This is rarely needed directly, but it is used by new
.
getTextViewAcceptsTab :: (MonadIO m, IsTextView o) => o -> m Bool Source #
Get the value of the “accepts-tab
” property.
When overloading is enabled, this is equivalent to
get
textView #acceptsTab
setTextViewAcceptsTab :: (MonadIO m, IsTextView o) => o -> Bool -> m () Source #
Set the value of the “accepts-tab
” property.
When overloading is enabled, this is equivalent to
set
textView [ #acceptsTab:=
value ]
bottomMargin
The bottom margin for text in the text view.
Note that this property is confusingly named. In CSS terms, the value set here is padding, and it is applied in addition to the padding from the theme.
Don't confuse this property with Widget
:margin-bottom
.
Since: 3.18
constructTextViewBottomMargin :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “bottom-margin
” property. This is rarely needed directly, but it is used by new
.
getTextViewBottomMargin :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
Get the value of the “bottom-margin
” property.
When overloading is enabled, this is equivalent to
get
textView #bottomMargin
setTextViewBottomMargin :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
Set the value of the “bottom-margin
” property.
When overloading is enabled, this is equivalent to
set
textView [ #bottomMargin:=
value ]
buffer
No description available in the introspection data.
clearTextViewBuffer :: (MonadIO m, IsTextView o) => o -> m () Source #
Set the value of the “buffer
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#buffer
constructTextViewBuffer :: (IsTextView o, IsTextBuffer a) => a -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “buffer
” property. This is rarely needed directly, but it is used by new
.
getTextViewBuffer :: (MonadIO m, IsTextView o) => o -> m TextBuffer Source #
Get the value of the “buffer
” property.
When overloading is enabled, this is equivalent to
get
textView #buffer
setTextViewBuffer :: (MonadIO m, IsTextView o, IsTextBuffer a) => o -> a -> m () Source #
Set the value of the “buffer
” property.
When overloading is enabled, this is equivalent to
set
textView [ #buffer:=
value ]
cursorVisible
No description available in the introspection data.
constructTextViewCursorVisible :: IsTextView o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “cursor-visible
” property. This is rarely needed directly, but it is used by new
.
getTextViewCursorVisible :: (MonadIO m, IsTextView o) => o -> m Bool Source #
Get the value of the “cursor-visible
” property.
When overloading is enabled, this is equivalent to
get
textView #cursorVisible
setTextViewCursorVisible :: (MonadIO m, IsTextView o) => o -> Bool -> m () Source #
Set the value of the “cursor-visible
” property.
When overloading is enabled, this is equivalent to
set
textView [ #cursorVisible:=
value ]
editable
No description available in the introspection data.
constructTextViewEditable :: IsTextView o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “editable
” property. This is rarely needed directly, but it is used by new
.
getTextViewEditable :: (MonadIO m, IsTextView o) => o -> m Bool Source #
Get the value of the “editable
” property.
When overloading is enabled, this is equivalent to
get
textView #editable
setTextViewEditable :: (MonadIO m, IsTextView o) => o -> Bool -> m () Source #
Set the value of the “editable
” property.
When overloading is enabled, this is equivalent to
set
textView [ #editable:=
value ]
imModule
Which IM (input method) module should be used for this text_view.
See IMContext
.
Setting this to a non-Nothing
value overrides the
system-wide IM module setting. See the GtkSettings
Settings
:gtk-im-module
property.
Since: 2.16
clearTextViewImModule :: (MonadIO m, IsTextView o) => o -> m () Source #
Set the value of the “im-module
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#imModule
constructTextViewImModule :: IsTextView o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “im-module
” property. This is rarely needed directly, but it is used by new
.
getTextViewImModule :: (MonadIO m, IsTextView o) => o -> m (Maybe Text) Source #
Get the value of the “im-module
” property.
When overloading is enabled, this is equivalent to
get
textView #imModule
setTextViewImModule :: (MonadIO m, IsTextView o) => o -> Text -> m () Source #
Set the value of the “im-module
” property.
When overloading is enabled, this is equivalent to
set
textView [ #imModule:=
value ]
indent
No description available in the introspection data.
constructTextViewIndent :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “indent
” property. This is rarely needed directly, but it is used by new
.
getTextViewIndent :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
Get the value of the “indent
” property.
When overloading is enabled, this is equivalent to
get
textView #indent
setTextViewIndent :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
Set the value of the “indent
” property.
When overloading is enabled, this is equivalent to
set
textView [ #indent:=
value ]
inputHints
Additional hints (beyond TextView
:input-purpose
) that
allow input methods to fine-tune their behaviour.
Since: 3.6
constructTextViewInputHints :: IsTextView o => [InputHints] -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “input-hints
” property. This is rarely needed directly, but it is used by new
.
getTextViewInputHints :: (MonadIO m, IsTextView o) => o -> m [InputHints] Source #
Get the value of the “input-hints
” property.
When overloading is enabled, this is equivalent to
get
textView #inputHints
setTextViewInputHints :: (MonadIO m, IsTextView o) => o -> [InputHints] -> m () Source #
Set the value of the “input-hints
” property.
When overloading is enabled, this is equivalent to
set
textView [ #inputHints:=
value ]
inputPurpose
The purpose of this text field.
This property can be used by on-screen keyboards and other input methods to adjust their behaviour.
Since: 3.6
constructTextViewInputPurpose :: IsTextView o => InputPurpose -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “input-purpose
” property. This is rarely needed directly, but it is used by new
.
getTextViewInputPurpose :: (MonadIO m, IsTextView o) => o -> m InputPurpose Source #
Get the value of the “input-purpose
” property.
When overloading is enabled, this is equivalent to
get
textView #inputPurpose
setTextViewInputPurpose :: (MonadIO m, IsTextView o) => o -> InputPurpose -> m () Source #
Set the value of the “input-purpose
” property.
When overloading is enabled, this is equivalent to
set
textView [ #inputPurpose:=
value ]
justification
No description available in the introspection data.
constructTextViewJustification :: IsTextView o => Justification -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “justification
” property. This is rarely needed directly, but it is used by new
.
getTextViewJustification :: (MonadIO m, IsTextView o) => o -> m Justification Source #
Get the value of the “justification
” property.
When overloading is enabled, this is equivalent to
get
textView #justification
setTextViewJustification :: (MonadIO m, IsTextView o) => o -> Justification -> m () Source #
Set the value of the “justification
” property.
When overloading is enabled, this is equivalent to
set
textView [ #justification:=
value ]
leftMargin
The default left margin for text in the text view. Tags in the buffer may override the default.
Note that this property is confusingly named. In CSS terms, the value set here is padding, and it is applied in addition to the padding from the theme.
Don't confuse this property with Widget
:margin-left
.
constructTextViewLeftMargin :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “left-margin
” property. This is rarely needed directly, but it is used by new
.
getTextViewLeftMargin :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
Get the value of the “left-margin
” property.
When overloading is enabled, this is equivalent to
get
textView #leftMargin
setTextViewLeftMargin :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
Set the value of the “left-margin
” property.
When overloading is enabled, this is equivalent to
set
textView [ #leftMargin:=
value ]
monospace
No description available in the introspection data.
constructTextViewMonospace :: IsTextView o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “monospace
” property. This is rarely needed directly, but it is used by new
.
getTextViewMonospace :: (MonadIO m, IsTextView o) => o -> m Bool Source #
Get the value of the “monospace
” property.
When overloading is enabled, this is equivalent to
get
textView #monospace
setTextViewMonospace :: (MonadIO m, IsTextView o) => o -> Bool -> m () Source #
Set the value of the “monospace
” property.
When overloading is enabled, this is equivalent to
set
textView [ #monospace:=
value ]
overwrite
No description available in the introspection data.
constructTextViewOverwrite :: IsTextView o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “overwrite
” property. This is rarely needed directly, but it is used by new
.
getTextViewOverwrite :: (MonadIO m, IsTextView o) => o -> m Bool Source #
Get the value of the “overwrite
” property.
When overloading is enabled, this is equivalent to
get
textView #overwrite
setTextViewOverwrite :: (MonadIO m, IsTextView o) => o -> Bool -> m () Source #
Set the value of the “overwrite
” property.
When overloading is enabled, this is equivalent to
set
textView [ #overwrite:=
value ]
pixelsAboveLines
No description available in the introspection data.
constructTextViewPixelsAboveLines :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “pixels-above-lines
” property. This is rarely needed directly, but it is used by new
.
getTextViewPixelsAboveLines :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
Get the value of the “pixels-above-lines
” property.
When overloading is enabled, this is equivalent to
get
textView #pixelsAboveLines
setTextViewPixelsAboveLines :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
Set the value of the “pixels-above-lines
” property.
When overloading is enabled, this is equivalent to
set
textView [ #pixelsAboveLines:=
value ]
pixelsBelowLines
No description available in the introspection data.
constructTextViewPixelsBelowLines :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “pixels-below-lines
” property. This is rarely needed directly, but it is used by new
.
getTextViewPixelsBelowLines :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
Get the value of the “pixels-below-lines
” property.
When overloading is enabled, this is equivalent to
get
textView #pixelsBelowLines
setTextViewPixelsBelowLines :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
Set the value of the “pixels-below-lines
” property.
When overloading is enabled, this is equivalent to
set
textView [ #pixelsBelowLines:=
value ]
pixelsInsideWrap
No description available in the introspection data.
constructTextViewPixelsInsideWrap :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “pixels-inside-wrap
” property. This is rarely needed directly, but it is used by new
.
getTextViewPixelsInsideWrap :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
Get the value of the “pixels-inside-wrap
” property.
When overloading is enabled, this is equivalent to
get
textView #pixelsInsideWrap
setTextViewPixelsInsideWrap :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
Set the value of the “pixels-inside-wrap
” property.
When overloading is enabled, this is equivalent to
set
textView [ #pixelsInsideWrap:=
value ]
populateAll
If :populate-all is True
, the TextView
::populate-popup
signal is also emitted for touch popups.
Since: 3.8
constructTextViewPopulateAll :: IsTextView o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “populate-all
” property. This is rarely needed directly, but it is used by new
.
getTextViewPopulateAll :: (MonadIO m, IsTextView o) => o -> m Bool Source #
Get the value of the “populate-all
” property.
When overloading is enabled, this is equivalent to
get
textView #populateAll
setTextViewPopulateAll :: (MonadIO m, IsTextView o) => o -> Bool -> m () Source #
Set the value of the “populate-all
” property.
When overloading is enabled, this is equivalent to
set
textView [ #populateAll:=
value ]
rightMargin
The default right margin for text in the text view. Tags in the buffer may override the default.
Note that this property is confusingly named. In CSS terms, the value set here is padding, and it is applied in addition to the padding from the theme.
Don't confuse this property with Widget
:margin-right
.
constructTextViewRightMargin :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “right-margin
” property. This is rarely needed directly, but it is used by new
.
getTextViewRightMargin :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
Get the value of the “right-margin
” property.
When overloading is enabled, this is equivalent to
get
textView #rightMargin
setTextViewRightMargin :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
Set the value of the “right-margin
” property.
When overloading is enabled, this is equivalent to
set
textView [ #rightMargin:=
value ]
tabs
No description available in the introspection data.
constructTextViewTabs :: IsTextView o => TabArray -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “tabs
” property. This is rarely needed directly, but it is used by new
.
getTextViewTabs :: (MonadIO m, IsTextView o) => o -> m (Maybe TabArray) Source #
Get the value of the “tabs
” property.
When overloading is enabled, this is equivalent to
get
textView #tabs
setTextViewTabs :: (MonadIO m, IsTextView o) => o -> TabArray -> m () Source #
Set the value of the “tabs
” property.
When overloading is enabled, this is equivalent to
set
textView [ #tabs:=
value ]
topMargin
The top margin for text in the text view.
Note that this property is confusingly named. In CSS terms, the value set here is padding, and it is applied in addition to the padding from the theme.
Don't confuse this property with Widget
:margin-top
.
Since: 3.18
constructTextViewTopMargin :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “top-margin
” property. This is rarely needed directly, but it is used by new
.
getTextViewTopMargin :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
Get the value of the “top-margin
” property.
When overloading is enabled, this is equivalent to
get
textView #topMargin
setTextViewTopMargin :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
Set the value of the “top-margin
” property.
When overloading is enabled, this is equivalent to
set
textView [ #topMargin:=
value ]
wrapMode
No description available in the introspection data.
constructTextViewWrapMode :: IsTextView o => WrapMode -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “wrap-mode
” property. This is rarely needed directly, but it is used by new
.
getTextViewWrapMode :: (MonadIO m, IsTextView o) => o -> m WrapMode Source #
Get the value of the “wrap-mode
” property.
When overloading is enabled, this is equivalent to
get
textView #wrapMode
setTextViewWrapMode :: (MonadIO m, IsTextView o) => o -> WrapMode -> m () Source #
Set the value of the “wrap-mode
” property.
When overloading is enabled, this is equivalent to
set
textView [ #wrapMode:=
value ]
Signals
backspace
type C_TextViewBackspaceCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TextViewBackspaceCallback = IO () Source #
The ::backspace signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user asks for it.
The default bindings for this signal are Backspace and Shift-Backspace.
afterTextViewBackspace :: (IsTextView a, MonadIO m) => a -> TextViewBackspaceCallback -> m SignalHandlerId Source #
Connect a signal handler for the “backspace
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
textView #backspace callback
genClosure_TextViewBackspace :: TextViewBackspaceCallback -> IO Closure Source #
Wrap the callback into a Closure
.
mk_TextViewBackspaceCallback :: C_TextViewBackspaceCallback -> IO (FunPtr C_TextViewBackspaceCallback) Source #
Generate a function pointer callable from C code, from a C_TextViewBackspaceCallback
.
noTextViewBackspaceCallback :: Maybe TextViewBackspaceCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TextViewBackspaceCallback
onTextViewBackspace :: (IsTextView a, MonadIO m) => a -> TextViewBackspaceCallback -> m SignalHandlerId Source #
Connect a signal handler for the “backspace
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
textView #backspace callback
wrap_TextViewBackspaceCallback :: TextViewBackspaceCallback -> C_TextViewBackspaceCallback Source #
Wrap a TextViewBackspaceCallback
into a C_TextViewBackspaceCallback
.
copyClipboard
type C_TextViewCopyClipboardCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TextViewCopyClipboardCallback = IO () Source #
The ::copy-clipboard signal is a [keybinding signal][GtkBindingSignal] which gets emitted to copy the selection to the clipboard.
The default bindings for this signal are Ctrl-c and Ctrl-Insert.
afterTextViewCopyClipboard :: (IsTextView a, MonadIO m) => a -> TextViewCopyClipboardCallback -> m SignalHandlerId Source #
Connect a signal handler for the “copy-clipboard
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
textView #copyClipboard callback
genClosure_TextViewCopyClipboard :: TextViewCopyClipboardCallback -> IO Closure Source #
Wrap the callback into a Closure
.
mk_TextViewCopyClipboardCallback :: C_TextViewCopyClipboardCallback -> IO (FunPtr C_TextViewCopyClipboardCallback) Source #
Generate a function pointer callable from C code, from a C_TextViewCopyClipboardCallback
.
noTextViewCopyClipboardCallback :: Maybe TextViewCopyClipboardCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TextViewCopyClipboardCallback
onTextViewCopyClipboard :: (IsTextView a, MonadIO m) => a -> TextViewCopyClipboardCallback -> m SignalHandlerId Source #
Connect a signal handler for the “copy-clipboard
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
textView #copyClipboard callback
wrap_TextViewCopyClipboardCallback :: TextViewCopyClipboardCallback -> C_TextViewCopyClipboardCallback Source #
Wrap a TextViewCopyClipboardCallback
into a C_TextViewCopyClipboardCallback
.
cutClipboard
type C_TextViewCutClipboardCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TextViewCutClipboardCallback = IO () Source #
The ::cut-clipboard signal is a [keybinding signal][GtkBindingSignal] which gets emitted to cut the selection to the clipboard.
The default bindings for this signal are Ctrl-x and Shift-Delete.
afterTextViewCutClipboard :: (IsTextView a, MonadIO m) => a -> TextViewCutClipboardCallback -> m SignalHandlerId Source #
Connect a signal handler for the “cut-clipboard
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
textView #cutClipboard callback
genClosure_TextViewCutClipboard :: TextViewCutClipboardCallback -> IO Closure Source #
Wrap the callback into a Closure
.
mk_TextViewCutClipboardCallback :: C_TextViewCutClipboardCallback -> IO (FunPtr C_TextViewCutClipboardCallback) Source #
Generate a function pointer callable from C code, from a C_TextViewCutClipboardCallback
.
noTextViewCutClipboardCallback :: Maybe TextViewCutClipboardCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TextViewCutClipboardCallback
onTextViewCutClipboard :: (IsTextView a, MonadIO m) => a -> TextViewCutClipboardCallback -> m SignalHandlerId Source #
Connect a signal handler for the “cut-clipboard
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
textView #cutClipboard callback
wrap_TextViewCutClipboardCallback :: TextViewCutClipboardCallback -> C_TextViewCutClipboardCallback Source #
Wrap a TextViewCutClipboardCallback
into a C_TextViewCutClipboardCallback
.
deleteFromCursor
type C_TextViewDeleteFromCursorCallback = Ptr () -> CUInt -> Int32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TextViewDeleteFromCursorCallback Source #
= DeleteType |
|
-> Int32 |
|
-> IO () |
The ::delete-from-cursor signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user initiates a text deletion.
If the type
is DeleteTypeChars
, GTK+ deletes the selection
if there is one, otherwise it deletes the requested number
of characters.
The default bindings for this signal are Delete for deleting a character, Ctrl-Delete for deleting a word and Ctrl-Backspace for deleting a word backwords.
afterTextViewDeleteFromCursor :: (IsTextView a, MonadIO m) => a -> TextViewDeleteFromCursorCallback -> m SignalHandlerId Source #
Connect a signal handler for the “delete-from-cursor
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
textView #deleteFromCursor callback
genClosure_TextViewDeleteFromCursor :: TextViewDeleteFromCursorCallback -> IO Closure Source #
Wrap the callback into a Closure
.
mk_TextViewDeleteFromCursorCallback :: C_TextViewDeleteFromCursorCallback -> IO (FunPtr C_TextViewDeleteFromCursorCallback) Source #
Generate a function pointer callable from C code, from a C_TextViewDeleteFromCursorCallback
.
noTextViewDeleteFromCursorCallback :: Maybe TextViewDeleteFromCursorCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TextViewDeleteFromCursorCallback
onTextViewDeleteFromCursor :: (IsTextView a, MonadIO m) => a -> TextViewDeleteFromCursorCallback -> m SignalHandlerId Source #
Connect a signal handler for the “delete-from-cursor
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
textView #deleteFromCursor callback
wrap_TextViewDeleteFromCursorCallback :: TextViewDeleteFromCursorCallback -> C_TextViewDeleteFromCursorCallback Source #
extendSelection
type C_TextViewExtendSelectionCallback = Ptr () -> CUInt -> Ptr TextIter -> Ptr TextIter -> Ptr TextIter -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type TextViewExtendSelectionCallback Source #
= TextExtendSelection |
|
-> TextIter |
|
-> TextIter |
|
-> TextIter |
|
-> IO Bool | Returns: |
The ::extend-selection signal is emitted when the selection needs to be
extended at location
.
Since: 3.16
afterTextViewExtendSelection :: (IsTextView a, MonadIO m) => a -> TextViewExtendSelectionCallback -> m SignalHandlerId Source #
Connect a signal handler for the “extend-selection
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
textView #extendSelection callback
genClosure_TextViewExtendSelection :: TextViewExtendSelectionCallback -> IO Closure Source #
Wrap the callback into a Closure
.
mk_TextViewExtendSelectionCallback :: C_TextViewExtendSelectionCallback -> IO (FunPtr C_TextViewExtendSelectionCallback) Source #
Generate a function pointer callable from C code, from a C_TextViewExtendSelectionCallback
.
noTextViewExtendSelectionCallback :: Maybe TextViewExtendSelectionCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TextViewExtendSelectionCallback
onTextViewExtendSelection :: (IsTextView a, MonadIO m) => a -> TextViewExtendSelectionCallback -> m SignalHandlerId Source #
Connect a signal handler for the “extend-selection
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
textView #extendSelection callback
wrap_TextViewExtendSelectionCallback :: TextViewExtendSelectionCallback -> C_TextViewExtendSelectionCallback Source #
Wrap a TextViewExtendSelectionCallback
into a C_TextViewExtendSelectionCallback
.
insertAtCursor
type C_TextViewInsertAtCursorCallback = Ptr () -> CString -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TextViewInsertAtCursorCallback Source #
The ::insert-at-cursor signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user initiates the insertion of a fixed string at the cursor.
This signal has no default bindings.
afterTextViewInsertAtCursor :: (IsTextView a, MonadIO m) => a -> TextViewInsertAtCursorCallback -> m SignalHandlerId Source #
Connect a signal handler for the “insert-at-cursor
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
textView #insertAtCursor callback
genClosure_TextViewInsertAtCursor :: TextViewInsertAtCursorCallback -> IO Closure Source #
Wrap the callback into a Closure
.
mk_TextViewInsertAtCursorCallback :: C_TextViewInsertAtCursorCallback -> IO (FunPtr C_TextViewInsertAtCursorCallback) Source #
Generate a function pointer callable from C code, from a C_TextViewInsertAtCursorCallback
.
noTextViewInsertAtCursorCallback :: Maybe TextViewInsertAtCursorCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TextViewInsertAtCursorCallback
onTextViewInsertAtCursor :: (IsTextView a, MonadIO m) => a -> TextViewInsertAtCursorCallback -> m SignalHandlerId Source #
Connect a signal handler for the “insert-at-cursor
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
textView #insertAtCursor callback
wrap_TextViewInsertAtCursorCallback :: TextViewInsertAtCursorCallback -> C_TextViewInsertAtCursorCallback Source #
Wrap a TextViewInsertAtCursorCallback
into a C_TextViewInsertAtCursorCallback
.
insertEmoji
type C_TextViewInsertEmojiCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TextViewInsertEmojiCallback = IO () Source #
The ::insert-emoji signal is a
[keybinding signal][GtkBindingSignal]
which gets emitted to present the Emoji chooser for the textView
.
The default bindings for this signal are Ctrl-. and Ctrl-;
Since: 3.22.27
afterTextViewInsertEmoji :: (IsTextView a, MonadIO m) => a -> TextViewInsertEmojiCallback -> m SignalHandlerId Source #
Connect a signal handler for the “insert-emoji
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
textView #insertEmoji callback
genClosure_TextViewInsertEmoji :: TextViewInsertEmojiCallback -> IO Closure Source #
Wrap the callback into a Closure
.
mk_TextViewInsertEmojiCallback :: C_TextViewInsertEmojiCallback -> IO (FunPtr C_TextViewInsertEmojiCallback) Source #
Generate a function pointer callable from C code, from a C_TextViewInsertEmojiCallback
.
noTextViewInsertEmojiCallback :: Maybe TextViewInsertEmojiCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TextViewInsertEmojiCallback
onTextViewInsertEmoji :: (IsTextView a, MonadIO m) => a -> TextViewInsertEmojiCallback -> m SignalHandlerId Source #
Connect a signal handler for the “insert-emoji
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
textView #insertEmoji callback
wrap_TextViewInsertEmojiCallback :: TextViewInsertEmojiCallback -> C_TextViewInsertEmojiCallback Source #
Wrap a TextViewInsertEmojiCallback
into a C_TextViewInsertEmojiCallback
.
moveCursor
type C_TextViewMoveCursorCallback = Ptr () -> CUInt -> Int32 -> CInt -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TextViewMoveCursorCallback Source #
= MovementStep |
|
-> Int32 |
|
-> Bool |
|
-> IO () |
The ::move-cursor signal is a
[keybinding signal][GtkBindingSignal]
which gets emitted when the user initiates a cursor movement.
If the cursor is not visible in textView
, this signal causes
the viewport to be moved instead.
Applications should not connect to it, but may emit it with
g_signal_emit_by_name()
if they need to control the cursor
programmatically.
The default bindings for this signal come in two variants, the variant with the Shift modifier extends the selection, the variant without the Shift modifer does not. There are too many key combinations to list them all here.
- Arrow keys move by individual characters/lines
- Ctrl-arrow key combinations move by words/paragraphs
- Home/End keys move to the ends of the buffer
- PageUp/PageDown keys move vertically by pages
- Ctrl-PageUp/PageDown keys move horizontally by pages
afterTextViewMoveCursor :: (IsTextView a, MonadIO m) => a -> TextViewMoveCursorCallback -> m SignalHandlerId Source #
Connect a signal handler for the “move-cursor
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
textView #moveCursor callback
genClosure_TextViewMoveCursor :: TextViewMoveCursorCallback -> IO Closure Source #
Wrap the callback into a Closure
.
mk_TextViewMoveCursorCallback :: C_TextViewMoveCursorCallback -> IO (FunPtr C_TextViewMoveCursorCallback) Source #
Generate a function pointer callable from C code, from a C_TextViewMoveCursorCallback
.
noTextViewMoveCursorCallback :: Maybe TextViewMoveCursorCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TextViewMoveCursorCallback
onTextViewMoveCursor :: (IsTextView a, MonadIO m) => a -> TextViewMoveCursorCallback -> m SignalHandlerId Source #
Connect a signal handler for the “move-cursor
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
textView #moveCursor callback
wrap_TextViewMoveCursorCallback :: TextViewMoveCursorCallback -> C_TextViewMoveCursorCallback Source #
Wrap a TextViewMoveCursorCallback
into a C_TextViewMoveCursorCallback
.
moveViewport
type C_TextViewMoveViewportCallback = Ptr () -> CUInt -> Int32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TextViewMoveViewportCallback Source #
= ScrollStep |
|
-> Int32 |
|
-> IO () |
The ::move-viewport signal is a [keybinding signal][GtkBindingSignal] which can be bound to key combinations to allow the user to move the viewport, i.e. change what part of the text view is visible in a containing scrolled window.
There are no default bindings for this signal.
afterTextViewMoveViewport :: (IsTextView a, MonadIO m) => a -> TextViewMoveViewportCallback -> m SignalHandlerId Source #
Connect a signal handler for the “move-viewport
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
textView #moveViewport callback
genClosure_TextViewMoveViewport :: TextViewMoveViewportCallback -> IO Closure Source #
Wrap the callback into a Closure
.
mk_TextViewMoveViewportCallback :: C_TextViewMoveViewportCallback -> IO (FunPtr C_TextViewMoveViewportCallback) Source #
Generate a function pointer callable from C code, from a C_TextViewMoveViewportCallback
.
noTextViewMoveViewportCallback :: Maybe TextViewMoveViewportCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TextViewMoveViewportCallback
onTextViewMoveViewport :: (IsTextView a, MonadIO m) => a -> TextViewMoveViewportCallback -> m SignalHandlerId Source #
Connect a signal handler for the “move-viewport
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
textView #moveViewport callback
wrap_TextViewMoveViewportCallback :: TextViewMoveViewportCallback -> C_TextViewMoveViewportCallback Source #
Wrap a TextViewMoveViewportCallback
into a C_TextViewMoveViewportCallback
.
pasteClipboard
type C_TextViewPasteClipboardCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TextViewPasteClipboardCallback = IO () Source #
The ::paste-clipboard signal is a [keybinding signal][GtkBindingSignal] which gets emitted to paste the contents of the clipboard into the text view.
The default bindings for this signal are Ctrl-v and Shift-Insert.
afterTextViewPasteClipboard :: (IsTextView a, MonadIO m) => a -> TextViewPasteClipboardCallback -> m SignalHandlerId Source #
Connect a signal handler for the “paste-clipboard
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
textView #pasteClipboard callback
genClosure_TextViewPasteClipboard :: TextViewPasteClipboardCallback -> IO Closure Source #
Wrap the callback into a Closure
.
mk_TextViewPasteClipboardCallback :: C_TextViewPasteClipboardCallback -> IO (FunPtr C_TextViewPasteClipboardCallback) Source #
Generate a function pointer callable from C code, from a C_TextViewPasteClipboardCallback
.
noTextViewPasteClipboardCallback :: Maybe TextViewPasteClipboardCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TextViewPasteClipboardCallback
onTextViewPasteClipboard :: (IsTextView a, MonadIO m) => a -> TextViewPasteClipboardCallback -> m SignalHandlerId Source #
Connect a signal handler for the “paste-clipboard
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
textView #pasteClipboard callback
wrap_TextViewPasteClipboardCallback :: TextViewPasteClipboardCallback -> C_TextViewPasteClipboardCallback Source #
Wrap a TextViewPasteClipboardCallback
into a C_TextViewPasteClipboardCallback
.
populatePopup
type C_TextViewPopulatePopupCallback = Ptr () -> Ptr Widget -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TextViewPopulatePopupCallback Source #
The ::populate-popup signal gets emitted before showing the context menu of the text view.
If you need to add items to the context menu, connect
to this signal and append your items to the popup
, which
will be a Menu
in this case.
If TextView
:populate-all
is True
, this signal will
also be emitted to populate touch popups. In this case,
popup
will be a different container, e.g. a Toolbar
.
The signal handler should not make assumptions about the
type of widget
, but check whether popup
is a Menu
or Toolbar
or another kind of container.
afterTextViewPopulatePopup :: (IsTextView a, MonadIO m) => a -> TextViewPopulatePopupCallback -> m SignalHandlerId Source #
Connect a signal handler for the “populate-popup
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
textView #populatePopup callback
genClosure_TextViewPopulatePopup :: TextViewPopulatePopupCallback -> IO Closure Source #
Wrap the callback into a Closure
.
mk_TextViewPopulatePopupCallback :: C_TextViewPopulatePopupCallback -> IO (FunPtr C_TextViewPopulatePopupCallback) Source #
Generate a function pointer callable from C code, from a C_TextViewPopulatePopupCallback
.
noTextViewPopulatePopupCallback :: Maybe TextViewPopulatePopupCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TextViewPopulatePopupCallback
onTextViewPopulatePopup :: (IsTextView a, MonadIO m) => a -> TextViewPopulatePopupCallback -> m SignalHandlerId Source #
Connect a signal handler for the “populate-popup
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
textView #populatePopup callback
wrap_TextViewPopulatePopupCallback :: TextViewPopulatePopupCallback -> C_TextViewPopulatePopupCallback Source #
Wrap a TextViewPopulatePopupCallback
into a C_TextViewPopulatePopupCallback
.
preeditChanged
type C_TextViewPreeditChangedCallback = Ptr () -> CString -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TextViewPreeditChangedCallback Source #
If an input method is used, the typed text will not immediately be committed to the buffer. So if you are interested in the text, connect to this signal.
This signal is only emitted if the text at the given position is actually editable.
Since: 2.20
afterTextViewPreeditChanged :: (IsTextView a, MonadIO m) => a -> TextViewPreeditChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “preedit-changed
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
textView #preeditChanged callback
genClosure_TextViewPreeditChanged :: TextViewPreeditChangedCallback -> IO Closure Source #
Wrap the callback into a Closure
.
mk_TextViewPreeditChangedCallback :: C_TextViewPreeditChangedCallback -> IO (FunPtr C_TextViewPreeditChangedCallback) Source #
Generate a function pointer callable from C code, from a C_TextViewPreeditChangedCallback
.
noTextViewPreeditChangedCallback :: Maybe TextViewPreeditChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TextViewPreeditChangedCallback
onTextViewPreeditChanged :: (IsTextView a, MonadIO m) => a -> TextViewPreeditChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “preedit-changed
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
textView #preeditChanged callback
wrap_TextViewPreeditChangedCallback :: TextViewPreeditChangedCallback -> C_TextViewPreeditChangedCallback Source #
Wrap a TextViewPreeditChangedCallback
into a C_TextViewPreeditChangedCallback
.
selectAll
type C_TextViewSelectAllCallback = Ptr () -> CInt -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TextViewSelectAllCallback Source #
The ::select-all signal is a [keybinding signal][GtkBindingSignal] which gets emitted to select or unselect the complete contents of the text view.
The default bindings for this signal are Ctrl-a and Ctrl-/ for selecting and Shift-Ctrl-a and Ctrl-\ for unselecting.
afterTextViewSelectAll :: (IsTextView a, MonadIO m) => a -> TextViewSelectAllCallback -> m SignalHandlerId Source #
Connect a signal handler for the “select-all
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
textView #selectAll callback
genClosure_TextViewSelectAll :: TextViewSelectAllCallback -> IO Closure Source #
Wrap the callback into a Closure
.
mk_TextViewSelectAllCallback :: C_TextViewSelectAllCallback -> IO (FunPtr C_TextViewSelectAllCallback) Source #
Generate a function pointer callable from C code, from a C_TextViewSelectAllCallback
.
noTextViewSelectAllCallback :: Maybe TextViewSelectAllCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TextViewSelectAllCallback
onTextViewSelectAll :: (IsTextView a, MonadIO m) => a -> TextViewSelectAllCallback -> m SignalHandlerId Source #
Connect a signal handler for the “select-all
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
textView #selectAll callback
wrap_TextViewSelectAllCallback :: TextViewSelectAllCallback -> C_TextViewSelectAllCallback Source #
Wrap a TextViewSelectAllCallback
into a C_TextViewSelectAllCallback
.
setAnchor
type C_TextViewSetAnchorCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TextViewSetAnchorCallback = IO () Source #
The ::set-anchor signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user initiates setting the "anchor" mark. The "anchor" mark gets placed at the same position as the "insert" mark.
This signal has no default bindings.
afterTextViewSetAnchor :: (IsTextView a, MonadIO m) => a -> TextViewSetAnchorCallback -> m SignalHandlerId Source #
Connect a signal handler for the “set-anchor
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
textView #setAnchor callback
genClosure_TextViewSetAnchor :: TextViewSetAnchorCallback -> IO Closure Source #
Wrap the callback into a Closure
.
mk_TextViewSetAnchorCallback :: C_TextViewSetAnchorCallback -> IO (FunPtr C_TextViewSetAnchorCallback) Source #
Generate a function pointer callable from C code, from a C_TextViewSetAnchorCallback
.
noTextViewSetAnchorCallback :: Maybe TextViewSetAnchorCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TextViewSetAnchorCallback
onTextViewSetAnchor :: (IsTextView a, MonadIO m) => a -> TextViewSetAnchorCallback -> m SignalHandlerId Source #
Connect a signal handler for the “set-anchor
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
textView #setAnchor callback
wrap_TextViewSetAnchorCallback :: TextViewSetAnchorCallback -> C_TextViewSetAnchorCallback Source #
Wrap a TextViewSetAnchorCallback
into a C_TextViewSetAnchorCallback
.
toggleCursorVisible
type C_TextViewToggleCursorVisibleCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TextViewToggleCursorVisibleCallback = IO () Source #
The ::toggle-cursor-visible signal is a
[keybinding signal][GtkBindingSignal]
which gets emitted to toggle the TextView
:cursor-visible
property.
The default binding for this signal is F7.
afterTextViewToggleCursorVisible :: (IsTextView a, MonadIO m) => a -> TextViewToggleCursorVisibleCallback -> m SignalHandlerId Source #
Connect a signal handler for the “toggle-cursor-visible
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
textView #toggleCursorVisible callback
genClosure_TextViewToggleCursorVisible :: TextViewToggleCursorVisibleCallback -> IO Closure Source #
Wrap the callback into a Closure
.
mk_TextViewToggleCursorVisibleCallback :: C_TextViewToggleCursorVisibleCallback -> IO (FunPtr C_TextViewToggleCursorVisibleCallback) Source #
Generate a function pointer callable from C code, from a C_TextViewToggleCursorVisibleCallback
.
noTextViewToggleCursorVisibleCallback :: Maybe TextViewToggleCursorVisibleCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TextViewToggleCursorVisibleCallback
onTextViewToggleCursorVisible :: (IsTextView a, MonadIO m) => a -> TextViewToggleCursorVisibleCallback -> m SignalHandlerId Source #
Connect a signal handler for the “toggle-cursor-visible
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
textView #toggleCursorVisible callback
wrap_TextViewToggleCursorVisibleCallback :: TextViewToggleCursorVisibleCallback -> C_TextViewToggleCursorVisibleCallback Source #
toggleOverwrite
type C_TextViewToggleOverwriteCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TextViewToggleOverwriteCallback = IO () Source #
The ::toggle-overwrite signal is a [keybinding signal][GtkBindingSignal] which gets emitted to toggle the overwrite mode of the text view.
The default bindings for this signal is Insert.
afterTextViewToggleOverwrite :: (IsTextView a, MonadIO m) => a -> TextViewToggleOverwriteCallback -> m SignalHandlerId Source #
Connect a signal handler for the “toggle-overwrite
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
textView #toggleOverwrite callback
genClosure_TextViewToggleOverwrite :: TextViewToggleOverwriteCallback -> IO Closure Source #
Wrap the callback into a Closure
.
mk_TextViewToggleOverwriteCallback :: C_TextViewToggleOverwriteCallback -> IO (FunPtr C_TextViewToggleOverwriteCallback) Source #
Generate a function pointer callable from C code, from a C_TextViewToggleOverwriteCallback
.
noTextViewToggleOverwriteCallback :: Maybe TextViewToggleOverwriteCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TextViewToggleOverwriteCallback
onTextViewToggleOverwrite :: (IsTextView a, MonadIO m) => a -> TextViewToggleOverwriteCallback -> m SignalHandlerId Source #
Connect a signal handler for the “toggle-overwrite
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
textView #toggleOverwrite callback