Class: Gtk::CellRendererToggle
- Inherits:
-
CellRenderer
- Object
- GObject::InitiallyUnowned
- CellRenderer
- Gtk::CellRendererToggle
- Defined in:
- (unknown)
Overview
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.
Instance Method Summary collapse
-
#activatable ⇒ Boolean
Returns whether the cell renderer is activatable.
- #activatable=(activatable) ⇒ Boolean
-
#activatable? ⇒ Boolean
Activatable.
-
#active ⇒ Boolean
Returns whether the cell renderer is active.
- #active=(active) ⇒ Boolean
-
#active? ⇒ Boolean
Active.
- #inconsistent=(inconsistent) ⇒ Boolean
-
#inconsistent? ⇒ Boolean
Inconsistent.
-
#initialize ⇒ Gtk::CellRenderer
constructor
Creates a new
GtkCellRendererToggle. -
#radio ⇒ Boolean
Returns whether we’re rendering radio toggles rather than checkboxes.
- #radio=(radio) ⇒ Boolean
-
#radio? ⇒ Boolean
Radio.
Methods inherited from CellRenderer
#activate, #cell_background=, #cell_background_rgba, #cell_background_rgba=, #cell_background_set=, #cell_background_set?, #editing=, #editing?, #get_aligned_area, #get_alignment, #get_fixed_size, #get_padding, #get_preferred_height, #get_preferred_height_for_width, #get_preferred_size, #get_preferred_width, #get_preferred_width_for_height, #get_state, #height, #height=, #is_activatable, #is_expanded, #is_expanded=, #is_expanded?, #is_expander, #is_expander=, #is_expander?, #mode, #mode=, #request_mode, #sensitive, #sensitive=, #sensitive?, #set_alignment, #set_fixed_size, #set_padding, #snapshot, #start_editing, #stop_editing, #visible, #visible=, #visible?, #width, #width=, #xalign, #xalign=, #xpad, #xpad=, #yalign, #yalign=, #ypad, #ypad=
Constructor Details
#initialize ⇒ Gtk::CellRenderer
Creates a new GtkCellRendererToggle. Adjust rendering
parameters using object properties. Object properties can be set
globally (with g_object_set()). Also, with GtkTreeViewColumn, you
can bind a property to a value in a GtkTreeModel. 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.
Instance Method Details
#activatable ⇒ Boolean
Returns whether the cell renderer is activatable. See gtk_cell_renderer_toggle_set_activatable().
#activatable=(activatable) ⇒ Boolean
#activatable? ⇒ Boolean
Returns activatable.
#active ⇒ Boolean
Returns whether the cell renderer is active. See gtk_cell_renderer_toggle_set_active().
#active=(active) ⇒ Boolean
#active? ⇒ Boolean
Returns active.
#inconsistent=(inconsistent) ⇒ Boolean
#inconsistent? ⇒ Boolean
Returns inconsistent.
#radio ⇒ Boolean
Returns whether we’re rendering radio toggles rather than checkboxes.
#radio=(radio) ⇒ Boolean
#radio? ⇒ Boolean
Returns radio.