Basics
Guides
API Reference
Basics
Guides
API Reference
[15:7] extends: object
Renders a toggle button in a cell GtkCellRendererToggle renders a toggle
button in a cell. The button is drawn as a radio or a checkbutton, depending
on the GtkCellRendererToggle:radio property. When activated, it emits the
GtkCellRendererToggle::toggled signal.
CellRendererToggle ()
Creates a new
GtkCellRendererToggle. Adjust rendering parameters using object properties. Object properties can be set globally (with g_object_set()). Also, withGtkTreeViewColumn, you can bind a property to a value in aGtkTreeModel. For example, you can bind the “active” property on the cell renderer to a boolean value in the model, thus causing the check button to reflect the state of the model.
toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asCellRenderer ()
Wraps this handle as
CellRenderer.
A CellRenderer object.connectSignal (string Name, CallbackObj)
Connects one generated callback wrapper to a named signal.
Name is the signal name.CallbackObj is the generated callback wrapper to connect.The connected handler id.disconnectSignalHandler (int HandlerId)
Disconnects one retained signal handler id.
HandlerId is the signal handler id to disconnect.None.setOnToggled (callback Fn, UserData = null)
The ::toggled signal is emitted when the cell is toggled. It is the responsibility of the application to update the model with the correct value to store at @path. Often this is simply the opposite of the value currently stored at @path.
Fn is the Aussom callback.Fn is called with (CellRendererToggle Self, string Path).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setActivatable (bool Value)
Writes the
activatableproperty.
Value is the new property value.None.setActive (bool Value)
Writes the
activeproperty.
Value is the new property value.None.setInconsistent (bool Value)
Writes the
inconsistentproperty.
Value is the new property value.None.setRadio (bool Value)
Writes the
radioproperty.
Value is the new property value.None.get_activatable ()
Returns whether the cell renderer is activatable. See gtk_cell_renderer_toggle_set_activatable().
get_active ()
Returns whether the cell renderer is active. See gtk_cell_renderer_toggle_set_active().
get_radio ()
Returns whether we’re rendering radio toggles rather than checkboxes.
set_activatable (bool setting)
Makes the cell renderer activatable.
setting is the value to set..None.set_active (bool setting)
Activates or deactivates a cell renderer.
setting is the value to set..None.set_radio (bool radio)
If @radio is %TRUE, the cell renderer renders a radio toggle (i.e. a toggle in a group of mutually-exclusive toggles). If %FALSE, it renders a check toggle (a standalone boolean option). This can be set globally for the cell renderer, or changed just before rendering each cell in the model (for
GtkTreeView, you set up a per-row setting usingGtkTreeViewColumnto associate model columns with cell renderer properties).
radio is %TRUE to make the toggle look like a radio button.None.[298:7] extends: object
Generated low-level callback wrapper for GIR callback toggled.
CellRendererToggleToggledCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, path, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[368:14] static extends: object
Generated metadata helpers for CellRendererToggle class surfaces.
properties ()
Returns property metadata for
CellRendererToggle.
A list.signals ()
Returns signal metadata for
CellRendererToggle.
A list.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.