GutterRendererPixbuf
-
class GutterRendererPixbuf(**properties: Any)
Superclasses: GutterRenderer, Widget, InitiallyUnowned, Object
Implemented Interfaces: Accessible, Buildable, ConstraintTarget
Renders a pixbuf in the gutter.
A GtkSourceGutterRendererPixbuf can be used to render an image in a cell of
Gutter.
Methods
-
class GutterRendererPixbuf
-
get_gicon() → Icon
Get the gicon of the renderer
-
get_icon_name() → str
-
get_paintable() → Paintable | None
Gets a Paintable that was set with
set_paintable
-
get_pixbuf() → Pixbuf
Get the pixbuf of the renderer.
-
overlay_paintable(paintable: Paintable) → None
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.
- Parameters:
paintable – a Paintable
-
set_gicon(icon: Icon | None = None) → None
- Parameters:
icon – the icon, or None.
-
set_icon_name(icon_name: str | None = None) → None
- Parameters:
icon_name – the icon name, or None.
-
set_paintable(paintable: Paintable | None = None) → None
- Parameters:
paintable – the paintable, or None.
-
set_pixbuf(pixbuf: Pixbuf | None = None) → None
- Parameters:
pixbuf – the pixbuf, or None.
Properties
-
class GutterRendererPixbuf
-
props.gicon: Icon
The type of the None singleton.
-
props.icon_name: str
The type of the None singleton.
-
props.paintable: Paintable
The type of the None singleton.
-
props.pixbuf: Pixbuf
The type of the None singleton.
Fields
-
class GutterRendererPixbuf
-
parent_instance