[−][src]Trait gtk::CellRendererToggleExt
Required methods
fn get_activatable(&self) -> bool
Returns whether the cell renderer is activatable. See
CellRendererToggleExt::set_activatable
.
Returns
true
if the cell renderer is activatable.
fn get_active(&self) -> bool
Returns whether the cell renderer is active. See
CellRendererToggleExt::set_active
.
Returns
true
if the cell renderer is active.
fn get_radio(&self) -> bool
Returns whether we’re rendering radio toggles rather than checkboxes.
Returns
true
if we’re rendering radio toggles rather than checkboxes
fn set_activatable(&self, setting: bool)
fn set_active(&self, setting: bool)
fn set_radio(&self, radio: bool)
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 TreeView
, you set
up a per-row setting using TreeViewColumn
to associate model
columns with cell renderer properties).
radio
true
to make the toggle look like a radio button
fn get_property_inconsistent(&self) -> bool
fn set_property_inconsistent(&self, inconsistent: bool)
fn get_property_indicator_size(&self) -> i32
fn set_property_indicator_size(&self, indicator_size: i32)
fn connect_toggled<F: Fn(&Self, TreePath) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
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
.
path
string representation of TreePath
describing the
event location
fn connect_property_activatable_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_active_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_inconsistent_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_indicator_size_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_radio_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<CellRendererToggle>> CellRendererToggleExt for O
[src]
fn get_activatable(&self) -> bool
[src]
fn get_active(&self) -> bool
[src]
fn get_radio(&self) -> bool
[src]
fn set_activatable(&self, setting: bool)
[src]
fn set_active(&self, setting: bool)
[src]
fn set_radio(&self, radio: bool)
[src]
fn get_property_inconsistent(&self) -> bool
[src]
fn set_property_inconsistent(&self, inconsistent: bool)
[src]
fn get_property_indicator_size(&self) -> i32
[src]
fn set_property_indicator_size(&self, indicator_size: i32)
[src]
fn connect_toggled<F: Fn(&Self, TreePath) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_activatable_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_active_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_inconsistent_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_indicator_size_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_radio_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId