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 |
No description available in the introspection data.
Synopsis
- newtype Gutter = Gutter (ManagedPtr Gutter)
- class (GObject o, IsDescendantOf Gutter o) => IsGutter o
- toGutter :: (MonadIO m, IsGutter o) => o -> m Gutter
- noGutter :: Maybe Gutter
- gutterGetPadding :: (HasCallStack, MonadIO m, IsGutter a) => a -> Int32 -> Int32 -> m ()
- gutterGetRendererAtPos :: (HasCallStack, MonadIO m, IsGutter a) => a -> Int32 -> Int32 -> m (Maybe GutterRenderer)
- gutterGetView :: (HasCallStack, MonadIO m, IsGutter a) => a -> m View
- gutterGetWindow :: (HasCallStack, MonadIO m, IsGutter a) => a -> m Window
- gutterGetWindowType :: (HasCallStack, MonadIO m, IsGutter a) => a -> m TextWindowType
- gutterInsert :: (HasCallStack, MonadIO m, IsGutter a, IsGutterRenderer b) => a -> b -> Int32 -> m Bool
- gutterQueueDraw :: (HasCallStack, MonadIO m, IsGutter a) => a -> m ()
- gutterRemove :: (HasCallStack, MonadIO m, IsGutter a, IsGutterRenderer b) => a -> b -> m ()
- gutterReorder :: (HasCallStack, MonadIO m, IsGutter a, IsGutterRenderer b) => a -> b -> Int32 -> m ()
- gutterSetPadding :: (HasCallStack, MonadIO m, IsGutter a) => a -> Int32 -> Int32 -> m ()
- constructGutterView :: (IsGutter o, IsView a) => a -> IO (GValueConstruct o)
- getGutterView :: (MonadIO m, IsGutter o) => o -> m View
- constructGutterWindowType :: IsGutter o => TextWindowType -> IO (GValueConstruct o)
- getGutterWindowType :: (MonadIO m, IsGutter o) => o -> m TextWindowType
- constructGutterXpad :: IsGutter o => Int32 -> IO (GValueConstruct o)
- getGutterXpad :: (MonadIO m, IsGutter o) => o -> m Int32
- setGutterXpad :: (MonadIO m, IsGutter o) => o -> Int32 -> m ()
- constructGutterYpad :: IsGutter o => Int32 -> IO (GValueConstruct o)
- getGutterYpad :: (MonadIO m, IsGutter o) => o -> m Int32
- setGutterYpad :: (MonadIO m, IsGutter o) => o -> Int32 -> m ()
Exported types
Memory-managed wrapper type.
Instances
GObject Gutter Source # | |
Defined in GI.GtkSource.Objects.Gutter gobjectType :: IO GType # | |
HasParentTypes Gutter Source # | |
Defined in GI.GtkSource.Objects.Gutter | |
type ParentTypes Gutter Source # | |
Defined in GI.GtkSource.Objects.Gutter |
class (GObject o, IsDescendantOf Gutter o) => IsGutter o Source #
Instances
(GObject o, IsDescendantOf Gutter o) => IsGutter o Source # | |
Defined in GI.GtkSource.Objects.Gutter |
Methods
getPadding
gutterGetPadding :: (HasCallStack, MonadIO m, IsGutter a) => a -> Int32 -> Int32 -> m () Source #
Deprecated: (Since version 3.12)Use gutterRendererGetPadding
instead.
No description available in the introspection data.
getRendererAtPos
gutterGetRendererAtPos Source #
:: (HasCallStack, MonadIO m, IsGutter a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> m (Maybe GutterRenderer) | Returns: the renderer at (x, y) or |
Finds the GutterRenderer
at (x, y).
getView
:: (HasCallStack, MonadIO m, IsGutter a) | |
=> a |
|
-> m View | Returns: the associated |
No description available in the introspection data.
Since: 3.24
getWindow
:: (HasCallStack, MonadIO m, IsGutter a) | |
=> a |
|
-> m Window | Returns: the |
Deprecated: (Since version 3.12)Use textViewGetWindow
instead.
Get the Window
of the gutter. The window will only be available when the
gutter has at least one, non-zero width, cell renderer packed.
Since: 2.8
getWindowType
:: (HasCallStack, MonadIO m, IsGutter a) | |
=> a |
|
-> m TextWindowType | Returns: the |
No description available in the introspection data.
Since: 3.24
insert
:: (HasCallStack, MonadIO m, IsGutter a, IsGutterRenderer b) | |
=> a |
|
-> b |
|
-> Int32 |
|
-> m Bool |
Insert renderer
into the gutter. If renderer
is yet unowned then gutter
claims its ownership. Otherwise just increases renderer's reference count.
renderer
cannot be already inserted to another gutter.
Since: 3.0
queueDraw
:: (HasCallStack, MonadIO m, IsGutter a) | |
=> a |
|
-> m () |
Invalidates the drawable area of the gutter. You can use this to force a redraw of the gutter if something has changed and needs to be redrawn.
Since: 2.8
remove
:: (HasCallStack, MonadIO m, IsGutter a, IsGutterRenderer b) | |
=> a |
|
-> b |
|
-> m () |
Removes renderer
from gutter
.
Since: 2.8
reorder
:: (HasCallStack, MonadIO m, IsGutter a, IsGutterRenderer b) | |
=> a |
|
-> b |
|
-> Int32 |
|
-> m () |
Reorders renderer
in gutter
to new position
.
Since: 2.8
setPadding
gutterSetPadding :: (HasCallStack, MonadIO m, IsGutter a) => a -> Int32 -> Int32 -> m () Source #
Deprecated: (Since version 3.12)Use gutterRendererSetPadding
instead.
No description available in the introspection data.
Properties
view
The View
of the gutter.
constructGutterView :: (IsGutter o, IsView a) => a -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “view
” property. This is rarely needed directly, but it is used by new
.
getGutterView :: (MonadIO m, IsGutter o) => o -> m View Source #
Get the value of the “view
” property.
When overloading is enabled, this is equivalent to
get
gutter #view
windowType
The text window type on which the window is placed.
constructGutterWindowType :: IsGutter o => TextWindowType -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “window-type
” property. This is rarely needed directly, but it is used by new
.
getGutterWindowType :: (MonadIO m, IsGutter o) => o -> m TextWindowType Source #
Get the value of the “window-type
” property.
When overloading is enabled, this is equivalent to
get
gutter #windowType
xpad
The x-padding.
constructGutterXpad :: IsGutter o => Int32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “xpad
” property. This is rarely needed directly, but it is used by new
.
getGutterXpad :: (MonadIO m, IsGutter o) => o -> m Int32 Source #
Get the value of the “xpad
” property.
When overloading is enabled, this is equivalent to
get
gutter #xpad
setGutterXpad :: (MonadIO m, IsGutter o) => o -> Int32 -> m () Source #
Set the value of the “xpad
” property.
When overloading is enabled, this is equivalent to
set
gutter [ #xpad:=
value ]
ypad
The y-padding.
constructGutterYpad :: IsGutter o => Int32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “ypad
” property. This is rarely needed directly, but it is used by new
.
getGutterYpad :: (MonadIO m, IsGutter o) => o -> m Int32 Source #
Get the value of the “ypad
” property.
When overloading is enabled, this is equivalent to
get
gutter #ypad
setGutterYpad :: (MonadIO m, IsGutter o) => o -> Int32 -> m () Source #
Set the value of the “ypad
” property.
When overloading is enabled, this is equivalent to
set
gutter [ #ypad:=
value ]