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 |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GtkSource.Gutter(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- 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_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.
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.