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.
- newtype TextView = TextView (ManagedPtr TextView)
- class GObject o => IsTextView o
- toTextView :: IsTextView o => o -> IO TextView
- noTextView :: Maybe TextView
- data TextViewAddChildAtAnchorMethodInfo
- textViewAddChildAtAnchor :: (HasCallStack, MonadIO m, IsTextView a, IsWidget b, IsTextChildAnchor c) => a -> b -> c -> m ()
- data TextViewAddChildInWindowMethodInfo
- textViewAddChildInWindow :: (HasCallStack, MonadIO m, IsTextView a, IsWidget b) => a -> b -> TextWindowType -> Int32 -> Int32 -> m ()
- data TextViewBackwardDisplayLineMethodInfo
- textViewBackwardDisplayLine :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextIter -> m Bool
- data TextViewBackwardDisplayLineStartMethodInfo
- textViewBackwardDisplayLineStart :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextIter -> m Bool
- data TextViewBufferToWindowCoordsMethodInfo
- textViewBufferToWindowCoords :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextWindowType -> Int32 -> Int32 -> m (Int32, Int32)
- data TextViewForwardDisplayLineMethodInfo
- textViewForwardDisplayLine :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextIter -> m Bool
- data TextViewForwardDisplayLineEndMethodInfo
- textViewForwardDisplayLineEnd :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextIter -> m Bool
- data TextViewGetAcceptsTabMethodInfo
- textViewGetAcceptsTab :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Bool
- data TextViewGetBorderWindowSizeMethodInfo
- textViewGetBorderWindowSize :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextWindowType -> m Int32
- data TextViewGetBottomMarginMethodInfo
- textViewGetBottomMargin :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Int32
- data TextViewGetBufferMethodInfo
- textViewGetBuffer :: (HasCallStack, MonadIO m, IsTextView a) => a -> m TextBuffer
- data TextViewGetCursorLocationsMethodInfo
- textViewGetCursorLocations :: (HasCallStack, MonadIO m, IsTextView a) => a -> Maybe TextIter -> m (Rectangle, Rectangle)
- data TextViewGetCursorVisibleMethodInfo
- textViewGetCursorVisible :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Bool
- data TextViewGetDefaultAttributesMethodInfo
- textViewGetDefaultAttributes :: (HasCallStack, MonadIO m, IsTextView a) => a -> m TextAttributes
- data TextViewGetEditableMethodInfo
- textViewGetEditable :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Bool
- data TextViewGetHadjustmentMethodInfo
- textViewGetHadjustment :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Adjustment
- data TextViewGetIndentMethodInfo
- textViewGetIndent :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Int32
- data TextViewGetInputHintsMethodInfo
- textViewGetInputHints :: (HasCallStack, MonadIO m, IsTextView a) => a -> m [InputHints]
- data TextViewGetInputPurposeMethodInfo
- textViewGetInputPurpose :: (HasCallStack, MonadIO m, IsTextView a) => a -> m InputPurpose
- data TextViewGetIterAtLocationMethodInfo
- textViewGetIterAtLocation :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> Int32 -> m (Bool, TextIter)
- data TextViewGetIterAtPositionMethodInfo
- textViewGetIterAtPosition :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> Int32 -> m (Bool, TextIter, Int32)
- data TextViewGetIterLocationMethodInfo
- textViewGetIterLocation :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextIter -> m Rectangle
- data TextViewGetJustificationMethodInfo
- textViewGetJustification :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Justification
- data TextViewGetLeftMarginMethodInfo
- textViewGetLeftMargin :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Int32
- data TextViewGetLineAtYMethodInfo
- textViewGetLineAtY :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> m (TextIter, Int32)
- data TextViewGetLineYrangeMethodInfo
- textViewGetLineYrange :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextIter -> m (Int32, Int32)
- data TextViewGetMonospaceMethodInfo
- textViewGetMonospace :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Bool
- data TextViewGetOverwriteMethodInfo
- textViewGetOverwrite :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Bool
- data TextViewGetPixelsAboveLinesMethodInfo
- textViewGetPixelsAboveLines :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Int32
- data TextViewGetPixelsBelowLinesMethodInfo
- textViewGetPixelsBelowLines :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Int32
- data TextViewGetPixelsInsideWrapMethodInfo
- textViewGetPixelsInsideWrap :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Int32
- data TextViewGetRightMarginMethodInfo
- textViewGetRightMargin :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Int32
- data TextViewGetTabsMethodInfo
- textViewGetTabs :: (HasCallStack, MonadIO m, IsTextView a) => a -> m (Maybe TabArray)
- data TextViewGetTopMarginMethodInfo
- textViewGetTopMargin :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Int32
- data TextViewGetVadjustmentMethodInfo
- textViewGetVadjustment :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Adjustment
- data TextViewGetVisibleRectMethodInfo
- textViewGetVisibleRect :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Rectangle
- data TextViewGetWindowMethodInfo
- textViewGetWindow :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextWindowType -> m (Maybe Window)
- data TextViewGetWindowTypeMethodInfo
- textViewGetWindowType :: (HasCallStack, MonadIO m, IsTextView a, IsWindow b) => a -> b -> m TextWindowType
- data TextViewGetWrapModeMethodInfo
- textViewGetWrapMode :: (HasCallStack, MonadIO m, IsTextView a) => a -> m WrapMode
- data TextViewImContextFilterKeypressMethodInfo
- textViewImContextFilterKeypress :: (HasCallStack, MonadIO m, IsTextView a) => a -> EventKey -> m Bool
- data TextViewMoveChildMethodInfo
- textViewMoveChild :: (HasCallStack, MonadIO m, IsTextView a, IsWidget b) => a -> b -> Int32 -> Int32 -> m ()
- data TextViewMoveMarkOnscreenMethodInfo
- textViewMoveMarkOnscreen :: (HasCallStack, MonadIO m, IsTextView a, IsTextMark b) => a -> b -> m Bool
- data TextViewMoveVisuallyMethodInfo
- 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
- data TextViewPlaceCursorOnscreenMethodInfo
- textViewPlaceCursorOnscreen :: (HasCallStack, MonadIO m, IsTextView a) => a -> m Bool
- data TextViewResetCursorBlinkMethodInfo
- textViewResetCursorBlink :: (HasCallStack, MonadIO m, IsTextView a) => a -> m ()
- data TextViewResetImContextMethodInfo
- textViewResetImContext :: (HasCallStack, MonadIO m, IsTextView a) => a -> m ()
- data TextViewScrollMarkOnscreenMethodInfo
- textViewScrollMarkOnscreen :: (HasCallStack, MonadIO m, IsTextView a, IsTextMark b) => a -> b -> m ()
- data TextViewScrollToIterMethodInfo
- textViewScrollToIter :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextIter -> Double -> Bool -> Double -> Double -> m Bool
- data TextViewScrollToMarkMethodInfo
- textViewScrollToMark :: (HasCallStack, MonadIO m, IsTextView a, IsTextMark b) => a -> b -> Double -> Bool -> Double -> Double -> m ()
- data TextViewSetAcceptsTabMethodInfo
- textViewSetAcceptsTab :: (HasCallStack, MonadIO m, IsTextView a) => a -> Bool -> m ()
- data TextViewSetBorderWindowSizeMethodInfo
- textViewSetBorderWindowSize :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextWindowType -> Int32 -> m ()
- data TextViewSetBottomMarginMethodInfo
- textViewSetBottomMargin :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> m ()
- data TextViewSetBufferMethodInfo
- textViewSetBuffer :: (HasCallStack, MonadIO m, IsTextView a, IsTextBuffer b) => a -> Maybe b -> m ()
- data TextViewSetCursorVisibleMethodInfo
- textViewSetCursorVisible :: (HasCallStack, MonadIO m, IsTextView a) => a -> Bool -> m ()
- data TextViewSetEditableMethodInfo
- textViewSetEditable :: (HasCallStack, MonadIO m, IsTextView a) => a -> Bool -> m ()
- data TextViewSetIndentMethodInfo
- textViewSetIndent :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> m ()
- data TextViewSetInputHintsMethodInfo
- textViewSetInputHints :: (HasCallStack, MonadIO m, IsTextView a) => a -> [InputHints] -> m ()
- data TextViewSetInputPurposeMethodInfo
- textViewSetInputPurpose :: (HasCallStack, MonadIO m, IsTextView a) => a -> InputPurpose -> m ()
- data TextViewSetJustificationMethodInfo
- textViewSetJustification :: (HasCallStack, MonadIO m, IsTextView a) => a -> Justification -> m ()
- data TextViewSetLeftMarginMethodInfo
- textViewSetLeftMargin :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> m ()
- data TextViewSetMonospaceMethodInfo
- textViewSetMonospace :: (HasCallStack, MonadIO m, IsTextView a) => a -> Bool -> m ()
- data TextViewSetOverwriteMethodInfo
- textViewSetOverwrite :: (HasCallStack, MonadIO m, IsTextView a) => a -> Bool -> m ()
- data TextViewSetPixelsAboveLinesMethodInfo
- textViewSetPixelsAboveLines :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> m ()
- data TextViewSetPixelsBelowLinesMethodInfo
- textViewSetPixelsBelowLines :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> m ()
- data TextViewSetPixelsInsideWrapMethodInfo
- textViewSetPixelsInsideWrap :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> m ()
- data TextViewSetRightMarginMethodInfo
- textViewSetRightMargin :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> m ()
- data TextViewSetTabsMethodInfo
- textViewSetTabs :: (HasCallStack, MonadIO m, IsTextView a) => a -> TabArray -> m ()
- data TextViewSetTopMarginMethodInfo
- textViewSetTopMargin :: (HasCallStack, MonadIO m, IsTextView a) => a -> Int32 -> m ()
- data TextViewSetWrapModeMethodInfo
- textViewSetWrapMode :: (HasCallStack, MonadIO m, IsTextView a) => a -> WrapMode -> m ()
- data TextViewStartsDisplayLineMethodInfo
- textViewStartsDisplayLine :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextIter -> m Bool
- data TextViewWindowToBufferCoordsMethodInfo
- textViewWindowToBufferCoords :: (HasCallStack, MonadIO m, IsTextView a) => a -> TextWindowType -> Int32 -> Int32 -> m (Int32, Int32)
- data TextViewAcceptsTabPropertyInfo
- constructTextViewAcceptsTab :: IsTextView o => Bool -> IO (GValueConstruct o)
- getTextViewAcceptsTab :: (MonadIO m, IsTextView o) => o -> m Bool
- setTextViewAcceptsTab :: (MonadIO m, IsTextView o) => o -> Bool -> m ()
- textViewAcceptsTab :: AttrLabelProxy "acceptsTab"
- data TextViewBottomMarginPropertyInfo
- constructTextViewBottomMargin :: IsTextView o => Int32 -> IO (GValueConstruct o)
- getTextViewBottomMargin :: (MonadIO m, IsTextView o) => o -> m Int32
- setTextViewBottomMargin :: (MonadIO m, IsTextView o) => o -> Int32 -> m ()
- textViewBottomMargin :: AttrLabelProxy "bottomMargin"
- data TextViewBufferPropertyInfo
- 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 ()
- textViewBuffer :: AttrLabelProxy "buffer"
- data TextViewCursorVisiblePropertyInfo
- constructTextViewCursorVisible :: IsTextView o => Bool -> IO (GValueConstruct o)
- getTextViewCursorVisible :: (MonadIO m, IsTextView o) => o -> m Bool
- setTextViewCursorVisible :: (MonadIO m, IsTextView o) => o -> Bool -> m ()
- textViewCursorVisible :: AttrLabelProxy "cursorVisible"
- data TextViewEditablePropertyInfo
- constructTextViewEditable :: IsTextView o => Bool -> IO (GValueConstruct o)
- getTextViewEditable :: (MonadIO m, IsTextView o) => o -> m Bool
- setTextViewEditable :: (MonadIO m, IsTextView o) => o -> Bool -> m ()
- textViewEditable :: AttrLabelProxy "editable"
- data TextViewImModulePropertyInfo
- 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 ()
- textViewImModule :: AttrLabelProxy "imModule"
- data TextViewIndentPropertyInfo
- constructTextViewIndent :: IsTextView o => Int32 -> IO (GValueConstruct o)
- getTextViewIndent :: (MonadIO m, IsTextView o) => o -> m Int32
- setTextViewIndent :: (MonadIO m, IsTextView o) => o -> Int32 -> m ()
- textViewIndent :: AttrLabelProxy "indent"
- data TextViewInputHintsPropertyInfo
- constructTextViewInputHints :: IsTextView o => [InputHints] -> IO (GValueConstruct o)
- getTextViewInputHints :: (MonadIO m, IsTextView o) => o -> m [InputHints]
- setTextViewInputHints :: (MonadIO m, IsTextView o) => o -> [InputHints] -> m ()
- textViewInputHints :: AttrLabelProxy "inputHints"
- data TextViewInputPurposePropertyInfo
- constructTextViewInputPurpose :: IsTextView o => InputPurpose -> IO (GValueConstruct o)
- getTextViewInputPurpose :: (MonadIO m, IsTextView o) => o -> m InputPurpose
- setTextViewInputPurpose :: (MonadIO m, IsTextView o) => o -> InputPurpose -> m ()
- textViewInputPurpose :: AttrLabelProxy "inputPurpose"
- data TextViewJustificationPropertyInfo
- constructTextViewJustification :: IsTextView o => Justification -> IO (GValueConstruct o)
- getTextViewJustification :: (MonadIO m, IsTextView o) => o -> m Justification
- setTextViewJustification :: (MonadIO m, IsTextView o) => o -> Justification -> m ()
- textViewJustification :: AttrLabelProxy "justification"
- data TextViewLeftMarginPropertyInfo
- constructTextViewLeftMargin :: IsTextView o => Int32 -> IO (GValueConstruct o)
- getTextViewLeftMargin :: (MonadIO m, IsTextView o) => o -> m Int32
- setTextViewLeftMargin :: (MonadIO m, IsTextView o) => o -> Int32 -> m ()
- textViewLeftMargin :: AttrLabelProxy "leftMargin"
- data TextViewMonospacePropertyInfo
- constructTextViewMonospace :: IsTextView o => Bool -> IO (GValueConstruct o)
- getTextViewMonospace :: (MonadIO m, IsTextView o) => o -> m Bool
- setTextViewMonospace :: (MonadIO m, IsTextView o) => o -> Bool -> m ()
- textViewMonospace :: AttrLabelProxy "monospace"
- data TextViewOverwritePropertyInfo
- constructTextViewOverwrite :: IsTextView o => Bool -> IO (GValueConstruct o)
- getTextViewOverwrite :: (MonadIO m, IsTextView o) => o -> m Bool
- setTextViewOverwrite :: (MonadIO m, IsTextView o) => o -> Bool -> m ()
- textViewOverwrite :: AttrLabelProxy "overwrite"
- data TextViewPixelsAboveLinesPropertyInfo
- constructTextViewPixelsAboveLines :: IsTextView o => Int32 -> IO (GValueConstruct o)
- getTextViewPixelsAboveLines :: (MonadIO m, IsTextView o) => o -> m Int32
- setTextViewPixelsAboveLines :: (MonadIO m, IsTextView o) => o -> Int32 -> m ()
- textViewPixelsAboveLines :: AttrLabelProxy "pixelsAboveLines"
- data TextViewPixelsBelowLinesPropertyInfo
- constructTextViewPixelsBelowLines :: IsTextView o => Int32 -> IO (GValueConstruct o)
- getTextViewPixelsBelowLines :: (MonadIO m, IsTextView o) => o -> m Int32
- setTextViewPixelsBelowLines :: (MonadIO m, IsTextView o) => o -> Int32 -> m ()
- textViewPixelsBelowLines :: AttrLabelProxy "pixelsBelowLines"
- data TextViewPixelsInsideWrapPropertyInfo
- constructTextViewPixelsInsideWrap :: IsTextView o => Int32 -> IO (GValueConstruct o)
- getTextViewPixelsInsideWrap :: (MonadIO m, IsTextView o) => o -> m Int32
- setTextViewPixelsInsideWrap :: (MonadIO m, IsTextView o) => o -> Int32 -> m ()
- textViewPixelsInsideWrap :: AttrLabelProxy "pixelsInsideWrap"
- data TextViewPopulateAllPropertyInfo
- constructTextViewPopulateAll :: IsTextView o => Bool -> IO (GValueConstruct o)
- getTextViewPopulateAll :: (MonadIO m, IsTextView o) => o -> m Bool
- setTextViewPopulateAll :: (MonadIO m, IsTextView o) => o -> Bool -> m ()
- textViewPopulateAll :: AttrLabelProxy "populateAll"
- data TextViewRightMarginPropertyInfo
- constructTextViewRightMargin :: IsTextView o => Int32 -> IO (GValueConstruct o)
- getTextViewRightMargin :: (MonadIO m, IsTextView o) => o -> m Int32
- setTextViewRightMargin :: (MonadIO m, IsTextView o) => o -> Int32 -> m ()
- textViewRightMargin :: AttrLabelProxy "rightMargin"
- data TextViewTabsPropertyInfo
- constructTextViewTabs :: IsTextView o => TabArray -> IO (GValueConstruct o)
- getTextViewTabs :: (MonadIO m, IsTextView o) => o -> m (Maybe TabArray)
- setTextViewTabs :: (MonadIO m, IsTextView o) => o -> TabArray -> m ()
- textViewTabs :: AttrLabelProxy "tabs"
- data TextViewTopMarginPropertyInfo
- constructTextViewTopMargin :: IsTextView o => Int32 -> IO (GValueConstruct o)
- getTextViewTopMargin :: (MonadIO m, IsTextView o) => o -> m Int32
- setTextViewTopMargin :: (MonadIO m, IsTextView o) => o -> Int32 -> m ()
- textViewTopMargin :: AttrLabelProxy "topMargin"
- data TextViewWrapModePropertyInfo
- constructTextViewWrapMode :: IsTextView o => WrapMode -> IO (GValueConstruct o)
- getTextViewWrapMode :: (MonadIO m, IsTextView o) => o -> m WrapMode
- setTextViewWrapMode :: (MonadIO m, IsTextView o) => o -> WrapMode -> m ()
- textViewWrapMode :: AttrLabelProxy "wrapMode"
- type C_TextViewBackspaceCallback = Ptr () -> Ptr () -> IO ()
- type TextViewBackspaceCallback = IO ()
- data TextViewBackspaceSignalInfo
- afterTextViewBackspace :: (GObject a, MonadIO m) => a -> TextViewBackspaceCallback -> m SignalHandlerId
- genClosure_TextViewBackspace :: TextViewBackspaceCallback -> IO Closure
- mk_TextViewBackspaceCallback :: C_TextViewBackspaceCallback -> IO (FunPtr C_TextViewBackspaceCallback)
- noTextViewBackspaceCallback :: Maybe TextViewBackspaceCallback
- onTextViewBackspace :: (GObject a, MonadIO m) => a -> TextViewBackspaceCallback -> m SignalHandlerId
- wrap_TextViewBackspaceCallback :: TextViewBackspaceCallback -> Ptr () -> Ptr () -> IO ()
- type C_TextViewCopyClipboardCallback = Ptr () -> Ptr () -> IO ()
- type TextViewCopyClipboardCallback = IO ()
- data TextViewCopyClipboardSignalInfo
- afterTextViewCopyClipboard :: (GObject a, MonadIO m) => a -> TextViewCopyClipboardCallback -> m SignalHandlerId
- genClosure_TextViewCopyClipboard :: TextViewCopyClipboardCallback -> IO Closure
- mk_TextViewCopyClipboardCallback :: C_TextViewCopyClipboardCallback -> IO (FunPtr C_TextViewCopyClipboardCallback)
- noTextViewCopyClipboardCallback :: Maybe TextViewCopyClipboardCallback
- onTextViewCopyClipboard :: (GObject a, MonadIO m) => a -> TextViewCopyClipboardCallback -> m SignalHandlerId
- wrap_TextViewCopyClipboardCallback :: TextViewCopyClipboardCallback -> Ptr () -> Ptr () -> IO ()
- type C_TextViewCutClipboardCallback = Ptr () -> Ptr () -> IO ()
- type TextViewCutClipboardCallback = IO ()
- data TextViewCutClipboardSignalInfo
- afterTextViewCutClipboard :: (GObject a, MonadIO m) => a -> TextViewCutClipboardCallback -> m SignalHandlerId
- genClosure_TextViewCutClipboard :: TextViewCutClipboardCallback -> IO Closure
- mk_TextViewCutClipboardCallback :: C_TextViewCutClipboardCallback -> IO (FunPtr C_TextViewCutClipboardCallback)
- noTextViewCutClipboardCallback :: Maybe TextViewCutClipboardCallback
- onTextViewCutClipboard :: (GObject a, MonadIO m) => a -> TextViewCutClipboardCallback -> m SignalHandlerId
- wrap_TextViewCutClipboardCallback :: TextViewCutClipboardCallback -> Ptr () -> Ptr () -> IO ()
- type C_TextViewDeleteFromCursorCallback = Ptr () -> CUInt -> Int32 -> Ptr () -> IO ()
- type TextViewDeleteFromCursorCallback = DeleteType -> Int32 -> IO ()
- data TextViewDeleteFromCursorSignalInfo
- afterTextViewDeleteFromCursor :: (GObject a, MonadIO m) => a -> TextViewDeleteFromCursorCallback -> m SignalHandlerId
- genClosure_TextViewDeleteFromCursor :: TextViewDeleteFromCursorCallback -> IO Closure
- mk_TextViewDeleteFromCursorCallback :: C_TextViewDeleteFromCursorCallback -> IO (FunPtr C_TextViewDeleteFromCursorCallback)
- noTextViewDeleteFromCursorCallback :: Maybe TextViewDeleteFromCursorCallback
- onTextViewDeleteFromCursor :: (GObject a, MonadIO m) => a -> TextViewDeleteFromCursorCallback -> m SignalHandlerId
- wrap_TextViewDeleteFromCursorCallback :: TextViewDeleteFromCursorCallback -> Ptr () -> CUInt -> Int32 -> Ptr () -> IO ()
- type C_TextViewExtendSelectionCallback = Ptr () -> CUInt -> Ptr TextIter -> Ptr TextIter -> Ptr TextIter -> Ptr () -> IO CInt
- type TextViewExtendSelectionCallback = TextExtendSelection -> TextIter -> TextIter -> TextIter -> IO Bool
- data TextViewExtendSelectionSignalInfo
- afterTextViewExtendSelection :: (GObject a, MonadIO m) => a -> TextViewExtendSelectionCallback -> m SignalHandlerId
- genClosure_TextViewExtendSelection :: TextViewExtendSelectionCallback -> IO Closure
- mk_TextViewExtendSelectionCallback :: C_TextViewExtendSelectionCallback -> IO (FunPtr C_TextViewExtendSelectionCallback)
- noTextViewExtendSelectionCallback :: Maybe TextViewExtendSelectionCallback
- onTextViewExtendSelection :: (GObject a, MonadIO m) => a -> TextViewExtendSelectionCallback -> m SignalHandlerId
- wrap_TextViewExtendSelectionCallback :: TextViewExtendSelectionCallback -> Ptr () -> CUInt -> Ptr TextIter -> Ptr TextIter -> Ptr TextIter -> Ptr () -> IO CInt
- type C_TextViewInsertAtCursorCallback = Ptr () -> CString -> Ptr () -> IO ()
- type TextViewInsertAtCursorCallback = Text -> IO ()
- data TextViewInsertAtCursorSignalInfo
- afterTextViewInsertAtCursor :: (GObject a, MonadIO m) => a -> TextViewInsertAtCursorCallback -> m SignalHandlerId
- genClosure_TextViewInsertAtCursor :: TextViewInsertAtCursorCallback -> IO Closure
- mk_TextViewInsertAtCursorCallback :: C_TextViewInsertAtCursorCallback -> IO (FunPtr C_TextViewInsertAtCursorCallback)
- noTextViewInsertAtCursorCallback :: Maybe TextViewInsertAtCursorCallback
- onTextViewInsertAtCursor :: (GObject a, MonadIO m) => a -> TextViewInsertAtCursorCallback -> m SignalHandlerId
- wrap_TextViewInsertAtCursorCallback :: TextViewInsertAtCursorCallback -> Ptr () -> CString -> Ptr () -> IO ()
- type C_TextViewMoveCursorCallback = Ptr () -> CUInt -> Int32 -> CInt -> Ptr () -> IO ()
- type TextViewMoveCursorCallback = MovementStep -> Int32 -> Bool -> IO ()
- data TextViewMoveCursorSignalInfo
- afterTextViewMoveCursor :: (GObject a, MonadIO m) => a -> TextViewMoveCursorCallback -> m SignalHandlerId
- genClosure_TextViewMoveCursor :: TextViewMoveCursorCallback -> IO Closure
- mk_TextViewMoveCursorCallback :: C_TextViewMoveCursorCallback -> IO (FunPtr C_TextViewMoveCursorCallback)
- noTextViewMoveCursorCallback :: Maybe TextViewMoveCursorCallback
- onTextViewMoveCursor :: (GObject a, MonadIO m) => a -> TextViewMoveCursorCallback -> m SignalHandlerId
- wrap_TextViewMoveCursorCallback :: TextViewMoveCursorCallback -> Ptr () -> CUInt -> Int32 -> CInt -> Ptr () -> IO ()
- type C_TextViewMoveViewportCallback = Ptr () -> CUInt -> Int32 -> Ptr () -> IO ()
- type TextViewMoveViewportCallback = ScrollStep -> Int32 -> IO ()
- data TextViewMoveViewportSignalInfo
- afterTextViewMoveViewport :: (GObject a, MonadIO m) => a -> TextViewMoveViewportCallback -> m SignalHandlerId
- genClosure_TextViewMoveViewport :: TextViewMoveViewportCallback -> IO Closure
- mk_TextViewMoveViewportCallback :: C_TextViewMoveViewportCallback -> IO (FunPtr C_TextViewMoveViewportCallback)
- noTextViewMoveViewportCallback :: Maybe TextViewMoveViewportCallback
- onTextViewMoveViewport :: (GObject a, MonadIO m) => a -> TextViewMoveViewportCallback -> m SignalHandlerId
- wrap_TextViewMoveViewportCallback :: TextViewMoveViewportCallback -> Ptr () -> CUInt -> Int32 -> Ptr () -> IO ()
- type C_TextViewPasteClipboardCallback = Ptr () -> Ptr () -> IO ()
- type TextViewPasteClipboardCallback = IO ()
- data TextViewPasteClipboardSignalInfo
- afterTextViewPasteClipboard :: (GObject a, MonadIO m) => a -> TextViewPasteClipboardCallback -> m SignalHandlerId
- genClosure_TextViewPasteClipboard :: TextViewPasteClipboardCallback -> IO Closure
- mk_TextViewPasteClipboardCallback :: C_TextViewPasteClipboardCallback -> IO (FunPtr C_TextViewPasteClipboardCallback)
- noTextViewPasteClipboardCallback :: Maybe TextViewPasteClipboardCallback
- onTextViewPasteClipboard :: (GObject a, MonadIO m) => a -> TextViewPasteClipboardCallback -> m SignalHandlerId
- wrap_TextViewPasteClipboardCallback :: TextViewPasteClipboardCallback -> Ptr () -> Ptr () -> IO ()
- type C_TextViewPopulatePopupCallback = Ptr () -> Ptr Widget -> Ptr () -> IO ()
- type TextViewPopulatePopupCallback = Widget -> IO ()
- data TextViewPopulatePopupSignalInfo
- afterTextViewPopulatePopup :: (GObject a, MonadIO m) => a -> TextViewPopulatePopupCallback -> m SignalHandlerId
- genClosure_TextViewPopulatePopup :: TextViewPopulatePopupCallback -> IO Closure
- mk_TextViewPopulatePopupCallback :: C_TextViewPopulatePopupCallback -> IO (FunPtr C_TextViewPopulatePopupCallback)
- noTextViewPopulatePopupCallback :: Maybe TextViewPopulatePopupCallback
- onTextViewPopulatePopup :: (GObject a, MonadIO m) => a -> TextViewPopulatePopupCallback -> m SignalHandlerId
- wrap_TextViewPopulatePopupCallback :: TextViewPopulatePopupCallback -> Ptr () -> Ptr Widget -> Ptr () -> IO ()
- type C_TextViewPreeditChangedCallback = Ptr () -> CString -> Ptr () -> IO ()
- type TextViewPreeditChangedCallback = Text -> IO ()
- data TextViewPreeditChangedSignalInfo
- afterTextViewPreeditChanged :: (GObject a, MonadIO m) => a -> TextViewPreeditChangedCallback -> m SignalHandlerId
- genClosure_TextViewPreeditChanged :: TextViewPreeditChangedCallback -> IO Closure
- mk_TextViewPreeditChangedCallback :: C_TextViewPreeditChangedCallback -> IO (FunPtr C_TextViewPreeditChangedCallback)
- noTextViewPreeditChangedCallback :: Maybe TextViewPreeditChangedCallback
- onTextViewPreeditChanged :: (GObject a, MonadIO m) => a -> TextViewPreeditChangedCallback -> m SignalHandlerId
- wrap_TextViewPreeditChangedCallback :: TextViewPreeditChangedCallback -> Ptr () -> CString -> Ptr () -> IO ()
- type C_TextViewSelectAllCallback = Ptr () -> CInt -> Ptr () -> IO ()
- type TextViewSelectAllCallback = Bool -> IO ()
- data TextViewSelectAllSignalInfo
- afterTextViewSelectAll :: (GObject a, MonadIO m) => a -> TextViewSelectAllCallback -> m SignalHandlerId
- genClosure_TextViewSelectAll :: TextViewSelectAllCallback -> IO Closure
- mk_TextViewSelectAllCallback :: C_TextViewSelectAllCallback -> IO (FunPtr C_TextViewSelectAllCallback)
- noTextViewSelectAllCallback :: Maybe TextViewSelectAllCallback
- onTextViewSelectAll :: (GObject a, MonadIO m) => a -> TextViewSelectAllCallback -> m SignalHandlerId
- wrap_TextViewSelectAllCallback :: TextViewSelectAllCallback -> Ptr () -> CInt -> Ptr () -> IO ()
- type C_TextViewSetAnchorCallback = Ptr () -> Ptr () -> IO ()
- type TextViewSetAnchorCallback = IO ()
- data TextViewSetAnchorSignalInfo
- afterTextViewSetAnchor :: (GObject a, MonadIO m) => a -> TextViewSetAnchorCallback -> m SignalHandlerId
- genClosure_TextViewSetAnchor :: TextViewSetAnchorCallback -> IO Closure
- mk_TextViewSetAnchorCallback :: C_TextViewSetAnchorCallback -> IO (FunPtr C_TextViewSetAnchorCallback)
- noTextViewSetAnchorCallback :: Maybe TextViewSetAnchorCallback
- onTextViewSetAnchor :: (GObject a, MonadIO m) => a -> TextViewSetAnchorCallback -> m SignalHandlerId
- wrap_TextViewSetAnchorCallback :: TextViewSetAnchorCallback -> Ptr () -> Ptr () -> IO ()
- type C_TextViewToggleCursorVisibleCallback = Ptr () -> Ptr () -> IO ()
- type TextViewToggleCursorVisibleCallback = IO ()
- data TextViewToggleCursorVisibleSignalInfo
- afterTextViewToggleCursorVisible :: (GObject a, MonadIO m) => a -> TextViewToggleCursorVisibleCallback -> m SignalHandlerId
- genClosure_TextViewToggleCursorVisible :: TextViewToggleCursorVisibleCallback -> IO Closure
- mk_TextViewToggleCursorVisibleCallback :: C_TextViewToggleCursorVisibleCallback -> IO (FunPtr C_TextViewToggleCursorVisibleCallback)
- noTextViewToggleCursorVisibleCallback :: Maybe TextViewToggleCursorVisibleCallback
- onTextViewToggleCursorVisible :: (GObject a, MonadIO m) => a -> TextViewToggleCursorVisibleCallback -> m SignalHandlerId
- wrap_TextViewToggleCursorVisibleCallback :: TextViewToggleCursorVisibleCallback -> Ptr () -> Ptr () -> IO ()
- type C_TextViewToggleOverwriteCallback = Ptr () -> Ptr () -> IO ()
- type TextViewToggleOverwriteCallback = IO ()
- data TextViewToggleOverwriteSignalInfo
- afterTextViewToggleOverwrite :: (GObject a, MonadIO m) => a -> TextViewToggleOverwriteCallback -> m SignalHandlerId
- genClosure_TextViewToggleOverwrite :: TextViewToggleOverwriteCallback -> IO Closure
- mk_TextViewToggleOverwriteCallback :: C_TextViewToggleOverwriteCallback -> IO (FunPtr C_TextViewToggleOverwriteCallback)
- noTextViewToggleOverwriteCallback :: Maybe TextViewToggleOverwriteCallback
- onTextViewToggleOverwrite :: (GObject a, MonadIO m) => a -> TextViewToggleOverwriteCallback -> m SignalHandlerId
- wrap_TextViewToggleOverwriteCallback :: TextViewToggleOverwriteCallback -> Ptr () -> Ptr () -> IO ()
Exported types
GObject TextView Source # | |
IsImplementorIface TextView Source # | |
IsObject TextView Source # | |
IsWidget TextView Source # | |
IsContainer TextView Source # | |
IsScrollable TextView Source # | |
IsBuildable TextView Source # | |
IsTextView TextView Source # | |
((~) * info (ResolveTextViewMethod t TextView), MethodInfo * info TextView p) => IsLabel t (TextView -> p) Source # | |
((~) * info (ResolveTextViewMethod t TextView), MethodInfo * info TextView p) => IsLabelProxy t (TextView -> p) Source # | |
HasAttributeList * TextView Source # | |
type AttributeList TextView Source # | |
type SignalList TextView Source # | |
class GObject o => IsTextView o Source #
(GObject a, UnknownAncestorError Constraint TextView a) => IsTextView a Source # | |
IsTextView TextView Source # | |
toTextView :: IsTextView o => o -> IO TextView Source #
Methods
addChildAtAnchor
data TextViewAddChildAtAnchorMethodInfo Source #
((~) * signature (b -> c -> m ()), MonadIO m, IsTextView a, IsWidget b, IsTextChildAnchor c) => MethodInfo * TextViewAddChildAtAnchorMethodInfo a signature Source # | |
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
data TextViewAddChildInWindowMethodInfo Source #
((~) * signature (b -> TextWindowType -> Int32 -> Int32 -> m ()), MonadIO m, IsTextView a, IsWidget b) => MethodInfo * TextViewAddChildInWindowMethodInfo a signature Source # | |
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
data TextViewBackwardDisplayLineMethodInfo Source #
((~) * signature (TextIter -> m Bool), MonadIO m, IsTextView a) => MethodInfo * TextViewBackwardDisplayLineMethodInfo a signature Source # | |
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
data TextViewBackwardDisplayLineStartMethodInfo Source #
((~) * signature (TextIter -> m Bool), MonadIO m, IsTextView a) => MethodInfo * TextViewBackwardDisplayLineStartMethodInfo a signature Source # | |
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
data TextViewBufferToWindowCoordsMethodInfo Source #
((~) * signature (TextWindowType -> Int32 -> Int32 -> m (Int32, Int32)), MonadIO m, IsTextView a) => MethodInfo * TextViewBufferToWindowCoordsMethodInfo a signature Source # | |
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
data TextViewForwardDisplayLineMethodInfo Source #
((~) * signature (TextIter -> m Bool), MonadIO m, IsTextView a) => MethodInfo * TextViewForwardDisplayLineMethodInfo a signature Source # | |
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
data TextViewForwardDisplayLineEndMethodInfo Source #
((~) * signature (TextIter -> m Bool), MonadIO m, IsTextView a) => MethodInfo * TextViewForwardDisplayLineEndMethodInfo a signature Source # | |
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
data TextViewGetAcceptsTabMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsTextView a) => MethodInfo * TextViewGetAcceptsTabMethodInfo a signature Source # | |
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
data TextViewGetBorderWindowSizeMethodInfo Source #
((~) * signature (TextWindowType -> m Int32), MonadIO m, IsTextView a) => MethodInfo * TextViewGetBorderWindowSizeMethodInfo a signature Source # | |
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
data TextViewGetBottomMarginMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsTextView a) => MethodInfo * TextViewGetBottomMarginMethodInfo a signature Source # | |
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
data TextViewGetBufferMethodInfo Source #
((~) * signature (m TextBuffer), MonadIO m, IsTextView a) => MethodInfo * TextViewGetBufferMethodInfo a signature Source # | |
:: (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
data TextViewGetCursorLocationsMethodInfo Source #
((~) * signature (Maybe TextIter -> m (Rectangle, Rectangle)), MonadIO m, IsTextView a) => MethodInfo * TextViewGetCursorLocationsMethodInfo a signature Source # | |
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
data TextViewGetCursorVisibleMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsTextView a) => MethodInfo * TextViewGetCursorVisibleMethodInfo a signature Source # | |
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
data TextViewGetDefaultAttributesMethodInfo Source #
((~) * signature (m TextAttributes), MonadIO m, IsTextView a) => MethodInfo * TextViewGetDefaultAttributesMethodInfo a signature Source # | |
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
data TextViewGetEditableMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsTextView a) => MethodInfo * TextViewGetEditableMethodInfo a signature Source # | |
:: (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
data TextViewGetHadjustmentMethodInfo Source #
((~) * signature (m Adjustment), MonadIO m, IsTextView a) => MethodInfo * TextViewGetHadjustmentMethodInfo a signature Source # | |
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
data TextViewGetIndentMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsTextView a) => MethodInfo * TextViewGetIndentMethodInfo a signature Source # | |
:: (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
data TextViewGetInputHintsMethodInfo Source #
((~) * signature (m [InputHints]), MonadIO m, IsTextView a) => MethodInfo * TextViewGetInputHintsMethodInfo a signature Source # | |
textViewGetInputHints Source #
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m [InputHints] |
Gets the value of the TextView
:input-hints
property.
Since: 3.6
getInputPurpose
data TextViewGetInputPurposeMethodInfo Source #
((~) * signature (m InputPurpose), MonadIO m, IsTextView a) => MethodInfo * TextViewGetInputPurposeMethodInfo a signature Source # | |
textViewGetInputPurpose Source #
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m InputPurpose |
Gets the value of the TextView
:input-purpose
property.
Since: 3.6
getIterAtLocation
data TextViewGetIterAtLocationMethodInfo Source #
((~) * signature (Int32 -> Int32 -> m (Bool, TextIter)), MonadIO m, IsTextView a) => MethodInfo * TextViewGetIterAtLocationMethodInfo a signature Source # | |
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
data TextViewGetIterAtPositionMethodInfo Source #
((~) * signature (Int32 -> Int32 -> m (Bool, TextIter, Int32)), MonadIO m, IsTextView a) => MethodInfo * TextViewGetIterAtPositionMethodInfo a signature Source # | |
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
data TextViewGetIterLocationMethodInfo Source #
((~) * signature (TextIter -> m Rectangle), MonadIO m, IsTextView a) => MethodInfo * TextViewGetIterLocationMethodInfo a signature Source # | |
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
data TextViewGetJustificationMethodInfo Source #
((~) * signature (m Justification), MonadIO m, IsTextView a) => MethodInfo * TextViewGetJustificationMethodInfo a signature Source # | |
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
data TextViewGetLeftMarginMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsTextView a) => MethodInfo * TextViewGetLeftMarginMethodInfo a signature Source # | |
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
data TextViewGetLineAtYMethodInfo Source #
((~) * signature (Int32 -> m (TextIter, Int32)), MonadIO m, IsTextView a) => MethodInfo * TextViewGetLineAtYMethodInfo a signature Source # | |
:: (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
data TextViewGetLineYrangeMethodInfo Source #
((~) * signature (TextIter -> m (Int32, Int32)), MonadIO m, IsTextView a) => MethodInfo * TextViewGetLineYrangeMethodInfo a signature Source # | |
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
data TextViewGetMonospaceMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsTextView a) => MethodInfo * TextViewGetMonospaceMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Bool | Returns: |
Gets the value of the TextView
:monospace
property.
Since: 3.16
getOverwrite
data TextViewGetOverwriteMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsTextView a) => MethodInfo * TextViewGetOverwriteMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m Bool | Returns: whether |
Returns whether the TextView
is in overwrite mode or not.
Since: 2.4
getPixelsAboveLines
data TextViewGetPixelsAboveLinesMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsTextView a) => MethodInfo * TextViewGetPixelsAboveLinesMethodInfo a signature Source # | |
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
data TextViewGetPixelsBelowLinesMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsTextView a) => MethodInfo * TextViewGetPixelsBelowLinesMethodInfo a signature Source # | |
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
data TextViewGetPixelsInsideWrapMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsTextView a) => MethodInfo * TextViewGetPixelsInsideWrapMethodInfo a signature Source # | |
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
data TextViewGetRightMarginMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsTextView a) => MethodInfo * TextViewGetRightMarginMethodInfo a signature Source # | |
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
data TextViewGetTabsMethodInfo Source #
((~) * signature (m (Maybe TabArray)), MonadIO m, IsTextView a) => MethodInfo * TextViewGetTabsMethodInfo a signature Source # | |
:: (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
data TextViewGetTopMarginMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsTextView a) => MethodInfo * TextViewGetTopMarginMethodInfo a signature Source # | |
:: (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
data TextViewGetVadjustmentMethodInfo Source #
((~) * signature (m Adjustment), MonadIO m, IsTextView a) => MethodInfo * TextViewGetVadjustmentMethodInfo a signature Source # | |
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
data TextViewGetVisibleRectMethodInfo Source #
((~) * signature (m Rectangle), MonadIO m, IsTextView a) => MethodInfo * TextViewGetVisibleRectMethodInfo a signature Source # | |
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
data TextViewGetWindowMethodInfo Source #
((~) * signature (TextWindowType -> m (Maybe Window)), MonadIO m, IsTextView a) => MethodInfo * TextViewGetWindowMethodInfo a signature Source # | |
:: (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
data TextViewGetWindowTypeMethodInfo Source #
((~) * signature (b -> m TextWindowType), MonadIO m, IsTextView a, IsWindow b) => MethodInfo * TextViewGetWindowTypeMethodInfo a signature Source # | |
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
data TextViewGetWrapModeMethodInfo Source #
((~) * signature (m WrapMode), MonadIO m, IsTextView a) => MethodInfo * TextViewGetWrapModeMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> m WrapMode | Returns: the line wrap setting |
Gets the line wrapping for the view.
imContextFilterKeypress
data TextViewImContextFilterKeypressMethodInfo Source #
((~) * signature (EventKey -> m Bool), MonadIO m, IsTextView a) => MethodInfo * TextViewImContextFilterKeypressMethodInfo a signature Source # | |
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) { if ((key->keyval == GDK_KEY_Return || key->keyval == GDK_KEY_KP_Enter)) { if (gtk_text_view_im_context_filter_keypress (GTK_TEXT_VIEW (view), event)) return TRUE; } // Do some stuff return GTK_WIDGET_CLASS (gtk_foo_bar_parent_class)->key_press_event (widget, event); }
Since: 2.22
moveChild
data TextViewMoveChildMethodInfo Source #
((~) * signature (b -> Int32 -> Int32 -> m ()), MonadIO m, IsTextView a, IsWidget b) => MethodInfo * TextViewMoveChildMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsTextView a, IsWidget b) | |
=> a |
|
-> b |
|
-> Int32 |
|
-> Int32 |
|
-> m () |
Updates the position of a child, as for textViewAddChildInWindow
.
moveMarkOnscreen
data TextViewMoveMarkOnscreenMethodInfo Source #
((~) * signature (b -> m Bool), MonadIO m, IsTextView a, IsTextMark b) => MethodInfo * TextViewMoveMarkOnscreenMethodInfo a signature Source # | |
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
data TextViewMoveVisuallyMethodInfo Source #
((~) * signature (TextIter -> Int32 -> m Bool), MonadIO m, IsTextView a) => MethodInfo * TextViewMoveVisuallyMethodInfo a signature Source # | |
:: (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
data TextViewPlaceCursorOnscreenMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsTextView a) => MethodInfo * TextViewPlaceCursorOnscreenMethodInfo a signature Source # | |
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
data TextViewResetCursorBlinkMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewResetCursorBlinkMethodInfo a signature Source # | |
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
data TextViewResetImContextMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewResetImContextMethodInfo a signature Source # | |
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
data TextViewScrollMarkOnscreenMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsTextView a, IsTextMark b) => MethodInfo * TextViewScrollMarkOnscreenMethodInfo a signature Source # | |
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
data TextViewScrollToIterMethodInfo Source #
((~) * signature (TextIter -> Double -> Bool -> Double -> Double -> m Bool), MonadIO m, IsTextView a) => MethodInfo * TextViewScrollToIterMethodInfo a signature Source # | |
:: (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
data TextViewScrollToMarkMethodInfo Source #
((~) * signature (b -> Double -> Bool -> Double -> Double -> m ()), MonadIO m, IsTextView a, IsTextMark b) => MethodInfo * TextViewScrollToMarkMethodInfo a signature Source # | |
:: (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
data TextViewSetAcceptsTabMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewSetAcceptsTabMethodInfo a signature Source # | |
textViewSetAcceptsTab Source #
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Bool |
|
-> m () |
setBorderWindowSize
data TextViewSetBorderWindowSizeMethodInfo Source #
((~) * signature (TextWindowType -> Int32 -> m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewSetBorderWindowSizeMethodInfo a signature Source # | |
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,” it doesn’t work
with GTK_TEXT_WINDOW_WIDGET
, GTK_TEXT_WINDOW_TEXT
, or
GTK_TEXT_WINDOW_PRIVATE
.
setBottomMargin
data TextViewSetBottomMarginMethodInfo Source #
((~) * signature (Int32 -> m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewSetBottomMarginMethodInfo a signature Source # | |
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
data TextViewSetBufferMethodInfo Source #
((~) * signature (Maybe b -> m ()), MonadIO m, IsTextView a, IsTextBuffer b) => MethodInfo * TextViewSetBufferMethodInfo a signature Source # | |
:: (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
data TextViewSetCursorVisibleMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewSetCursorVisibleMethodInfo a signature Source # | |
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
data TextViewSetEditableMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewSetEditableMethodInfo a signature Source # | |
:: (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
data TextViewSetIndentMethodInfo Source #
((~) * signature (Int32 -> m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewSetIndentMethodInfo a signature Source # | |
:: (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
data TextViewSetInputHintsMethodInfo Source #
((~) * signature ([InputHints] -> m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewSetInputHintsMethodInfo a signature Source # | |
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
data TextViewSetInputPurposeMethodInfo Source #
((~) * signature (InputPurpose -> m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewSetInputPurposeMethodInfo a signature Source # | |
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
data TextViewSetJustificationMethodInfo Source #
((~) * signature (Justification -> m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewSetJustificationMethodInfo a signature Source # | |
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
data TextViewSetLeftMarginMethodInfo Source #
((~) * signature (Int32 -> m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewSetLeftMarginMethodInfo a signature Source # | |
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
data TextViewSetMonospaceMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewSetMonospaceMethodInfo a signature Source # | |
:: (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
data TextViewSetOverwriteMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewSetOverwriteMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> Bool |
|
-> m () |
Changes the TextView
overwrite mode.
Since: 2.4
setPixelsAboveLines
data TextViewSetPixelsAboveLinesMethodInfo Source #
((~) * signature (Int32 -> m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewSetPixelsAboveLinesMethodInfo a signature Source # | |
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
data TextViewSetPixelsBelowLinesMethodInfo Source #
((~) * signature (Int32 -> m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewSetPixelsBelowLinesMethodInfo a signature Source # | |
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
data TextViewSetPixelsInsideWrapMethodInfo Source #
((~) * signature (Int32 -> m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewSetPixelsInsideWrapMethodInfo a signature Source # | |
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
data TextViewSetRightMarginMethodInfo Source #
((~) * signature (Int32 -> m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewSetRightMarginMethodInfo a signature Source # | |
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
data TextViewSetTabsMethodInfo Source #
((~) * signature (TabArray -> m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewSetTabsMethodInfo a signature Source # | |
:: (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
data TextViewSetTopMarginMethodInfo Source #
((~) * signature (Int32 -> m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewSetTopMarginMethodInfo a signature Source # | |
:: (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
data TextViewSetWrapModeMethodInfo Source #
((~) * signature (WrapMode -> m ()), MonadIO m, IsTextView a) => MethodInfo * TextViewSetWrapModeMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsTextView a) | |
=> a |
|
-> WrapMode |
|
-> m () |
Sets the line wrapping for the view.
startsDisplayLine
data TextViewStartsDisplayLineMethodInfo Source #
((~) * signature (TextIter -> m Bool), MonadIO m, IsTextView a) => MethodInfo * TextViewStartsDisplayLineMethodInfo a signature Source # | |
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
data TextViewWindowToBufferCoordsMethodInfo Source #
((~) * signature (TextWindowType -> Int32 -> Int32 -> m (Int32, Int32)), MonadIO m, IsTextView a) => MethodInfo * TextViewWindowToBufferCoordsMethodInfo a signature Source # | |
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
data TextViewAcceptsTabPropertyInfo Source #
constructTextViewAcceptsTab :: IsTextView o => Bool -> IO (GValueConstruct o) Source #
getTextViewAcceptsTab :: (MonadIO m, IsTextView o) => o -> m Bool Source #
setTextViewAcceptsTab :: (MonadIO m, IsTextView o) => o -> Bool -> m () Source #
textViewAcceptsTab :: AttrLabelProxy "acceptsTab" Source #
bottomMargin
data TextViewBottomMarginPropertyInfo Source #
constructTextViewBottomMargin :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
getTextViewBottomMargin :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
setTextViewBottomMargin :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
textViewBottomMargin :: AttrLabelProxy "bottomMargin" Source #
buffer
data TextViewBufferPropertyInfo Source #
clearTextViewBuffer :: (MonadIO m, IsTextView o) => o -> m () Source #
constructTextViewBuffer :: (IsTextView o, IsTextBuffer a) => a -> IO (GValueConstruct o) Source #
getTextViewBuffer :: (MonadIO m, IsTextView o) => o -> m TextBuffer Source #
setTextViewBuffer :: (MonadIO m, IsTextView o, IsTextBuffer a) => o -> a -> m () Source #
textViewBuffer :: AttrLabelProxy "buffer" Source #
cursorVisible
data TextViewCursorVisiblePropertyInfo Source #
constructTextViewCursorVisible :: IsTextView o => Bool -> IO (GValueConstruct o) Source #
getTextViewCursorVisible :: (MonadIO m, IsTextView o) => o -> m Bool Source #
setTextViewCursorVisible :: (MonadIO m, IsTextView o) => o -> Bool -> m () Source #
textViewCursorVisible :: AttrLabelProxy "cursorVisible" Source #
editable
data TextViewEditablePropertyInfo Source #
constructTextViewEditable :: IsTextView o => Bool -> IO (GValueConstruct o) Source #
getTextViewEditable :: (MonadIO m, IsTextView o) => o -> m Bool Source #
setTextViewEditable :: (MonadIO m, IsTextView o) => o -> Bool -> m () Source #
textViewEditable :: AttrLabelProxy "editable" Source #
imModule
data TextViewImModulePropertyInfo Source #
clearTextViewImModule :: (MonadIO m, IsTextView o) => o -> m () Source #
constructTextViewImModule :: IsTextView o => Text -> IO (GValueConstruct o) Source #
getTextViewImModule :: (MonadIO m, IsTextView o) => o -> m (Maybe Text) Source #
setTextViewImModule :: (MonadIO m, IsTextView o) => o -> Text -> m () Source #
textViewImModule :: AttrLabelProxy "imModule" Source #
indent
data TextViewIndentPropertyInfo Source #
constructTextViewIndent :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
getTextViewIndent :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
setTextViewIndent :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
textViewIndent :: AttrLabelProxy "indent" Source #
inputHints
data TextViewInputHintsPropertyInfo Source #
constructTextViewInputHints :: IsTextView o => [InputHints] -> IO (GValueConstruct o) Source #
getTextViewInputHints :: (MonadIO m, IsTextView o) => o -> m [InputHints] Source #
setTextViewInputHints :: (MonadIO m, IsTextView o) => o -> [InputHints] -> m () Source #
textViewInputHints :: AttrLabelProxy "inputHints" Source #
inputPurpose
data TextViewInputPurposePropertyInfo Source #
constructTextViewInputPurpose :: IsTextView o => InputPurpose -> IO (GValueConstruct o) Source #
getTextViewInputPurpose :: (MonadIO m, IsTextView o) => o -> m InputPurpose Source #
setTextViewInputPurpose :: (MonadIO m, IsTextView o) => o -> InputPurpose -> m () Source #
textViewInputPurpose :: AttrLabelProxy "inputPurpose" Source #
justification
data TextViewJustificationPropertyInfo Source #
constructTextViewJustification :: IsTextView o => Justification -> IO (GValueConstruct o) Source #
getTextViewJustification :: (MonadIO m, IsTextView o) => o -> m Justification Source #
setTextViewJustification :: (MonadIO m, IsTextView o) => o -> Justification -> m () Source #
textViewJustification :: AttrLabelProxy "justification" Source #
leftMargin
data TextViewLeftMarginPropertyInfo Source #
constructTextViewLeftMargin :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
getTextViewLeftMargin :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
setTextViewLeftMargin :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
textViewLeftMargin :: AttrLabelProxy "leftMargin" Source #
monospace
data TextViewMonospacePropertyInfo Source #
constructTextViewMonospace :: IsTextView o => Bool -> IO (GValueConstruct o) Source #
getTextViewMonospace :: (MonadIO m, IsTextView o) => o -> m Bool Source #
setTextViewMonospace :: (MonadIO m, IsTextView o) => o -> Bool -> m () Source #
textViewMonospace :: AttrLabelProxy "monospace" Source #
overwrite
data TextViewOverwritePropertyInfo Source #
constructTextViewOverwrite :: IsTextView o => Bool -> IO (GValueConstruct o) Source #
getTextViewOverwrite :: (MonadIO m, IsTextView o) => o -> m Bool Source #
setTextViewOverwrite :: (MonadIO m, IsTextView o) => o -> Bool -> m () Source #
textViewOverwrite :: AttrLabelProxy "overwrite" Source #
pixelsAboveLines
data TextViewPixelsAboveLinesPropertyInfo Source #
constructTextViewPixelsAboveLines :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
getTextViewPixelsAboveLines :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
setTextViewPixelsAboveLines :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
textViewPixelsAboveLines :: AttrLabelProxy "pixelsAboveLines" Source #
pixelsBelowLines
data TextViewPixelsBelowLinesPropertyInfo Source #
constructTextViewPixelsBelowLines :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
getTextViewPixelsBelowLines :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
setTextViewPixelsBelowLines :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
textViewPixelsBelowLines :: AttrLabelProxy "pixelsBelowLines" Source #
pixelsInsideWrap
data TextViewPixelsInsideWrapPropertyInfo Source #
constructTextViewPixelsInsideWrap :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
getTextViewPixelsInsideWrap :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
setTextViewPixelsInsideWrap :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
textViewPixelsInsideWrap :: AttrLabelProxy "pixelsInsideWrap" Source #
populateAll
data TextViewPopulateAllPropertyInfo Source #
constructTextViewPopulateAll :: IsTextView o => Bool -> IO (GValueConstruct o) Source #
getTextViewPopulateAll :: (MonadIO m, IsTextView o) => o -> m Bool Source #
setTextViewPopulateAll :: (MonadIO m, IsTextView o) => o -> Bool -> m () Source #
textViewPopulateAll :: AttrLabelProxy "populateAll" Source #
rightMargin
data TextViewRightMarginPropertyInfo Source #
constructTextViewRightMargin :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
getTextViewRightMargin :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
setTextViewRightMargin :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
textViewRightMargin :: AttrLabelProxy "rightMargin" Source #
tabs
data TextViewTabsPropertyInfo Source #
constructTextViewTabs :: IsTextView o => TabArray -> IO (GValueConstruct o) Source #
getTextViewTabs :: (MonadIO m, IsTextView o) => o -> m (Maybe TabArray) Source #
setTextViewTabs :: (MonadIO m, IsTextView o) => o -> TabArray -> m () Source #
textViewTabs :: AttrLabelProxy "tabs" Source #
topMargin
data TextViewTopMarginPropertyInfo Source #
constructTextViewTopMargin :: IsTextView o => Int32 -> IO (GValueConstruct o) Source #
getTextViewTopMargin :: (MonadIO m, IsTextView o) => o -> m Int32 Source #
setTextViewTopMargin :: (MonadIO m, IsTextView o) => o -> Int32 -> m () Source #
textViewTopMargin :: AttrLabelProxy "topMargin" Source #
wrapMode
data TextViewWrapModePropertyInfo Source #
constructTextViewWrapMode :: IsTextView o => WrapMode -> IO (GValueConstruct o) Source #
getTextViewWrapMode :: (MonadIO m, IsTextView o) => o -> m WrapMode Source #
setTextViewWrapMode :: (MonadIO m, IsTextView o) => o -> WrapMode -> m () Source #
textViewWrapMode :: AttrLabelProxy "wrapMode" Source #
Signals
backspace
type TextViewBackspaceCallback = IO () Source #
afterTextViewBackspace :: (GObject a, MonadIO m) => a -> TextViewBackspaceCallback -> m SignalHandlerId Source #
mk_TextViewBackspaceCallback :: C_TextViewBackspaceCallback -> IO (FunPtr C_TextViewBackspaceCallback) Source #
onTextViewBackspace :: (GObject a, MonadIO m) => a -> TextViewBackspaceCallback -> m SignalHandlerId Source #
wrap_TextViewBackspaceCallback :: TextViewBackspaceCallback -> Ptr () -> Ptr () -> IO () Source #
copyClipboard
type TextViewCopyClipboardCallback = IO () Source #
afterTextViewCopyClipboard :: (GObject a, MonadIO m) => a -> TextViewCopyClipboardCallback -> m SignalHandlerId Source #
mk_TextViewCopyClipboardCallback :: C_TextViewCopyClipboardCallback -> IO (FunPtr C_TextViewCopyClipboardCallback) Source #
onTextViewCopyClipboard :: (GObject a, MonadIO m) => a -> TextViewCopyClipboardCallback -> m SignalHandlerId Source #
wrap_TextViewCopyClipboardCallback :: TextViewCopyClipboardCallback -> Ptr () -> Ptr () -> IO () Source #
cutClipboard
type TextViewCutClipboardCallback = IO () Source #
afterTextViewCutClipboard :: (GObject a, MonadIO m) => a -> TextViewCutClipboardCallback -> m SignalHandlerId Source #
mk_TextViewCutClipboardCallback :: C_TextViewCutClipboardCallback -> IO (FunPtr C_TextViewCutClipboardCallback) Source #
onTextViewCutClipboard :: (GObject a, MonadIO m) => a -> TextViewCutClipboardCallback -> m SignalHandlerId Source #
wrap_TextViewCutClipboardCallback :: TextViewCutClipboardCallback -> Ptr () -> Ptr () -> IO () Source #
deleteFromCursor
type TextViewDeleteFromCursorCallback = DeleteType -> Int32 -> IO () Source #
afterTextViewDeleteFromCursor :: (GObject a, MonadIO m) => a -> TextViewDeleteFromCursorCallback -> m SignalHandlerId Source #
mk_TextViewDeleteFromCursorCallback :: C_TextViewDeleteFromCursorCallback -> IO (FunPtr C_TextViewDeleteFromCursorCallback) Source #
onTextViewDeleteFromCursor :: (GObject a, MonadIO m) => a -> TextViewDeleteFromCursorCallback -> m SignalHandlerId Source #
wrap_TextViewDeleteFromCursorCallback :: TextViewDeleteFromCursorCallback -> Ptr () -> CUInt -> Int32 -> Ptr () -> IO () Source #
extendSelection
type C_TextViewExtendSelectionCallback = Ptr () -> CUInt -> Ptr TextIter -> Ptr TextIter -> Ptr TextIter -> Ptr () -> IO CInt Source #
type TextViewExtendSelectionCallback = TextExtendSelection -> TextIter -> TextIter -> TextIter -> IO Bool Source #
afterTextViewExtendSelection :: (GObject a, MonadIO m) => a -> TextViewExtendSelectionCallback -> m SignalHandlerId Source #
mk_TextViewExtendSelectionCallback :: C_TextViewExtendSelectionCallback -> IO (FunPtr C_TextViewExtendSelectionCallback) Source #
onTextViewExtendSelection :: (GObject a, MonadIO m) => a -> TextViewExtendSelectionCallback -> m SignalHandlerId Source #
wrap_TextViewExtendSelectionCallback :: TextViewExtendSelectionCallback -> Ptr () -> CUInt -> Ptr TextIter -> Ptr TextIter -> Ptr TextIter -> Ptr () -> IO CInt Source #
insertAtCursor
type TextViewInsertAtCursorCallback = Text -> IO () Source #
afterTextViewInsertAtCursor :: (GObject a, MonadIO m) => a -> TextViewInsertAtCursorCallback -> m SignalHandlerId Source #
mk_TextViewInsertAtCursorCallback :: C_TextViewInsertAtCursorCallback -> IO (FunPtr C_TextViewInsertAtCursorCallback) Source #
onTextViewInsertAtCursor :: (GObject a, MonadIO m) => a -> TextViewInsertAtCursorCallback -> m SignalHandlerId Source #
wrap_TextViewInsertAtCursorCallback :: TextViewInsertAtCursorCallback -> Ptr () -> CString -> Ptr () -> IO () Source #
moveCursor
type TextViewMoveCursorCallback = MovementStep -> Int32 -> Bool -> IO () Source #
afterTextViewMoveCursor :: (GObject a, MonadIO m) => a -> TextViewMoveCursorCallback -> m SignalHandlerId Source #
mk_TextViewMoveCursorCallback :: C_TextViewMoveCursorCallback -> IO (FunPtr C_TextViewMoveCursorCallback) Source #
onTextViewMoveCursor :: (GObject a, MonadIO m) => a -> TextViewMoveCursorCallback -> m SignalHandlerId Source #
wrap_TextViewMoveCursorCallback :: TextViewMoveCursorCallback -> Ptr () -> CUInt -> Int32 -> CInt -> Ptr () -> IO () Source #
moveViewport
type TextViewMoveViewportCallback = ScrollStep -> Int32 -> IO () Source #
afterTextViewMoveViewport :: (GObject a, MonadIO m) => a -> TextViewMoveViewportCallback -> m SignalHandlerId Source #
mk_TextViewMoveViewportCallback :: C_TextViewMoveViewportCallback -> IO (FunPtr C_TextViewMoveViewportCallback) Source #
onTextViewMoveViewport :: (GObject a, MonadIO m) => a -> TextViewMoveViewportCallback -> m SignalHandlerId Source #
wrap_TextViewMoveViewportCallback :: TextViewMoveViewportCallback -> Ptr () -> CUInt -> Int32 -> Ptr () -> IO () Source #
pasteClipboard
type TextViewPasteClipboardCallback = IO () Source #
afterTextViewPasteClipboard :: (GObject a, MonadIO m) => a -> TextViewPasteClipboardCallback -> m SignalHandlerId Source #
mk_TextViewPasteClipboardCallback :: C_TextViewPasteClipboardCallback -> IO (FunPtr C_TextViewPasteClipboardCallback) Source #
onTextViewPasteClipboard :: (GObject a, MonadIO m) => a -> TextViewPasteClipboardCallback -> m SignalHandlerId Source #
wrap_TextViewPasteClipboardCallback :: TextViewPasteClipboardCallback -> Ptr () -> Ptr () -> IO () Source #
populatePopup
type TextViewPopulatePopupCallback = Widget -> IO () Source #
afterTextViewPopulatePopup :: (GObject a, MonadIO m) => a -> TextViewPopulatePopupCallback -> m SignalHandlerId Source #
mk_TextViewPopulatePopupCallback :: C_TextViewPopulatePopupCallback -> IO (FunPtr C_TextViewPopulatePopupCallback) Source #
onTextViewPopulatePopup :: (GObject a, MonadIO m) => a -> TextViewPopulatePopupCallback -> m SignalHandlerId Source #
wrap_TextViewPopulatePopupCallback :: TextViewPopulatePopupCallback -> Ptr () -> Ptr Widget -> Ptr () -> IO () Source #
preeditChanged
type TextViewPreeditChangedCallback = Text -> IO () Source #
afterTextViewPreeditChanged :: (GObject a, MonadIO m) => a -> TextViewPreeditChangedCallback -> m SignalHandlerId Source #
mk_TextViewPreeditChangedCallback :: C_TextViewPreeditChangedCallback -> IO (FunPtr C_TextViewPreeditChangedCallback) Source #
onTextViewPreeditChanged :: (GObject a, MonadIO m) => a -> TextViewPreeditChangedCallback -> m SignalHandlerId Source #
wrap_TextViewPreeditChangedCallback :: TextViewPreeditChangedCallback -> Ptr () -> CString -> Ptr () -> IO () Source #
selectAll
type TextViewSelectAllCallback = Bool -> IO () Source #
afterTextViewSelectAll :: (GObject a, MonadIO m) => a -> TextViewSelectAllCallback -> m SignalHandlerId Source #
mk_TextViewSelectAllCallback :: C_TextViewSelectAllCallback -> IO (FunPtr C_TextViewSelectAllCallback) Source #
onTextViewSelectAll :: (GObject a, MonadIO m) => a -> TextViewSelectAllCallback -> m SignalHandlerId Source #
wrap_TextViewSelectAllCallback :: TextViewSelectAllCallback -> Ptr () -> CInt -> Ptr () -> IO () Source #
setAnchor
type TextViewSetAnchorCallback = IO () Source #
afterTextViewSetAnchor :: (GObject a, MonadIO m) => a -> TextViewSetAnchorCallback -> m SignalHandlerId Source #
mk_TextViewSetAnchorCallback :: C_TextViewSetAnchorCallback -> IO (FunPtr C_TextViewSetAnchorCallback) Source #
onTextViewSetAnchor :: (GObject a, MonadIO m) => a -> TextViewSetAnchorCallback -> m SignalHandlerId Source #
wrap_TextViewSetAnchorCallback :: TextViewSetAnchorCallback -> Ptr () -> Ptr () -> IO () Source #
toggleCursorVisible
type TextViewToggleCursorVisibleCallback = IO () Source #
afterTextViewToggleCursorVisible :: (GObject a, MonadIO m) => a -> TextViewToggleCursorVisibleCallback -> m SignalHandlerId Source #
genClosure_TextViewToggleCursorVisible :: TextViewToggleCursorVisibleCallback -> IO Closure Source #
mk_TextViewToggleCursorVisibleCallback :: C_TextViewToggleCursorVisibleCallback -> IO (FunPtr C_TextViewToggleCursorVisibleCallback) Source #
onTextViewToggleCursorVisible :: (GObject a, MonadIO m) => a -> TextViewToggleCursorVisibleCallback -> m SignalHandlerId Source #
wrap_TextViewToggleCursorVisibleCallback :: TextViewToggleCursorVisibleCallback -> Ptr () -> Ptr () -> IO () Source #
toggleOverwrite
type TextViewToggleOverwriteCallback = IO () Source #
afterTextViewToggleOverwrite :: (GObject a, MonadIO m) => a -> TextViewToggleOverwriteCallback -> m SignalHandlerId Source #
mk_TextViewToggleOverwriteCallback :: C_TextViewToggleOverwriteCallback -> IO (FunPtr C_TextViewToggleOverwriteCallback) Source #
onTextViewToggleOverwrite :: (GObject a, MonadIO m) => a -> TextViewToggleOverwriteCallback -> m SignalHandlerId Source #
wrap_TextViewToggleOverwriteCallback :: TextViewToggleOverwriteCallback -> Ptr () -> Ptr () -> IO () Source #