GroupBuilderExt

Trait GroupBuilderExt 

Source
pub trait GroupBuilderExt {
    // Required methods
    fn group(self, group: impl GroupExt) -> Self;
    fn widget(self, widget: impl WidgetExt) -> Self;
    fn as_resizeable(self, val: bool) -> Self;
    fn with_clip_children(self, flag: bool) -> Self;
}
Expand description

Defines all necessary functions for group widgets to add widgets and other groups as children, as well as builder friendly versions of several setter functions

Required Methods§

Source

fn group(self, group: impl GroupExt) -> Self

Adds a group widget as a child

Source

fn widget(self, widget: impl WidgetExt) -> Self

Adds a widget as a child

Source

fn as_resizeable(self, val: bool) -> Self

Make the group itself resizable

Source

fn with_clip_children(self, flag: bool) -> Self

Clips children outside the group boundaries

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<G> GroupBuilderExt for G
where G: GroupExt,