Trait gtk::prelude::ButtonBoxExt[][src]

pub trait ButtonBoxExt: 'static {
    fn child_is_non_homogeneous<P: IsA<Widget>>(&self, child: &P) -> bool;
fn child_is_secondary<P: IsA<Widget>>(&self, child: &P) -> bool;
fn layout(&self) -> ButtonBoxStyle;
fn set_child_non_homogeneous<P: IsA<Widget>>(
        &self,
        child: &P,
        non_homogeneous: bool
    );
fn set_child_secondary<P: IsA<Widget>>(&self, child: &P, is_secondary: bool);
fn set_layout(&self, layout_style: ButtonBoxStyle);
fn layout_style(&self) -> ButtonBoxStyle;
fn set_layout_style(&self, layout_style: ButtonBoxStyle);
fn connect_layout_style_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }
Expand description

Trait containing all ButtonBox methods.

Implementors

ButtonBox

Required methods

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

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.

Retrieves the method being used to arrange the buttons in a button box.

Returns

the method used to lay out buttons in self.

Sets whether the child is exempted from homogeous sizing.

child

a child of self

non_homogeneous

the new value

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.

Changes the way buttons are arranged in their container.

layout_style

the new layout style

Implementors