GtkSource.GutterRendererPixbuf

g GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget GtkSource.GutterRenderer GtkSource.GutterRenderer Gtk.Widget->GtkSource.GutterRenderer GtkSource.GutterRendererPixbuf GtkSource.GutterRendererPixbuf GtkSource.GutterRenderer->GtkSource.GutterRendererPixbuf

Subclasses:

None

Methods

Inherited:

GtkSource.GutterRenderer (15), Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

class

new ()

get_gicon ()

get_icon_name ()

get_paintable ()

get_pixbuf ()

overlay_paintable (paintable)

set_gicon (icon)

set_icon_name (icon_name)

set_paintable (paintable)

set_pixbuf (pixbuf)

Virtual Methods

Inherited:

GtkSource.GutterRenderer (8), Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)

Properties

Inherited:

GtkSource.GutterRenderer (7), Gtk.Widget (34), Gtk.Accessible (1)

Name

Type

Flags

Short Description

gicon

Gio.Icon

r/w/en

The gicon

icon-name

str

r/w/en

The icon name

paintable

Gdk.Paintable

r/w/en

The paintable

pixbuf

GdkPixbuf.Pixbuf

r/w/en

The pixbuf

Signals

Inherited:

GtkSource.GutterRenderer (3), Gtk.Widget (13), GObject.Object (1)

Fields

Inherited:

GtkSource.GutterRenderer (3), Gtk.Widget (13), GObject.Object (1)

Name

Type

Access

Description

parent_instance

GtkSource.GutterRenderer

r

Class Details

class GtkSource.GutterRendererPixbuf(**kwargs)
Bases:

GtkSource.GutterRenderer

Abstract:

No

Structure:

GtkSource.GutterRendererPixbufClass

Renders a pixbuf in the gutter.

A GtkSourceGutterRendererPixbuf can be used to render an image in a cell of [class`Gutter`].

classmethod new()
Returns:

A GtkSource.GutterRenderer

Return type:

GtkSource.GutterRenderer

Create a new GtkSource.GutterRendererPixbuf.

get_gicon()
Returns:

a Gio.Icon

Return type:

Gio.Icon

Get the gicon of the renderer

get_icon_name()
Return type:

str

get_paintable()
Returns:

a Gdk.Paintable or None

Return type:

Gdk.Paintable or None

Gets a [iface`Gdk`.Paintable] that was set with [method`GutterRendererPixbuf`.set_paintable]

get_pixbuf()
Returns:

a GdkPixbuf.Pixbuf

Return type:

GdkPixbuf.Pixbuf

Get the pixbuf of the renderer.

overlay_paintable(paintable)
Parameters:

paintable (Gdk.Paintable) – a Gdk.Paintable

Allows overlaying a paintable on top of any other image that has been set for the pixbuf. This will be applied when the widget is next snapshot.

set_gicon(icon)
Parameters:

icon (Gio.Icon or None) – the icon, or None.

set_icon_name(icon_name)
Parameters:

icon_name (str or None) – the icon name, or None.

set_paintable(paintable)
Parameters:

paintable (Gdk.Paintable or None) – the paintable, or None.

set_pixbuf(pixbuf)
Parameters:

pixbuf (GdkPixbuf.Pixbuf or None) – the pixbuf, or None.

Property Details

GtkSource.GutterRendererPixbuf.props.gicon
Name:

gicon

Type:

Gio.Icon

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The gicon

GtkSource.GutterRendererPixbuf.props.icon_name
Name:

icon-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The icon name

GtkSource.GutterRendererPixbuf.props.paintable
Name:

paintable

Type:

Gdk.Paintable

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The paintable

GtkSource.GutterRendererPixbuf.props.pixbuf
Name:

pixbuf

Type:

GdkPixbuf.Pixbuf

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The pixbuf