GtkSource.Gutter

g GObject.Object GObject.Object GtkSource.Gutter GtkSource.Gutter GObject.Object->GtkSource.Gutter

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_renderer_at_pos (x, y)

get_view ()

get_window_type ()

insert (renderer, position)

queue_draw ()

remove (renderer)

reorder (renderer, position)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

view

GtkSource.View

r/w/co

window-type

Gtk.TextWindowType

r/w/co

The gutters’ text window type

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class GtkSource.Gutter(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GtkSource.GutterClass

get_renderer_at_pos(x, y)
Parameters:
  • x (int) – The x position to get identified.

  • y (int) – The y position to get identified.

Returns:

the renderer at (x, y) or None.

Return type:

GtkSource.GutterRenderer or None

Finds the GtkSource.GutterRenderer at (x, y).

get_view()
Returns:

the associated GtkSource.View.

Return type:

GtkSource.View

New in version 3.24.

get_window_type()
Returns:

the Gtk.TextWindowType of self.

Return type:

Gtk.TextWindowType

New in version 3.24.

insert(renderer, position)
Parameters:
Returns:

True if operation succeeded. Otherwise False.

Return type:

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.

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) – a GtkSource.GutterRenderer.

Removes renderer from self.

New in version 2.8.

reorder(renderer, position)
Parameters:

Reorders renderer in self to new position.

New in version 2.8.

Property Details

GtkSource.Gutter.props.view
Name:

view

Type:

GtkSource.View

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The GtkSource.View of the gutter.

GtkSource.Gutter.props.window_type
Name:

window-type

Type:

Gtk.TextWindowType

Default Value:

Gtk.TextWindowType.PRIVATE

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The text window type on which the window is placed.