[−][src]Trait gtk::prelude::ToolItemGroupExt
Required methods
fn get_collapsed(&self) -> bool
Gets whether self is collapsed or expanded.
Returns
true if self is collapsed, false if it is expanded
fn get_drop_item(&self, x: i32, y: i32) -> Option<ToolItem>
Gets the tool item at position (x, y).
x
the x position
y
the y position
Returns
the ToolItem at position (x, y)
fn get_ellipsize(&self) -> EllipsizeMode
fn get_header_relief(&self) -> ReliefStyle
fn get_item_position<P: IsA<ToolItem>>(&self, item: &P) -> i32
Gets the position of item in self as index.
item
a ToolItem
Returns
the index of item in self or -1 if item is no child of self
fn get_label(&self) -> Option<GString>
Gets the label of self.
Returns
the label of self. The label is an internal string of self
and must not be modified. Note that None is returned if a custom
label has been set with ToolItemGroupExt::set_label_widget
fn get_label_widget(&self) -> Option<Widget>
Gets the label widget of self.
See ToolItemGroupExt::set_label_widget.
Returns
the label widget of self
fn get_n_items(&self) -> u32
fn get_nth_item(&self, index: u32) -> Option<ToolItem>
fn insert<P: IsA<ToolItem>>(&self, item: &P, position: i32)
Inserts item at position in the list of children of self.
item
the ToolItem to insert into self
position
the position of item in self, starting with 0.
The position -1 means end of list.
fn set_collapsed(&self, collapsed: bool)
Sets whether the self should be collapsed or expanded.
collapsed
whether the self should be collapsed or expanded
fn set_ellipsize(&self, ellipsize: EllipsizeMode)
Sets the ellipsization mode which should be used by labels in self.
ellipsize
the pango::EllipsizeMode labels in self should use
fn set_header_relief(&self, style: ReliefStyle)
Set the button relief of the group header.
See ButtonExt::set_relief for details.
style
the ReliefStyle
fn set_item_position<P: IsA<ToolItem>>(&self, item: &P, position: i32)
Sets the position of item in the list of children of self.
item
the ToolItem to move to a new position, should
be a child of self.
position
the new position of item in self, starting with 0.
The position -1 means end of list.
fn set_label(&self, label: &str)
Sets the label of the tool item group. The label is displayed in the header of the group.
label
the new human-readable label of of the group
fn set_label_widget<P: IsA<Widget>>(&self, label_widget: &P)
Sets the label of the tool item group. The label widget is displayed in the header of the group, in place of the usual label.
label_widget
the widget to be displayed in place of the usual label
fn get_item_expand<T: IsA<ToolItem>>(&self, item: &T) -> bool
fn set_item_expand<T: IsA<ToolItem>>(&self, item: &T, expand: bool)
fn get_item_fill<T: IsA<ToolItem>>(&self, item: &T) -> bool
fn set_item_fill<T: IsA<ToolItem>>(&self, item: &T, fill: bool)
fn get_item_homogeneous<T: IsA<ToolItem>>(&self, item: &T) -> bool
fn set_item_homogeneous<T: IsA<ToolItem>>(&self, item: &T, homogeneous: bool)
fn get_item_new_row<T: IsA<ToolItem>>(&self, item: &T) -> bool
fn set_item_new_row<T: IsA<ToolItem>>(&self, item: &T, new_row: bool)
fn connect_property_collapsed_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_ellipsize_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_header_relief_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_label_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_label_widget_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<ToolItemGroup>> ToolItemGroupExt for O[src]
fn get_collapsed(&self) -> bool[src]
fn get_drop_item(&self, x: i32, y: i32) -> Option<ToolItem>[src]
fn get_ellipsize(&self) -> EllipsizeMode[src]
fn get_header_relief(&self) -> ReliefStyle[src]
fn get_item_position<P: IsA<ToolItem>>(&self, item: &P) -> i32[src]
fn get_label(&self) -> Option<GString>[src]
fn get_label_widget(&self) -> Option<Widget>[src]
fn get_n_items(&self) -> u32[src]
fn get_nth_item(&self, index: u32) -> Option<ToolItem>[src]
fn insert<P: IsA<ToolItem>>(&self, item: &P, position: i32)[src]
fn set_collapsed(&self, collapsed: bool)[src]
fn set_ellipsize(&self, ellipsize: EllipsizeMode)[src]
fn set_header_relief(&self, style: ReliefStyle)[src]
fn set_item_position<P: IsA<ToolItem>>(&self, item: &P, position: i32)[src]
fn set_label(&self, label: &str)[src]
fn set_label_widget<P: IsA<Widget>>(&self, label_widget: &P)[src]
fn get_item_expand<T: IsA<ToolItem>>(&self, item: &T) -> bool[src]
fn set_item_expand<T: IsA<ToolItem>>(&self, item: &T, expand: bool)[src]
fn get_item_fill<T: IsA<ToolItem>>(&self, item: &T) -> bool[src]
fn set_item_fill<T: IsA<ToolItem>>(&self, item: &T, fill: bool)[src]
fn get_item_homogeneous<T: IsA<ToolItem>>(&self, item: &T) -> bool[src]
fn set_item_homogeneous<T: IsA<ToolItem>>(&self, item: &T, homogeneous: bool)[src]
fn get_item_new_row<T: IsA<ToolItem>>(&self, item: &T) -> bool[src]
fn set_item_new_row<T: IsA<ToolItem>>(&self, item: &T, new_row: bool)[src]
fn connect_property_collapsed_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_ellipsize_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_header_relief_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_label_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_label_widget_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId