Class CellRendererToggle

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") @Deprecated public class CellRendererToggle extends CellRenderer
Deprecated.
List views use widgets to display their contents. You should use ToggleButton instead

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.

  • Constructor Details

    • CellRendererToggle

      public CellRendererToggle(MemorySegment address)
      Deprecated.
      Create a CellRendererToggle instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • CellRendererToggle

      public CellRendererToggle()
      Deprecated.
      Create a new CellRendererToggle.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Deprecated.
      Get the GType of the CellRendererToggle class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      Deprecated.
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected CellRendererToggle asParent()
      Deprecated.
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class CellRenderer
      Returns:
      the instance as if it were its parent type
    • getActivatable

      @Deprecated public boolean 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 public boolean 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 public boolean 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 public void setActivatable(boolean setting)
      Deprecated.
      Makes the cell renderer activatable.
      Parameters:
      setting - the value to set.
    • setActive

      @Deprecated public void setActive(boolean setting)
      Deprecated.
      Activates or deactivates a cell renderer.
      Parameters:
      setting - the value to set.
    • setRadio

      @Deprecated public void setRadio(boolean radio)
      Deprecated.
      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 using GtkTreeViewColumn to associate model columns with cell renderer properties).
      Parameters:
      radio - true to make the toggle look like a radio button
    • onToggled

      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 at path.

      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitToggled

      public void emitToggled(String path)
      Deprecated.
      Emits the "toggled" signal. See onToggled(CellRendererToggle.ToggledCallback).
    • builder

      public static CellRendererToggle.Builder<? extends CellRendererToggle.Builder> builder()
      Deprecated.
      A CellRendererToggle.Builder object constructs a CellRendererToggle with the specified properties. Use the various set...() methods to set properties, and finish construction with CellRendererToggle.Builder.build().
      Returns:
      the builder object