[−][src]Trait gtk::ButtonBoxExt
Required methods
fn get_child_non_homogeneous<P: IsA<Widget>>(&self, child: &P) -> bool
Returns whether the child is exempted from homogenous sizing.
child
a child of self
Returns
true
if the child is not subject to homogenous sizing
fn get_child_secondary<P: IsA<Widget>>(&self, child: &P) -> bool
Returns whether child
should appear in a secondary group of children.
child
a child of self
Returns
whether child
should appear in a secondary group of children.
fn get_layout(&self) -> ButtonBoxStyle
Retrieves the method being used to arrange the buttons in a button box.
Returns
the method used to lay out buttons in self
.
fn set_child_non_homogeneous<P: IsA<Widget>>(
&self,
child: &P,
non_homogeneous: bool
)
&self,
child: &P,
non_homogeneous: bool
)
Sets whether the child is exempted from homogeous sizing.
child
a child of self
non_homogeneous
the new value
fn set_child_secondary<P: IsA<Widget>>(&self, child: &P, is_secondary: bool)
Sets whether child
should appear in a secondary group of children.
A typical use of a secondary child is the help button in a dialog.
This group appears after the other children if the style
is ButtonBoxStyle::Start
, ButtonBoxStyle::Spread
or
ButtonBoxStyle::Edge
, and before the other children if the style
is ButtonBoxStyle::End
. For horizontal button boxes, the definition
of before/after depends on direction of the widget (see
WidgetExt::set_direction
). If the style is ButtonBoxStyle::Start
or ButtonBoxStyle::End
, then the secondary children are aligned at
the other end of the button box from the main children. For the
other styles, they appear immediately next to the main children.
child
a child of self
is_secondary
if true
, the child
appears in a secondary group of the
button box.
fn set_layout(&self, layout_style: ButtonBoxStyle)
fn get_property_layout_style(&self) -> ButtonBoxStyle
fn set_property_layout_style(&self, layout_style: ButtonBoxStyle)
fn connect_property_layout_style_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<ButtonBox>> ButtonBoxExt for O
[src]
fn get_child_non_homogeneous<P: IsA<Widget>>(&self, child: &P) -> bool
[src]
fn get_child_secondary<P: IsA<Widget>>(&self, child: &P) -> bool
[src]
fn get_layout(&self) -> ButtonBoxStyle
[src]
fn set_child_non_homogeneous<P: IsA<Widget>>(
&self,
child: &P,
non_homogeneous: bool
)
[src]
&self,
child: &P,
non_homogeneous: bool
)
fn set_child_secondary<P: IsA<Widget>>(&self, child: &P, is_secondary: bool)
[src]
fn set_layout(&self, layout_style: ButtonBoxStyle)
[src]
fn get_property_layout_style(&self) -> ButtonBoxStyle
[src]
fn set_property_layout_style(&self, layout_style: ButtonBoxStyle)
[src]
fn connect_property_layout_style_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId