[−][src]Trait gtk::CellViewExt
Required methods
fn get_displayed_row(&self) -> Option<TreePath>
Returns a TreePath
referring to the currently
displayed row. If no row is currently displayed,
None
is returned.
Returns
the currently displayed row or None
fn get_draw_sensitive(&self) -> bool
Gets whether self
is configured to draw all of its
cells in a sensitive state.
Returns
whether self
draws all of its
cells in a sensitive state
fn get_fit_model(&self) -> bool
Gets whether self
is configured to request space
to fit the entire TreeModel
.
Returns
whether self
requests space to fit
the entire TreeModel
.
fn get_model(&self) -> Option<TreeModel>
fn set_background_rgba(&self, rgba: &RGBA)
fn set_displayed_row(&self, path: &mut TreePath)
Sets the row of the model that is currently displayed
by the CellView
. If the path is unset, then the
contents of the cellview “stick” at their last value;
this is not normally a desired result, but may be
a needed intermediate state if say, the model for
the CellView
becomes temporarily empty.
path
a TreePath
or None
to unset.
fn set_draw_sensitive(&self, draw_sensitive: bool)
Sets whether self
should draw all of its
cells in a sensitive state, this is used by ComboBox
menus
to ensure that rows with insensitive cells that contain
children appear sensitive in the parent menu item.
draw_sensitive
whether to draw all cells in a sensitive state.
fn set_fit_model(&self, fit_model: bool)
Sets whether self
should request space to fit the entire TreeModel
.
This is used by ComboBox
to ensure that the cell view displayed on
the combo box’s button always gets enough space and does not resize
when selection changes.
fit_model
whether self
should request space for the whole model.
fn set_model<P: IsA<TreeModel>>(&self, model: Option<&P>)
Sets the model for self
. If self
already has a model
set, it will remove it before setting the new model. If model
is
None
, then it will unset the old model.
model
a TreeModel
fn set_property_background(&self, background: Option<&str>)
fn get_property_background_rgba(&self) -> Option<RGBA>
The background color as a gdk::RGBA
fn get_property_background_set(&self) -> bool
fn set_property_background_set(&self, background_set: bool)
fn get_property_cell_area(&self) -> Option<CellArea>
The CellArea
rendering cells
If no area is specified when creating the cell view with CellView::new_with_context
a horizontally oriented CellAreaBox
will be used.
since 3.0
fn get_property_cell_area_context(&self) -> Option<CellAreaContext>
The CellAreaContext
used to compute the geometry of the cell view.
A group of cell views can be assigned the same context in order to ensure the sizes and cell alignments match across all the views with the same context.
ComboBox
menus uses this to assign the same context to all cell views
in the menu items for a single menu (each submenu creates its own
context since the size of each submenu does not depend on parent
or sibling menus).
since 3.0
fn connect_property_background_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_background_rgba_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_background_set_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_draw_sensitive_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_fit_model_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_model_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<CellView>> CellViewExt for O
[src]
fn get_displayed_row(&self) -> Option<TreePath>
[src]
fn get_draw_sensitive(&self) -> bool
[src]
fn get_fit_model(&self) -> bool
[src]
fn get_model(&self) -> Option<TreeModel>
[src]
fn set_background_rgba(&self, rgba: &RGBA)
[src]
fn set_displayed_row(&self, path: &mut TreePath)
[src]
fn set_draw_sensitive(&self, draw_sensitive: bool)
[src]
fn set_fit_model(&self, fit_model: bool)
[src]
fn set_model<P: IsA<TreeModel>>(&self, model: Option<&P>)
[src]
fn set_property_background(&self, background: Option<&str>)
[src]
fn get_property_background_rgba(&self) -> Option<RGBA>
[src]
fn get_property_background_set(&self) -> bool
[src]
fn set_property_background_set(&self, background_set: bool)
[src]
fn get_property_cell_area(&self) -> Option<CellArea>
[src]
fn get_property_cell_area_context(&self) -> Option<CellAreaContext>
[src]
fn connect_property_background_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_background_rgba_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_background_set_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_draw_sensitive_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_fit_model_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_model_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId