GimpUi.CellRendererToggle¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.CellRendererToggle (7), Gtk.CellRenderer (25), GObject.Object (37)
- Structs:
class |
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/c |
The icon to display |
||
r/w/c |
The desired icon size to use in pixel (before applying scaling factor) |
||
r/w/c |
Draw the background if the row is selected |
Signals¶
Name |
Short Description |
|---|---|
Fields¶
Class Details¶
- class GimpUi.CellRendererToggle(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
Gtk.CellRendererTogglethat displays icons instead of a checkbox.- classmethod new(icon_name)¶
- Parameters:
icon_name (
str) – the icon name of the icon to use for the active state- Returns:
- Return type:
Creates a custom version of the
Gtk.CellRendererToggle. Instead of showing the standard toggle button, it shows a named icon if the cell is active and no icon otherwise. This cell renderer is for example used in the Layers treeview to indicate and control the layer’s visibility by showing %GIMP_STOCK_VISIBLE.New in version 2.2.
- clicked(path, state)¶
- Parameters:
path (
str) – the path to the clicked rowstate (
Gdk.ModifierType) – the modifier state
Emits the “clicked” signal from a
GimpUi.CellRendererToggle.New in version 2.2.
Signal Details¶
- GimpUi.CellRendererToggle.signals.clicked(cell_renderer_toggle, object, p0)¶
- Signal Name:
clicked- Flags:
- Parameters:
cell_renderer_toggle (
GimpUi.CellRendererToggle) – The object which received the signalobject (
str) –p0 (
Gdk.ModifierType) –
Property Details¶
- GimpUi.CellRendererToggle.props.icon_name¶
-
The icon to display
- GimpUi.CellRendererToggle.props.icon_size¶
-
The desired icon size to use in pixel (before applying scaling factor)