Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- getAutoIndent
- getBackgroundPattern
- getCompletion
- getDrawSpaces
- getGutter
- getHighlightCurrentLine
- getIndentOnTab
- getIndentWidth
- getInsertSpacesInsteadOfTabs
- getMarkAttributes
- getRightMarginPosition
- getShowLineMarks
- getShowLineNumbers
- getShowRightMargin
- getSmartBackspace
- getSmartHomeEnd
- getSpaceDrawer
- getTabWidth
- getVisualColumn
- indentLines
- new
- newWithBuffer
- setAutoIndent
- setBackgroundPattern
- setDrawSpaces
- setHighlightCurrentLine
- setIndentOnTab
- setIndentWidth
- setInsertSpacesInsteadOfTabs
- setMarkAttributes
- setRightMarginPosition
- setShowLineMarks
- setShowLineNumbers
- setShowRightMargin
- setSmartBackspace
- setSmartHomeEnd
- setTabWidth
- unindentLines
- Properties
- Signals
No description available in the introspection data.
Synopsis
- newtype View = View (ManagedPtr View)
- class (GObject o, IsDescendantOf View o) => IsView o
- toView :: (MonadIO m, IsView o) => o -> m View
- noView :: Maybe View
- viewGetAutoIndent :: (HasCallStack, MonadIO m, IsView a) => a -> m Bool
- viewGetBackgroundPattern :: (HasCallStack, MonadIO m, IsView a) => a -> m BackgroundPatternType
- viewGetCompletion :: (HasCallStack, MonadIO m, IsView a) => a -> m Completion
- viewGetDrawSpaces :: (HasCallStack, MonadIO m, IsView a) => a -> m [DrawSpacesFlags]
- viewGetGutter :: (HasCallStack, MonadIO m, IsView a) => a -> TextWindowType -> m Gutter
- viewGetHighlightCurrentLine :: (HasCallStack, MonadIO m, IsView a) => a -> m Bool
- viewGetIndentOnTab :: (HasCallStack, MonadIO m, IsView a) => a -> m Bool
- viewGetIndentWidth :: (HasCallStack, MonadIO m, IsView a) => a -> m Int32
- viewGetInsertSpacesInsteadOfTabs :: (HasCallStack, MonadIO m, IsView a) => a -> m Bool
- viewGetMarkAttributes :: (HasCallStack, MonadIO m, IsView a) => a -> Text -> Int32 -> m MarkAttributes
- viewGetRightMarginPosition :: (HasCallStack, MonadIO m, IsView a) => a -> m Word32
- viewGetShowLineMarks :: (HasCallStack, MonadIO m, IsView a) => a -> m Bool
- viewGetShowLineNumbers :: (HasCallStack, MonadIO m, IsView a) => a -> m Bool
- viewGetShowRightMargin :: (HasCallStack, MonadIO m, IsView a) => a -> m Bool
- viewGetSmartBackspace :: (HasCallStack, MonadIO m, IsView a) => a -> m Bool
- viewGetSmartHomeEnd :: (HasCallStack, MonadIO m, IsView a) => a -> m SmartHomeEndType
- viewGetSpaceDrawer :: (HasCallStack, MonadIO m, IsView a) => a -> m SpaceDrawer
- viewGetTabWidth :: (HasCallStack, MonadIO m, IsView a) => a -> m Word32
- viewGetVisualColumn :: (HasCallStack, MonadIO m, IsView a) => a -> TextIter -> m Word32
- viewIndentLines :: (HasCallStack, MonadIO m, IsView a) => a -> TextIter -> TextIter -> m ()
- viewNew :: (HasCallStack, MonadIO m) => m View
- viewNewWithBuffer :: (HasCallStack, MonadIO m, IsBuffer a) => a -> m View
- viewSetAutoIndent :: (HasCallStack, MonadIO m, IsView a) => a -> Bool -> m ()
- viewSetBackgroundPattern :: (HasCallStack, MonadIO m, IsView a) => a -> BackgroundPatternType -> m ()
- viewSetDrawSpaces :: (HasCallStack, MonadIO m, IsView a) => a -> [DrawSpacesFlags] -> m ()
- viewSetHighlightCurrentLine :: (HasCallStack, MonadIO m, IsView a) => a -> Bool -> m ()
- viewSetIndentOnTab :: (HasCallStack, MonadIO m, IsView a) => a -> Bool -> m ()
- viewSetIndentWidth :: (HasCallStack, MonadIO m, IsView a) => a -> Int32 -> m ()
- viewSetInsertSpacesInsteadOfTabs :: (HasCallStack, MonadIO m, IsView a) => a -> Bool -> m ()
- viewSetMarkAttributes :: (HasCallStack, MonadIO m, IsView a, IsMarkAttributes b) => a -> Text -> b -> Int32 -> m ()
- viewSetRightMarginPosition :: (HasCallStack, MonadIO m, IsView a) => a -> Word32 -> m ()
- viewSetShowLineMarks :: (HasCallStack, MonadIO m, IsView a) => a -> Bool -> m ()
- viewSetShowLineNumbers :: (HasCallStack, MonadIO m, IsView a) => a -> Bool -> m ()
- viewSetShowRightMargin :: (HasCallStack, MonadIO m, IsView a) => a -> Bool -> m ()
- viewSetSmartBackspace :: (HasCallStack, MonadIO m, IsView a) => a -> Bool -> m ()
- viewSetSmartHomeEnd :: (HasCallStack, MonadIO m, IsView a) => a -> SmartHomeEndType -> m ()
- viewSetTabWidth :: (HasCallStack, MonadIO m, IsView a) => a -> Word32 -> m ()
- viewUnindentLines :: (HasCallStack, MonadIO m, IsView a) => a -> TextIter -> TextIter -> m ()
- constructViewAutoIndent :: IsView o => Bool -> IO (GValueConstruct o)
- getViewAutoIndent :: (MonadIO m, IsView o) => o -> m Bool
- setViewAutoIndent :: (MonadIO m, IsView o) => o -> Bool -> m ()
- constructViewBackgroundPattern :: IsView o => BackgroundPatternType -> IO (GValueConstruct o)
- getViewBackgroundPattern :: (MonadIO m, IsView o) => o -> m BackgroundPatternType
- setViewBackgroundPattern :: (MonadIO m, IsView o) => o -> BackgroundPatternType -> m ()
- getViewCompletion :: (MonadIO m, IsView o) => o -> m Completion
- constructViewDrawSpaces :: IsView o => [DrawSpacesFlags] -> IO (GValueConstruct o)
- getViewDrawSpaces :: (MonadIO m, IsView o) => o -> m [DrawSpacesFlags]
- setViewDrawSpaces :: (MonadIO m, IsView o) => o -> [DrawSpacesFlags] -> m ()
- constructViewHighlightCurrentLine :: IsView o => Bool -> IO (GValueConstruct o)
- getViewHighlightCurrentLine :: (MonadIO m, IsView o) => o -> m Bool
- setViewHighlightCurrentLine :: (MonadIO m, IsView o) => o -> Bool -> m ()
- constructViewIndentOnTab :: IsView o => Bool -> IO (GValueConstruct o)
- getViewIndentOnTab :: (MonadIO m, IsView o) => o -> m Bool
- setViewIndentOnTab :: (MonadIO m, IsView o) => o -> Bool -> m ()
- constructViewIndentWidth :: IsView o => Int32 -> IO (GValueConstruct o)
- getViewIndentWidth :: (MonadIO m, IsView o) => o -> m Int32
- setViewIndentWidth :: (MonadIO m, IsView o) => o -> Int32 -> m ()
- constructViewInsertSpacesInsteadOfTabs :: IsView o => Bool -> IO (GValueConstruct o)
- getViewInsertSpacesInsteadOfTabs :: (MonadIO m, IsView o) => o -> m Bool
- setViewInsertSpacesInsteadOfTabs :: (MonadIO m, IsView o) => o -> Bool -> m ()
- constructViewRightMarginPosition :: IsView o => Word32 -> IO (GValueConstruct o)
- getViewRightMarginPosition :: (MonadIO m, IsView o) => o -> m Word32
- setViewRightMarginPosition :: (MonadIO m, IsView o) => o -> Word32 -> m ()
- constructViewShowLineMarks :: IsView o => Bool -> IO (GValueConstruct o)
- getViewShowLineMarks :: (MonadIO m, IsView o) => o -> m Bool
- setViewShowLineMarks :: (MonadIO m, IsView o) => o -> Bool -> m ()
- constructViewShowLineNumbers :: IsView o => Bool -> IO (GValueConstruct o)
- getViewShowLineNumbers :: (MonadIO m, IsView o) => o -> m Bool
- setViewShowLineNumbers :: (MonadIO m, IsView o) => o -> Bool -> m ()
- constructViewShowRightMargin :: IsView o => Bool -> IO (GValueConstruct o)
- getViewShowRightMargin :: (MonadIO m, IsView o) => o -> m Bool
- setViewShowRightMargin :: (MonadIO m, IsView o) => o -> Bool -> m ()
- constructViewSmartBackspace :: IsView o => Bool -> IO (GValueConstruct o)
- getViewSmartBackspace :: (MonadIO m, IsView o) => o -> m Bool
- setViewSmartBackspace :: (MonadIO m, IsView o) => o -> Bool -> m ()
- constructViewSmartHomeEnd :: IsView o => SmartHomeEndType -> IO (GValueConstruct o)
- getViewSmartHomeEnd :: (MonadIO m, IsView o) => o -> m SmartHomeEndType
- setViewSmartHomeEnd :: (MonadIO m, IsView o) => o -> SmartHomeEndType -> m ()
- getViewSpaceDrawer :: (MonadIO m, IsView o) => o -> m SpaceDrawer
- constructViewTabWidth :: IsView o => Word32 -> IO (GValueConstruct o)
- getViewTabWidth :: (MonadIO m, IsView o) => o -> m Word32
- setViewTabWidth :: (MonadIO m, IsView o) => o -> Word32 -> m ()
- type C_ViewChangeCaseCallback = Ptr () -> CUInt -> Ptr () -> IO ()
- type ViewChangeCaseCallback = ChangeCaseType -> IO ()
- afterViewChangeCase :: (IsView a, MonadIO m) => a -> ViewChangeCaseCallback -> m SignalHandlerId
- genClosure_ViewChangeCase :: MonadIO m => ViewChangeCaseCallback -> m (GClosure C_ViewChangeCaseCallback)
- mk_ViewChangeCaseCallback :: C_ViewChangeCaseCallback -> IO (FunPtr C_ViewChangeCaseCallback)
- noViewChangeCaseCallback :: Maybe ViewChangeCaseCallback
- onViewChangeCase :: (IsView a, MonadIO m) => a -> ViewChangeCaseCallback -> m SignalHandlerId
- wrap_ViewChangeCaseCallback :: ViewChangeCaseCallback -> C_ViewChangeCaseCallback
- type C_ViewChangeNumberCallback = Ptr () -> Int32 -> Ptr () -> IO ()
- type ViewChangeNumberCallback = Int32 -> IO ()
- afterViewChangeNumber :: (IsView a, MonadIO m) => a -> ViewChangeNumberCallback -> m SignalHandlerId
- genClosure_ViewChangeNumber :: MonadIO m => ViewChangeNumberCallback -> m (GClosure C_ViewChangeNumberCallback)
- mk_ViewChangeNumberCallback :: C_ViewChangeNumberCallback -> IO (FunPtr C_ViewChangeNumberCallback)
- noViewChangeNumberCallback :: Maybe ViewChangeNumberCallback
- onViewChangeNumber :: (IsView a, MonadIO m) => a -> ViewChangeNumberCallback -> m SignalHandlerId
- wrap_ViewChangeNumberCallback :: ViewChangeNumberCallback -> C_ViewChangeNumberCallback
- type C_ViewJoinLinesCallback = Ptr () -> Ptr () -> IO ()
- type ViewJoinLinesCallback = IO ()
- afterViewJoinLines :: (IsView a, MonadIO m) => a -> ViewJoinLinesCallback -> m SignalHandlerId
- genClosure_ViewJoinLines :: MonadIO m => ViewJoinLinesCallback -> m (GClosure C_ViewJoinLinesCallback)
- mk_ViewJoinLinesCallback :: C_ViewJoinLinesCallback -> IO (FunPtr C_ViewJoinLinesCallback)
- noViewJoinLinesCallback :: Maybe ViewJoinLinesCallback
- onViewJoinLines :: (IsView a, MonadIO m) => a -> ViewJoinLinesCallback -> m SignalHandlerId
- wrap_ViewJoinLinesCallback :: ViewJoinLinesCallback -> C_ViewJoinLinesCallback
- type C_ViewLineMarkActivatedCallback = Ptr () -> Ptr TextIter -> Ptr Event -> Ptr () -> IO ()
- type ViewLineMarkActivatedCallback = TextIter -> Event -> IO ()
- afterViewLineMarkActivated :: (IsView a, MonadIO m) => a -> ViewLineMarkActivatedCallback -> m SignalHandlerId
- genClosure_ViewLineMarkActivated :: MonadIO m => ViewLineMarkActivatedCallback -> m (GClosure C_ViewLineMarkActivatedCallback)
- mk_ViewLineMarkActivatedCallback :: C_ViewLineMarkActivatedCallback -> IO (FunPtr C_ViewLineMarkActivatedCallback)
- noViewLineMarkActivatedCallback :: Maybe ViewLineMarkActivatedCallback
- onViewLineMarkActivated :: (IsView a, MonadIO m) => a -> ViewLineMarkActivatedCallback -> m SignalHandlerId
- wrap_ViewLineMarkActivatedCallback :: ViewLineMarkActivatedCallback -> C_ViewLineMarkActivatedCallback
- type C_ViewMoveLinesCallback = Ptr () -> CInt -> Int32 -> Ptr () -> IO ()
- type ViewMoveLinesCallback = Bool -> Int32 -> IO ()
- afterViewMoveLines :: (IsView a, MonadIO m) => a -> ViewMoveLinesCallback -> m SignalHandlerId
- genClosure_ViewMoveLines :: MonadIO m => ViewMoveLinesCallback -> m (GClosure C_ViewMoveLinesCallback)
- mk_ViewMoveLinesCallback :: C_ViewMoveLinesCallback -> IO (FunPtr C_ViewMoveLinesCallback)
- noViewMoveLinesCallback :: Maybe ViewMoveLinesCallback
- onViewMoveLines :: (IsView a, MonadIO m) => a -> ViewMoveLinesCallback -> m SignalHandlerId
- wrap_ViewMoveLinesCallback :: ViewMoveLinesCallback -> C_ViewMoveLinesCallback
- type C_ViewMoveToMatchingBracketCallback = Ptr () -> CInt -> Ptr () -> IO ()
- type ViewMoveToMatchingBracketCallback = Bool -> IO ()
- afterViewMoveToMatchingBracket :: (IsView a, MonadIO m) => a -> ViewMoveToMatchingBracketCallback -> m SignalHandlerId
- genClosure_ViewMoveToMatchingBracket :: MonadIO m => ViewMoveToMatchingBracketCallback -> m (GClosure C_ViewMoveToMatchingBracketCallback)
- mk_ViewMoveToMatchingBracketCallback :: C_ViewMoveToMatchingBracketCallback -> IO (FunPtr C_ViewMoveToMatchingBracketCallback)
- noViewMoveToMatchingBracketCallback :: Maybe ViewMoveToMatchingBracketCallback
- onViewMoveToMatchingBracket :: (IsView a, MonadIO m) => a -> ViewMoveToMatchingBracketCallback -> m SignalHandlerId
- wrap_ViewMoveToMatchingBracketCallback :: ViewMoveToMatchingBracketCallback -> C_ViewMoveToMatchingBracketCallback
- type C_ViewMoveWordsCallback = Ptr () -> Int32 -> Ptr () -> IO ()
- type ViewMoveWordsCallback = Int32 -> IO ()
- afterViewMoveWords :: (IsView a, MonadIO m) => a -> ViewMoveWordsCallback -> m SignalHandlerId
- genClosure_ViewMoveWords :: MonadIO m => ViewMoveWordsCallback -> m (GClosure C_ViewMoveWordsCallback)
- mk_ViewMoveWordsCallback :: C_ViewMoveWordsCallback -> IO (FunPtr C_ViewMoveWordsCallback)
- noViewMoveWordsCallback :: Maybe ViewMoveWordsCallback
- onViewMoveWords :: (IsView a, MonadIO m) => a -> ViewMoveWordsCallback -> m SignalHandlerId
- wrap_ViewMoveWordsCallback :: ViewMoveWordsCallback -> C_ViewMoveWordsCallback
- type C_ViewRedoCallback = Ptr () -> Ptr () -> IO ()
- type ViewRedoCallback = IO ()
- afterViewRedo :: (IsView a, MonadIO m) => a -> ViewRedoCallback -> m SignalHandlerId
- genClosure_ViewRedo :: MonadIO m => ViewRedoCallback -> m (GClosure C_ViewRedoCallback)
- mk_ViewRedoCallback :: C_ViewRedoCallback -> IO (FunPtr C_ViewRedoCallback)
- noViewRedoCallback :: Maybe ViewRedoCallback
- onViewRedo :: (IsView a, MonadIO m) => a -> ViewRedoCallback -> m SignalHandlerId
- wrap_ViewRedoCallback :: ViewRedoCallback -> C_ViewRedoCallback
- type C_ViewShowCompletionCallback = Ptr () -> Ptr () -> IO ()
- type ViewShowCompletionCallback = IO ()
- afterViewShowCompletion :: (IsView a, MonadIO m) => a -> ViewShowCompletionCallback -> m SignalHandlerId
- genClosure_ViewShowCompletion :: MonadIO m => ViewShowCompletionCallback -> m (GClosure C_ViewShowCompletionCallback)
- mk_ViewShowCompletionCallback :: C_ViewShowCompletionCallback -> IO (FunPtr C_ViewShowCompletionCallback)
- noViewShowCompletionCallback :: Maybe ViewShowCompletionCallback
- onViewShowCompletion :: (IsView a, MonadIO m) => a -> ViewShowCompletionCallback -> m SignalHandlerId
- wrap_ViewShowCompletionCallback :: ViewShowCompletionCallback -> C_ViewShowCompletionCallback
- type C_ViewSmartHomeEndCallback = Ptr () -> Ptr TextIter -> Int32 -> Ptr () -> IO ()
- type ViewSmartHomeEndCallback = TextIter -> Int32 -> IO ()
- afterViewSmartHomeEnd :: (IsView a, MonadIO m) => a -> ViewSmartHomeEndCallback -> m SignalHandlerId
- genClosure_ViewSmartHomeEnd :: MonadIO m => ViewSmartHomeEndCallback -> m (GClosure C_ViewSmartHomeEndCallback)
- mk_ViewSmartHomeEndCallback :: C_ViewSmartHomeEndCallback -> IO (FunPtr C_ViewSmartHomeEndCallback)
- noViewSmartHomeEndCallback :: Maybe ViewSmartHomeEndCallback
- onViewSmartHomeEnd :: (IsView a, MonadIO m) => a -> ViewSmartHomeEndCallback -> m SignalHandlerId
- wrap_ViewSmartHomeEndCallback :: ViewSmartHomeEndCallback -> C_ViewSmartHomeEndCallback
- type C_ViewUndoCallback = Ptr () -> Ptr () -> IO ()
- type ViewUndoCallback = IO ()
- afterViewUndo :: (IsView a, MonadIO m) => a -> ViewUndoCallback -> m SignalHandlerId
- genClosure_ViewUndo :: MonadIO m => ViewUndoCallback -> m (GClosure C_ViewUndoCallback)
- mk_ViewUndoCallback :: C_ViewUndoCallback -> IO (FunPtr C_ViewUndoCallback)
- noViewUndoCallback :: Maybe ViewUndoCallback
- onViewUndo :: (IsView a, MonadIO m) => a -> ViewUndoCallback -> m SignalHandlerId
- wrap_ViewUndoCallback :: ViewUndoCallback -> C_ViewUndoCallback
Exported types
Memory-managed wrapper type.
Instances
GObject View Source # | |
Defined in GI.GtkSource.Objects.View gobjectType :: IO GType # | |
HasParentTypes View Source # | |
Defined in GI.GtkSource.Objects.View | |
type ParentTypes View Source # | |
Defined in GI.GtkSource.Objects.View type ParentTypes View = TextView ': (Container ': (Widget ': (Object ': (ImplementorIface ': (Buildable ': (Scrollable ': ([] :: [Type]))))))) |
class (GObject o, IsDescendantOf View o) => IsView o Source #
Instances
(GObject o, IsDescendantOf View o) => IsView o Source # | |
Defined in GI.GtkSource.Objects.View |
Methods
getAutoIndent
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether auto-indentation of text is enabled.
getBackgroundPattern
viewGetBackgroundPattern Source #
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> m BackgroundPatternType | Returns: the |
Returns the BackgroundPatternType
specifying if and how
the background pattern should be displayed for this view
.
Since: 3.16
getCompletion
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> m Completion | Returns: the |
Gets the Completion
associated with view
. The returned object is
guaranteed to be the same for the lifetime of view
. Each View
object has a different Completion
.
getDrawSpaces
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> m [DrawSpacesFlags] | Returns: the |
Deprecated: (Since version 3.24)Use spaceDrawerGetTypesForLocations
instead.
Returns the DrawSpacesFlags
specifying if and how spaces
should be displayed for this view
.
getGutter
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> TextWindowType |
|
-> m Gutter | Returns: the |
Returns the Gutter
object associated with windowType
for view
.
Only GTK_TEXT_WINDOW_LEFT and GTK_TEXT_WINDOW_RIGHT are supported,
respectively corresponding to the left and right gutter. The line numbers
and mark category icons are rendered in the left gutter.
Since: 2.8
getHighlightCurrentLine
viewGetHighlightCurrentLine Source #
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether the current line is highlighted.
getIndentOnTab
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether when the tab key is pressed the current selection should get indented instead of replaced with the \t character.
getIndentWidth
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> m Int32 | Returns: indent width. |
Returns the number of spaces to use for each step of indent.
See viewSetIndentWidth
for details.
getInsertSpacesInsteadOfTabs
viewGetInsertSpacesInsteadOfTabs Source #
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether when inserting a tabulator character it should be replaced by a group of space characters.
getMarkAttributes
viewGetMarkAttributes Source #
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> Text |
|
-> Int32 |
|
-> m MarkAttributes | Returns: |
Gets attributes and priority for the category
.
getRightMarginPosition
viewGetRightMarginPosition Source #
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> m Word32 | Returns: the position of the right margin. |
Gets the position of the right margin in the given view
.
getShowLineMarks
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether line marks are displayed beside the text.
Since: 2.2
getShowLineNumbers
viewGetShowLineNumbers Source #
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether line numbers are displayed beside the text.
getShowRightMargin
viewGetShowRightMargin Source #
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether a right margin is displayed.
getSmartBackspace
viewGetSmartBackspace Source #
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> m Bool | Returns: |
Returns True
if pressing the Backspace key will try to delete spaces
up to the previous tab stop.
Since: 3.18
getSmartHomeEnd
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> m SmartHomeEndType | Returns: a |
Returns a SmartHomeEndType
end value specifying
how the cursor will move when HOME and END keys are pressed.
getSpaceDrawer
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> m SpaceDrawer | Returns: the |
Gets the SpaceDrawer
associated with view
. The returned object is
guaranteed to be the same for the lifetime of view
. Each View
object has a different SpaceDrawer
.
Since: 3.24
getTabWidth
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> m Word32 | Returns: width of tab. |
Returns the width of tabulation in characters.
getVisualColumn
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> TextIter |
|
-> m Word32 | Returns: the visual column at |
Determines the visual column at iter
taking into consideration the
View
:tab-width
of view
.
indentLines
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> TextIter |
|
-> TextIter |
|
-> m () |
Inserts one indentation level at the beginning of the specified lines. The empty lines are not indented.
Since: 3.16
new
:: (HasCallStack, MonadIO m) | |
=> m View | Returns: a new |
Creates a new View
.
By default, an empty Buffer
will be lazily created and can be
retrieved with textViewGetBuffer
.
If you want to specify your own buffer, either override the
TextViewClass
create_buffer factory method, or use
viewNewWithBuffer
.
newWithBuffer
Creates a new View
widget displaying the buffer
buffer
. One buffer can be shared among many widgets.
setAutoIndent
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> Bool |
|
-> m () |
If True
auto-indentation of text is enabled.
When Enter is pressed to create a new line, the auto-indentation inserts the same indentation as the previous line. This is <emphasis>not</emphasis> a "smart indentation" where an indentation level is added or removed depending on the context.
setBackgroundPattern
viewSetBackgroundPattern Source #
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> BackgroundPatternType |
|
-> m () |
Set if and how the background pattern should be displayed.
Since: 3.16
setDrawSpaces
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> [DrawSpacesFlags] |
|
-> m () |
Deprecated: (Since version 3.24)Use spaceDrawerSetTypesForLocations
instead.
Set if and how the spaces should be visualized. Specifying flags
as 0 will
disable display of spaces.
For a finer-grained method, there is also the GtkSourceTag's
Tag
:draw-spaces
property.
setHighlightCurrentLine
viewSetHighlightCurrentLine Source #
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> Bool |
|
-> m () |
If highlight
is True
the current line will be highlighted.
setIndentOnTab
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> Bool |
|
-> m () |
If True
, when the tab key is pressed when several lines are selected, the
selected lines are indented of one level instead of being replaced with a \t
character. Shift+Tab unindents the selection.
If the first or last line is not selected completely, it is also indented or unindented.
When the selection doesn't span several lines, the tab key always replaces the selection with a normal \t character.
setIndentWidth
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the number of spaces to use for each step of indent when the tab key is
pressed. If width
is -1, the value of the View
:tab-width
property
will be used.
The View
:indent-width
interacts with the
View
:insert-spaces-instead-of-tabs
property and
View
:tab-width
. An example will be clearer: if the
View
:indent-width
is 4 and
View
:tab-width
is 8 and
View
:insert-spaces-instead-of-tabs
is False
, then pressing the tab
key at the beginning of a line will insert 4 spaces. So far so good. Pressing
the tab key a second time will remove the 4 spaces and insert a \t character
instead (since View
:tab-width
is 8). On the other hand, if
View
:insert-spaces-instead-of-tabs
is True
, the second tab key
pressed will insert 4 more spaces for a total of 8 spaces in the
TextBuffer
.
The test-widget program (available in the GtkSourceView repository) may be useful to better understand the indentation settings (enable the space drawing!).
setInsertSpacesInsteadOfTabs
viewSetInsertSpacesInsteadOfTabs Source #
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> Bool |
|
-> m () |
If True
a tab key pressed is replaced by a group of space characters. Of
course it is still possible to insert a real \t programmatically with the
TextBuffer
API.
setMarkAttributes
viewSetMarkAttributes Source #
:: (HasCallStack, MonadIO m, IsView a, IsMarkAttributes b) | |
=> a |
|
-> Text |
|
-> b |
|
-> Int32 |
|
-> m () |
Sets attributes and priority for the category
.
setRightMarginPosition
viewSetRightMarginPosition Source #
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> Word32 |
|
-> m () |
Sets the position of the right margin in the given view
.
setShowLineMarks
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> Bool |
|
-> m () |
If True
line marks will be displayed beside the text.
Since: 2.2
setShowLineNumbers
viewSetShowLineNumbers Source #
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> Bool |
|
-> m () |
If True
line numbers will be displayed beside the text.
setShowRightMargin
viewSetShowRightMargin Source #
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> Bool |
|
-> m () |
If True
a right margin is displayed.
setSmartBackspace
viewSetSmartBackspace Source #
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> Bool |
|
-> m () |
When set to True
, pressing the Backspace key will try to delete spaces
up to the previous tab stop.
Since: 3.18
setSmartHomeEnd
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> SmartHomeEndType |
|
-> m () |
Set the desired movement of the cursor when HOME and END keys are pressed.
setTabWidth
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> Word32 |
|
-> m () |
Sets the width of tabulation in characters. The TextBuffer
still contains
\t characters, but they can take a different visual width in a View
widget.
unindentLines
:: (HasCallStack, MonadIO m, IsView a) | |
=> a |
|
-> TextIter |
|
-> TextIter |
|
-> m () |
Removes one indentation level at the beginning of the specified lines.
Since: 3.16
Properties
autoIndent
No description available in the introspection data.
constructViewAutoIndent :: IsView o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “auto-indent
” property. This is rarely needed directly, but it is used by new
.
getViewAutoIndent :: (MonadIO m, IsView o) => o -> m Bool Source #
Get the value of the “auto-indent
” property.
When overloading is enabled, this is equivalent to
get
view #autoIndent
setViewAutoIndent :: (MonadIO m, IsView o) => o -> Bool -> m () Source #
Set the value of the “auto-indent
” property.
When overloading is enabled, this is equivalent to
set
view [ #autoIndent:=
value ]
backgroundPattern
Draw a specific background pattern on the view.
Since: 3.16
constructViewBackgroundPattern :: IsView o => BackgroundPatternType -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “background-pattern
” property. This is rarely needed directly, but it is used by new
.
getViewBackgroundPattern :: (MonadIO m, IsView o) => o -> m BackgroundPatternType Source #
Get the value of the “background-pattern
” property.
When overloading is enabled, this is equivalent to
get
view #backgroundPattern
setViewBackgroundPattern :: (MonadIO m, IsView o) => o -> BackgroundPatternType -> m () Source #
Set the value of the “background-pattern
” property.
When overloading is enabled, this is equivalent to
set
view [ #backgroundPattern:=
value ]
completion
The completion object associated with the view
getViewCompletion :: (MonadIO m, IsView o) => o -> m Completion Source #
Get the value of the “completion
” property.
When overloading is enabled, this is equivalent to
get
view #completion
drawSpaces
Set if and how the spaces should be visualized.
For a finer-grained method, there is also the GtkSourceTag's
Tag
:draw-spaces
property.
Since: 2.4
constructViewDrawSpaces :: IsView o => [DrawSpacesFlags] -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “draw-spaces
” property. This is rarely needed directly, but it is used by new
.
getViewDrawSpaces :: (MonadIO m, IsView o) => o -> m [DrawSpacesFlags] Source #
Get the value of the “draw-spaces
” property.
When overloading is enabled, this is equivalent to
get
view #drawSpaces
setViewDrawSpaces :: (MonadIO m, IsView o) => o -> [DrawSpacesFlags] -> m () Source #
Set the value of the “draw-spaces
” property.
When overloading is enabled, this is equivalent to
set
view [ #drawSpaces:=
value ]
highlightCurrentLine
No description available in the introspection data.
constructViewHighlightCurrentLine :: IsView o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “highlight-current-line
” property. This is rarely needed directly, but it is used by new
.
getViewHighlightCurrentLine :: (MonadIO m, IsView o) => o -> m Bool Source #
Get the value of the “highlight-current-line
” property.
When overloading is enabled, this is equivalent to
get
view #highlightCurrentLine
setViewHighlightCurrentLine :: (MonadIO m, IsView o) => o -> Bool -> m () Source #
Set the value of the “highlight-current-line
” property.
When overloading is enabled, this is equivalent to
set
view [ #highlightCurrentLine:=
value ]
indentOnTab
No description available in the introspection data.
constructViewIndentOnTab :: IsView o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “indent-on-tab
” property. This is rarely needed directly, but it is used by new
.
getViewIndentOnTab :: (MonadIO m, IsView o) => o -> m Bool Source #
Get the value of the “indent-on-tab
” property.
When overloading is enabled, this is equivalent to
get
view #indentOnTab
setViewIndentOnTab :: (MonadIO m, IsView o) => o -> Bool -> m () Source #
Set the value of the “indent-on-tab
” property.
When overloading is enabled, this is equivalent to
set
view [ #indentOnTab:=
value ]
indentWidth
Width of an indentation step expressed in number of spaces.
constructViewIndentWidth :: IsView o => Int32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “indent-width
” property. This is rarely needed directly, but it is used by new
.
getViewIndentWidth :: (MonadIO m, IsView o) => o -> m Int32 Source #
Get the value of the “indent-width
” property.
When overloading is enabled, this is equivalent to
get
view #indentWidth
setViewIndentWidth :: (MonadIO m, IsView o) => o -> Int32 -> m () Source #
Set the value of the “indent-width
” property.
When overloading is enabled, this is equivalent to
set
view [ #indentWidth:=
value ]
insertSpacesInsteadOfTabs
No description available in the introspection data.
constructViewInsertSpacesInsteadOfTabs :: IsView o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “insert-spaces-instead-of-tabs
” property. This is rarely needed directly, but it is used by new
.
getViewInsertSpacesInsteadOfTabs :: (MonadIO m, IsView o) => o -> m Bool Source #
Get the value of the “insert-spaces-instead-of-tabs
” property.
When overloading is enabled, this is equivalent to
get
view #insertSpacesInsteadOfTabs
setViewInsertSpacesInsteadOfTabs :: (MonadIO m, IsView o) => o -> Bool -> m () Source #
Set the value of the “insert-spaces-instead-of-tabs
” property.
When overloading is enabled, this is equivalent to
set
view [ #insertSpacesInsteadOfTabs:=
value ]
rightMarginPosition
Position of the right margin.
constructViewRightMarginPosition :: IsView o => Word32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “right-margin-position
” property. This is rarely needed directly, but it is used by new
.
getViewRightMarginPosition :: (MonadIO m, IsView o) => o -> m Word32 Source #
Get the value of the “right-margin-position
” property.
When overloading is enabled, this is equivalent to
get
view #rightMarginPosition
setViewRightMarginPosition :: (MonadIO m, IsView o) => o -> Word32 -> m () Source #
Set the value of the “right-margin-position
” property.
When overloading is enabled, this is equivalent to
set
view [ #rightMarginPosition:=
value ]
showLineMarks
Whether to display line mark pixbufs
constructViewShowLineMarks :: IsView o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-line-marks
” property. This is rarely needed directly, but it is used by new
.
getViewShowLineMarks :: (MonadIO m, IsView o) => o -> m Bool Source #
Get the value of the “show-line-marks
” property.
When overloading is enabled, this is equivalent to
get
view #showLineMarks
setViewShowLineMarks :: (MonadIO m, IsView o) => o -> Bool -> m () Source #
Set the value of the “show-line-marks
” property.
When overloading is enabled, this is equivalent to
set
view [ #showLineMarks:=
value ]
showLineNumbers
Whether to display line numbers
constructViewShowLineNumbers :: IsView o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-line-numbers
” property. This is rarely needed directly, but it is used by new
.
getViewShowLineNumbers :: (MonadIO m, IsView o) => o -> m Bool Source #
Get the value of the “show-line-numbers
” property.
When overloading is enabled, this is equivalent to
get
view #showLineNumbers
setViewShowLineNumbers :: (MonadIO m, IsView o) => o -> Bool -> m () Source #
Set the value of the “show-line-numbers
” property.
When overloading is enabled, this is equivalent to
set
view [ #showLineNumbers:=
value ]
showRightMargin
Whether to display the right margin.
constructViewShowRightMargin :: IsView o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-right-margin
” property. This is rarely needed directly, but it is used by new
.
getViewShowRightMargin :: (MonadIO m, IsView o) => o -> m Bool Source #
Get the value of the “show-right-margin
” property.
When overloading is enabled, this is equivalent to
get
view #showRightMargin
setViewShowRightMargin :: (MonadIO m, IsView o) => o -> Bool -> m () Source #
Set the value of the “show-right-margin
” property.
When overloading is enabled, this is equivalent to
set
view [ #showRightMargin:=
value ]
smartBackspace
Whether smart Backspace should be used.
Since: 3.18
constructViewSmartBackspace :: IsView o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “smart-backspace
” property. This is rarely needed directly, but it is used by new
.
getViewSmartBackspace :: (MonadIO m, IsView o) => o -> m Bool Source #
Get the value of the “smart-backspace
” property.
When overloading is enabled, this is equivalent to
get
view #smartBackspace
setViewSmartBackspace :: (MonadIO m, IsView o) => o -> Bool -> m () Source #
Set the value of the “smart-backspace
” property.
When overloading is enabled, this is equivalent to
set
view [ #smartBackspace:=
value ]
smartHomeEnd
Set the behavior of the HOME and END keys.
Since: 2.0
constructViewSmartHomeEnd :: IsView o => SmartHomeEndType -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “smart-home-end
” property. This is rarely needed directly, but it is used by new
.
getViewSmartHomeEnd :: (MonadIO m, IsView o) => o -> m SmartHomeEndType Source #
Get the value of the “smart-home-end
” property.
When overloading is enabled, this is equivalent to
get
view #smartHomeEnd
setViewSmartHomeEnd :: (MonadIO m, IsView o) => o -> SmartHomeEndType -> m () Source #
Set the value of the “smart-home-end
” property.
When overloading is enabled, this is equivalent to
set
view [ #smartHomeEnd:=
value ]
spaceDrawer
The SpaceDrawer
object associated with the view.
Since: 3.24
getViewSpaceDrawer :: (MonadIO m, IsView o) => o -> m SpaceDrawer Source #
Get the value of the “space-drawer
” property.
When overloading is enabled, this is equivalent to
get
view #spaceDrawer
tabWidth
Width of a tab character expressed in number of spaces.
constructViewTabWidth :: IsView o => Word32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “tab-width
” property. This is rarely needed directly, but it is used by new
.
getViewTabWidth :: (MonadIO m, IsView o) => o -> m Word32 Source #
Get the value of the “tab-width
” property.
When overloading is enabled, this is equivalent to
get
view #tabWidth
setViewTabWidth :: (MonadIO m, IsView o) => o -> Word32 -> m () Source #
Set the value of the “tab-width
” property.
When overloading is enabled, this is equivalent to
set
view [ #tabWidth:=
value ]
Signals
changeCase
type C_ViewChangeCaseCallback = Ptr () -> CUInt -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ViewChangeCaseCallback Source #
= ChangeCaseType |
|
-> IO () |
Keybinding signal to change case of the text at the current cursor position.
Since: 3.16
afterViewChangeCase :: (IsView a, MonadIO m) => a -> ViewChangeCaseCallback -> m SignalHandlerId Source #
Connect a signal handler for the “change-case
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
view #changeCase callback
genClosure_ViewChangeCase :: MonadIO m => ViewChangeCaseCallback -> m (GClosure C_ViewChangeCaseCallback) Source #
Wrap the callback into a GClosure
.
mk_ViewChangeCaseCallback :: C_ViewChangeCaseCallback -> IO (FunPtr C_ViewChangeCaseCallback) Source #
Generate a function pointer callable from C code, from a C_ViewChangeCaseCallback
.
noViewChangeCaseCallback :: Maybe ViewChangeCaseCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ViewChangeCaseCallback
onViewChangeCase :: (IsView a, MonadIO m) => a -> ViewChangeCaseCallback -> m SignalHandlerId Source #
Connect a signal handler for the “change-case
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
view #changeCase callback
wrap_ViewChangeCaseCallback :: ViewChangeCaseCallback -> C_ViewChangeCaseCallback Source #
Wrap a ViewChangeCaseCallback
into a C_ViewChangeCaseCallback
.
changeNumber
type C_ViewChangeNumberCallback = Ptr () -> Int32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ViewChangeNumberCallback Source #
Keybinding signal to edit a number at the current cursor position.
Since: 3.16
afterViewChangeNumber :: (IsView a, MonadIO m) => a -> ViewChangeNumberCallback -> m SignalHandlerId Source #
Connect a signal handler for the “change-number
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
view #changeNumber callback
genClosure_ViewChangeNumber :: MonadIO m => ViewChangeNumberCallback -> m (GClosure C_ViewChangeNumberCallback) Source #
Wrap the callback into a GClosure
.
mk_ViewChangeNumberCallback :: C_ViewChangeNumberCallback -> IO (FunPtr C_ViewChangeNumberCallback) Source #
Generate a function pointer callable from C code, from a C_ViewChangeNumberCallback
.
noViewChangeNumberCallback :: Maybe ViewChangeNumberCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ViewChangeNumberCallback
onViewChangeNumber :: (IsView a, MonadIO m) => a -> ViewChangeNumberCallback -> m SignalHandlerId Source #
Connect a signal handler for the “change-number
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
view #changeNumber callback
wrap_ViewChangeNumberCallback :: ViewChangeNumberCallback -> C_ViewChangeNumberCallback Source #
Wrap a ViewChangeNumberCallback
into a C_ViewChangeNumberCallback
.
joinLines
type C_ViewJoinLinesCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ViewJoinLinesCallback = IO () Source #
Keybinding signal to join the lines currently selected.
Since: 3.16
afterViewJoinLines :: (IsView a, MonadIO m) => a -> ViewJoinLinesCallback -> m SignalHandlerId Source #
Connect a signal handler for the “join-lines
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
view #joinLines callback
genClosure_ViewJoinLines :: MonadIO m => ViewJoinLinesCallback -> m (GClosure C_ViewJoinLinesCallback) Source #
Wrap the callback into a GClosure
.
mk_ViewJoinLinesCallback :: C_ViewJoinLinesCallback -> IO (FunPtr C_ViewJoinLinesCallback) Source #
Generate a function pointer callable from C code, from a C_ViewJoinLinesCallback
.
noViewJoinLinesCallback :: Maybe ViewJoinLinesCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ViewJoinLinesCallback
onViewJoinLines :: (IsView a, MonadIO m) => a -> ViewJoinLinesCallback -> m SignalHandlerId Source #
Connect a signal handler for the “join-lines
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
view #joinLines callback
wrap_ViewJoinLinesCallback :: ViewJoinLinesCallback -> C_ViewJoinLinesCallback Source #
Wrap a ViewJoinLinesCallback
into a C_ViewJoinLinesCallback
.
lineMarkActivated
type C_ViewLineMarkActivatedCallback = Ptr () -> Ptr TextIter -> Ptr Event -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ViewLineMarkActivatedCallback Source #
Emitted when a line mark has been activated (for instance when there
was a button press in the line marks gutter). You can use iter
to
determine on which line the activation took place.
afterViewLineMarkActivated :: (IsView a, MonadIO m) => a -> ViewLineMarkActivatedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “line-mark-activated
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
view #lineMarkActivated callback
genClosure_ViewLineMarkActivated :: MonadIO m => ViewLineMarkActivatedCallback -> m (GClosure C_ViewLineMarkActivatedCallback) Source #
Wrap the callback into a GClosure
.
mk_ViewLineMarkActivatedCallback :: C_ViewLineMarkActivatedCallback -> IO (FunPtr C_ViewLineMarkActivatedCallback) Source #
Generate a function pointer callable from C code, from a C_ViewLineMarkActivatedCallback
.
noViewLineMarkActivatedCallback :: Maybe ViewLineMarkActivatedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ViewLineMarkActivatedCallback
onViewLineMarkActivated :: (IsView a, MonadIO m) => a -> ViewLineMarkActivatedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “line-mark-activated
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
view #lineMarkActivated callback
wrap_ViewLineMarkActivatedCallback :: ViewLineMarkActivatedCallback -> C_ViewLineMarkActivatedCallback Source #
Wrap a ViewLineMarkActivatedCallback
into a C_ViewLineMarkActivatedCallback
.
moveLines
type C_ViewMoveLinesCallback = Ptr () -> CInt -> Int32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ViewMoveLinesCallback Source #
= Bool |
|
-> Int32 |
|
-> IO () |
The ::move-lines signal is a keybinding which gets emitted
when the user initiates moving a line. The default binding key
is Alt+Up/Down arrow. And moves the currently selected lines,
or the current line by count
. For the moment, only
count
of -1 or 1 is valid.
The copy
parameter is deprecated, it has never been used by
GtkSourceView (the value is always False
) and was buggy.
Since: 2.10
afterViewMoveLines :: (IsView a, MonadIO m) => a -> ViewMoveLinesCallback -> m SignalHandlerId Source #
Connect a signal handler for the “move-lines
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
view #moveLines callback
genClosure_ViewMoveLines :: MonadIO m => ViewMoveLinesCallback -> m (GClosure C_ViewMoveLinesCallback) Source #
Wrap the callback into a GClosure
.
mk_ViewMoveLinesCallback :: C_ViewMoveLinesCallback -> IO (FunPtr C_ViewMoveLinesCallback) Source #
Generate a function pointer callable from C code, from a C_ViewMoveLinesCallback
.
noViewMoveLinesCallback :: Maybe ViewMoveLinesCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ViewMoveLinesCallback
onViewMoveLines :: (IsView a, MonadIO m) => a -> ViewMoveLinesCallback -> m SignalHandlerId Source #
Connect a signal handler for the “move-lines
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
view #moveLines callback
wrap_ViewMoveLinesCallback :: ViewMoveLinesCallback -> C_ViewMoveLinesCallback Source #
Wrap a ViewMoveLinesCallback
into a C_ViewMoveLinesCallback
.
moveToMatchingBracket
type C_ViewMoveToMatchingBracketCallback = Ptr () -> CInt -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ViewMoveToMatchingBracketCallback Source #
Keybinding signal to move the cursor to the matching bracket.
Since: 3.16
afterViewMoveToMatchingBracket :: (IsView a, MonadIO m) => a -> ViewMoveToMatchingBracketCallback -> m SignalHandlerId Source #
Connect a signal handler for the “move-to-matching-bracket
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
view #moveToMatchingBracket callback
genClosure_ViewMoveToMatchingBracket :: MonadIO m => ViewMoveToMatchingBracketCallback -> m (GClosure C_ViewMoveToMatchingBracketCallback) Source #
Wrap the callback into a GClosure
.
mk_ViewMoveToMatchingBracketCallback :: C_ViewMoveToMatchingBracketCallback -> IO (FunPtr C_ViewMoveToMatchingBracketCallback) Source #
Generate a function pointer callable from C code, from a C_ViewMoveToMatchingBracketCallback
.
noViewMoveToMatchingBracketCallback :: Maybe ViewMoveToMatchingBracketCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ViewMoveToMatchingBracketCallback
onViewMoveToMatchingBracket :: (IsView a, MonadIO m) => a -> ViewMoveToMatchingBracketCallback -> m SignalHandlerId Source #
Connect a signal handler for the “move-to-matching-bracket
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
view #moveToMatchingBracket callback
wrap_ViewMoveToMatchingBracketCallback :: ViewMoveToMatchingBracketCallback -> C_ViewMoveToMatchingBracketCallback Source #
moveWords
type C_ViewMoveWordsCallback = Ptr () -> Int32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ViewMoveWordsCallback Source #
The ::move-words signal is a keybinding which gets emitted when the user initiates moving a word. The default binding key is Alt+Left/Right Arrow and moves the current selection, or the current word by one word.
Since: 3.0
afterViewMoveWords :: (IsView a, MonadIO m) => a -> ViewMoveWordsCallback -> m SignalHandlerId Source #
Connect a signal handler for the “move-words
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
view #moveWords callback
genClosure_ViewMoveWords :: MonadIO m => ViewMoveWordsCallback -> m (GClosure C_ViewMoveWordsCallback) Source #
Wrap the callback into a GClosure
.
mk_ViewMoveWordsCallback :: C_ViewMoveWordsCallback -> IO (FunPtr C_ViewMoveWordsCallback) Source #
Generate a function pointer callable from C code, from a C_ViewMoveWordsCallback
.
noViewMoveWordsCallback :: Maybe ViewMoveWordsCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ViewMoveWordsCallback
onViewMoveWords :: (IsView a, MonadIO m) => a -> ViewMoveWordsCallback -> m SignalHandlerId Source #
Connect a signal handler for the “move-words
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
view #moveWords callback
wrap_ViewMoveWordsCallback :: ViewMoveWordsCallback -> C_ViewMoveWordsCallback Source #
Wrap a ViewMoveWordsCallback
into a C_ViewMoveWordsCallback
.
redo
type C_ViewRedoCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ViewRedoCallback = IO () Source #
No description available in the introspection data.
afterViewRedo :: (IsView a, MonadIO m) => a -> ViewRedoCallback -> m SignalHandlerId Source #
Connect a signal handler for the “redo
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
view #redo callback
genClosure_ViewRedo :: MonadIO m => ViewRedoCallback -> m (GClosure C_ViewRedoCallback) Source #
Wrap the callback into a GClosure
.
mk_ViewRedoCallback :: C_ViewRedoCallback -> IO (FunPtr C_ViewRedoCallback) Source #
Generate a function pointer callable from C code, from a C_ViewRedoCallback
.
noViewRedoCallback :: Maybe ViewRedoCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ViewRedoCallback
onViewRedo :: (IsView a, MonadIO m) => a -> ViewRedoCallback -> m SignalHandlerId Source #
Connect a signal handler for the “redo
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
view #redo callback
wrap_ViewRedoCallback :: ViewRedoCallback -> C_ViewRedoCallback Source #
Wrap a ViewRedoCallback
into a C_ViewRedoCallback
.
showCompletion
type C_ViewShowCompletionCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ViewShowCompletionCallback = IO () Source #
The ::show-completion signal is a key binding signal which gets emitted when the user requests a completion, by pressing <keycombo><keycap>Control</keycap><keycap>space</keycap></keycombo>.
This will create a CompletionContext
with the activation
type as CompletionActivationUserRequested
.
Applications should not connect to it, but may emit it with
g_signal_emit_by_name()
if they need to activate the completion by
another means, for example with another key binding or a menu entry.
afterViewShowCompletion :: (IsView a, MonadIO m) => a -> ViewShowCompletionCallback -> m SignalHandlerId Source #
Connect a signal handler for the “show-completion
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
view #showCompletion callback
genClosure_ViewShowCompletion :: MonadIO m => ViewShowCompletionCallback -> m (GClosure C_ViewShowCompletionCallback) Source #
Wrap the callback into a GClosure
.
mk_ViewShowCompletionCallback :: C_ViewShowCompletionCallback -> IO (FunPtr C_ViewShowCompletionCallback) Source #
Generate a function pointer callable from C code, from a C_ViewShowCompletionCallback
.
noViewShowCompletionCallback :: Maybe ViewShowCompletionCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ViewShowCompletionCallback
onViewShowCompletion :: (IsView a, MonadIO m) => a -> ViewShowCompletionCallback -> m SignalHandlerId Source #
Connect a signal handler for the “show-completion
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
view #showCompletion callback
wrap_ViewShowCompletionCallback :: ViewShowCompletionCallback -> C_ViewShowCompletionCallback Source #
Wrap a ViewShowCompletionCallback
into a C_ViewShowCompletionCallback
.
smartHomeEnd
type C_ViewSmartHomeEndCallback = Ptr () -> Ptr TextIter -> Int32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ViewSmartHomeEndCallback Source #
Emitted when a the cursor was moved according to the smart home end setting. The signal is emitted after the cursor is moved, but during the GtkTextView::move-cursor action. This can be used to find out whether the cursor was moved by a normal home/end or by a smart home/end.
Since: 3.0
afterViewSmartHomeEnd :: (IsView a, MonadIO m) => a -> ViewSmartHomeEndCallback -> m SignalHandlerId Source #
Connect a signal handler for the “smart-home-end
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
view #smartHomeEnd callback
genClosure_ViewSmartHomeEnd :: MonadIO m => ViewSmartHomeEndCallback -> m (GClosure C_ViewSmartHomeEndCallback) Source #
Wrap the callback into a GClosure
.
mk_ViewSmartHomeEndCallback :: C_ViewSmartHomeEndCallback -> IO (FunPtr C_ViewSmartHomeEndCallback) Source #
Generate a function pointer callable from C code, from a C_ViewSmartHomeEndCallback
.
noViewSmartHomeEndCallback :: Maybe ViewSmartHomeEndCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ViewSmartHomeEndCallback
onViewSmartHomeEnd :: (IsView a, MonadIO m) => a -> ViewSmartHomeEndCallback -> m SignalHandlerId Source #
Connect a signal handler for the “smart-home-end
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
view #smartHomeEnd callback
wrap_ViewSmartHomeEndCallback :: ViewSmartHomeEndCallback -> C_ViewSmartHomeEndCallback Source #
Wrap a ViewSmartHomeEndCallback
into a C_ViewSmartHomeEndCallback
.
undo
type C_ViewUndoCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ViewUndoCallback = IO () Source #
No description available in the introspection data.
afterViewUndo :: (IsView a, MonadIO m) => a -> ViewUndoCallback -> m SignalHandlerId Source #
Connect a signal handler for the “undo
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
view #undo callback
genClosure_ViewUndo :: MonadIO m => ViewUndoCallback -> m (GClosure C_ViewUndoCallback) Source #
Wrap the callback into a GClosure
.
mk_ViewUndoCallback :: C_ViewUndoCallback -> IO (FunPtr C_ViewUndoCallback) Source #
Generate a function pointer callable from C code, from a C_ViewUndoCallback
.
noViewUndoCallback :: Maybe ViewUndoCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ViewUndoCallback
onViewUndo :: (IsView a, MonadIO m) => a -> ViewUndoCallback -> m SignalHandlerId Source #
Connect a signal handler for the “undo
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
view #undo callback
wrap_ViewUndoCallback :: ViewUndoCallback -> C_ViewUndoCallback Source #
Wrap a ViewUndoCallback
into a C_ViewUndoCallback
.