pub struct Group<'ui> { /* private fields */ }Expand description
A labeled container around a child control.
Groups enclose a single child control, providing a descriptive title of the contents. They are traditionally rendered as a rectangular border with an inline label. A group can optionally be margined, in which case empty space is inserted outside the border.
Implementations§
source§impl<'ui> Group<'ui>
impl<'ui> Group<'ui>
sourcepub fn title_as_ptr(&self) -> *mut c_char
pub fn title_as_ptr(&self) -> *mut c_char
Like title but returns an ASCII byte string.
sourcepub fn set_title(&self, title: impl Into<Vec<u8>>) -> Result<(), Error>
pub fn set_title(&self, title: impl Into<Vec<u8>>) -> Result<(), Error>
Sets the title of this group.
This overrides the title supplied to Ui::create_group.
sourcepub fn set_child(&self, child: &'ui impl DerefMut<Target = Control>)
pub fn set_child(&self, child: &'ui impl DerefMut<Target = Control>)
Sets the child control of this group.
This is unset by default.
sourcepub fn is_margined(&self) -> bool
pub fn is_margined(&self) -> bool
Determines if this group has margins.
Groups are not margined by default.
sourcepub fn set_margined(&self, value: bool)
pub fn set_margined(&self, value: bool)
Sets whether or not this group has margins.
Methods from Deref<Target = Control>§
sourcepub fn is_visible(&self) -> bool
pub fn is_visible(&self) -> bool
Determines if this control is visible.
Controls are visible by default except for Windows, which are invisible
by default.
sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Determines if this control responds to user interaction.
Controls are enabled by default.
sourcepub fn is_enabled_to_user(&self) -> bool
pub fn is_enabled_to_user(&self) -> bool
Determines if this control, and all of its parent controls, are enabled.
If this control is not a child of a parent control, then this function is equivalent to
is_enabled.
sourcepub fn native_handle(&self) -> *mut c_void
pub fn native_handle(&self) -> *mut c_void
A handle to the underlying OS object.