GtkSource.Gutter¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
|||
r/w/co |
The gutters’ text window type |
||
d/r/w/c |
The x-padding |
||
d/r/w/c |
The y-padding |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GtkSource.Gutter(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- get_padding(xpad, ypad)¶
-
Deprecated since version 3.12: Use
GtkSource.GutterRenderer.get_padding
() instead.
- get_renderer_at_pos(x, y)¶
- Parameters:
- Returns:
the renderer at (x, y) or
None
.- Return type:
Finds the
GtkSource.GutterRenderer
at (x, y).
- get_view()¶
- Returns:
the associated
GtkSource.View
.- Return type:
New in version 3.24.
- get_window()¶
- Returns:
the
Gdk.Window
of the gutter, orNone
if the gutter has no window.- Return type:
Get the
Gdk.Window
of the gutter. The window will only be available when the gutter has at least one, non-zero width, cell renderer packed.New in version 2.8.
Deprecated since version 3.12: Use
Gtk.TextView.get_window
() instead.
- get_window_type()¶
- Returns:
the
Gtk.TextWindowType
of self.- Return type:
New in version 3.24.
- insert(renderer, position)¶
- Parameters:
renderer (
GtkSource.GutterRenderer
) – a gutter renderer (must inherit fromGtkSource.GutterRenderer
).position (
int
) – the renderer position.
- Returns:
- Return type:
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.
New in version 3.0.
- queue_draw()¶
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.
New in version 2.8.
- remove(renderer)¶
- Parameters:
renderer (
GtkSource.GutterRenderer
) – aGtkSource.GutterRenderer
.
Removes renderer from self.
New in version 2.8.
- reorder(renderer, position)¶
- Parameters:
renderer (
GtkSource.GutterRenderer
) – aGtk.CellRenderer
.position (
int
) – the new renderer position.
Reorders renderer in self to new position.
New in version 2.8.
- set_padding(xpad, ypad)¶
-
Deprecated since version 3.12: Use
GtkSource.GutterRenderer.set_padding
() instead.
Property Details¶
- GtkSource.Gutter.props.view¶
- Name:
view
- Type:
- Default Value:
- Flags:
The
GtkSource.View
of the gutter.
- GtkSource.Gutter.props.window_type¶
- Name:
window-type
- Type:
- Default Value:
- Flags:
The text window type on which the window is placed.
- GtkSource.Gutter.props.xpad¶
- Name:
xpad
- Type:
- Default Value:
0
- Flags:
The x-padding.
Deprecated since version 3.12: Use the
GtkSource.GutterRenderer
'sGtkSource.GutterRenderer
:xpad
property instead.
- GtkSource.Gutter.props.ypad¶
- Name:
ypad
- Type:
- Default Value:
0
- Flags:
The y-padding.
Deprecated since version 3.12: Use the
GtkSource.GutterRenderer
'sGtkSource.GutterRenderer
:ypad
property instead.