Package org.gnome.gtk
Class CellRendererToggle
- All Implemented Interfaces:
Proxy
@Generated("io.github.jwharm.JavaGI")
@Deprecated
public class CellRendererToggle
extends CellRenderer
Deprecated.
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.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Deprecated.Inner class implementing a builder pattern to construct a GObject with properties.static interface
Deprecated.Functional interface declaration of theToggledCallback
callback.Nested classes/interfaces inherited from class org.gnome.gtk.CellRenderer
CellRenderer.CellRendererClass, CellRenderer.CellRendererImpl, CellRenderer.EditingCanceledCallback, CellRenderer.EditingStartedCallback
Nested classes/interfaces inherited from class org.gnome.gobject.InitiallyUnowned
InitiallyUnowned.InitiallyUnownedClass
Nested classes/interfaces inherited from class org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClass
-
Constructor Summary
ConstructorDescriptionDeprecated.CellRendererToggle
(MemorySegment address) Deprecated.Create a CellRendererToggle proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected CellRendererToggle
asParent()
Deprecated.Returns this instance as if it were its parent type.static CellRendererToggle.Builder
<? extends CellRendererToggle.Builder> builder()
Deprecated.ACellRendererToggle.Builder
object constructs aCellRendererToggle
with the specified properties.void
emitToggled
(String path) Deprecated.Emits the "toggled" signal.boolean
Deprecated.boolean
Deprecated.boolean
getRadio()
Deprecated.static Type
getType()
Deprecated.Get the GType of the CellRendererToggle classDeprecated.The ::toggled signal is emitted when the cell is toggled.void
setActivatable
(boolean setting) Deprecated.void
setActive
(boolean setting) Deprecated.void
setRadio
(boolean radio) Deprecated.Methods inherited from class org.gnome.gtk.CellRenderer
activate, activate, editingCanceled, editingStarted, emitEditingCanceled, emitEditingStarted, getAlignedArea, getAlignedArea, getAlignment, getFixedSize, getIsExpanded, getIsExpander, getMemoryLayout, getPadding, getPreferredHeight, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getRequestMode, getSensitive, getState, getState, getVisible, isActivatable, onEditingCanceled, onEditingStarted, setAlignment, setFixedSize, setIsExpanded, setIsExpander, setPadding, setSensitive, setVisible, snapshot, snapshot, startEditing, startEditing, stopEditing
Methods inherited from class org.gnome.gobject.GObject
addToggleRef, addWeakPointer, bindProperty, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, connect, constructed, disconnect, dispatchPropertiesChanged, dispose, dupData, dupQdata, emit, emitNotify, finalize_, forceFloating, freezeNotify, get, getData, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, newInstance, newInstance, newInstance, newInstance, newv, notify_, notify_, notifyByPspec, onNotify, ref, refSink, removeToggleRef, removeWeakPointer, replaceData, replaceQdata, runDispose, set, setData, setDataFull, setProperty, setProperty, setProperty, setQdata, setQdataFull, setv, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref, withProperties
Methods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, getPrivate, readGClass, writeGClass
Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
CellRendererToggle
Deprecated.Create a CellRendererToggle proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
CellRendererToggle
Deprecated.Creates a newGtkCellRendererToggle
. 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.
-
-
Method Details
-
getType
Deprecated.Get the GType of the CellRendererToggle class- Returns:
- the GType
-
asParent
Deprecated.Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuper
keyword, but will set the native typeclass function pointers to the parent type. When overriding a native virtual method in Java, "chaining up" withsuper.methodName()
doesn't work, because it invokes the overridden function pointer again. To chain up, callasParent().methodName()
. This will call the native function pointer of this virtual method in the typeclass of the parent type.- Overrides:
asParent
in classCellRenderer
-
getActivatable
Deprecated.Returns whether the cell renderer is activatable. See gtk_cell_renderer_toggle_set_activatable().- Returns:
true
if the cell renderer is activatable.
-
getActive
Deprecated.Returns whether the cell renderer is active. See gtk_cell_renderer_toggle_set_active().- Returns:
true
if the cell renderer is active.
-
getRadio
Deprecated.Returns whether we’re rendering radio toggles rather than checkboxes.- Returns:
true
if we’re rendering radio toggles rather than checkboxes
-
setActivatable
Deprecated.Makes the cell renderer activatable.- Parameters:
setting
- the value to set.
-
setActive
Deprecated.Activates or deactivates a cell renderer.- Parameters:
setting
- the value to set.
-
setRadio
Deprecated.Ifradio
istrue
, the cell renderer renders a radio toggle (i.e. a toggle in a group of mutually-exclusive toggles). Iffalse
, 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 (forGtkTreeView
, you set up a per-row setting usingGtkTreeViewColumn
to associate model columns with cell renderer properties).- Parameters:
radio
-true
to make the toggle look like a radio button
-
onToggled
public SignalConnection<CellRendererToggle.ToggledCallback> onToggled(CellRendererToggle.ToggledCallback handler) Deprecated.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 atpath
.- Parameters:
handler
- the signal handler- Returns:
- a signal handler ID to keep track of the signal connection
- See Also:
-
emitToggled
Deprecated.Emits the "toggled" signal. SeeonToggled(org.gnome.gtk.CellRendererToggle.ToggledCallback)
. -
builder
Deprecated.ACellRendererToggle.Builder
object constructs aCellRendererToggle
with the specified properties. Use the variousset...()
methods to set properties, and finish construction withCellRendererToggle.Builder.build()
.
-