pub trait GroupModel: Clone + 'static {
// Required methods
fn id(&self) -> i32;
fn bounds(&self) -> Bounds;
fn set_bounds(&mut self, bounds: Bounds);
fn selected(&self) -> bool;
fn collapsed(&self) -> bool;
fn set_collapsed(&mut self, collapsed: bool);
}Expand description
A group row: authoritative bounds, collapse and selection.
Implemented for the Slint GroupData struct. Implement it for your own
row type to keep extra fields alongside.
Required Methods§
fn id(&self) -> i32
fn set_bounds(&mut self, bounds: Bounds)
fn selected(&self) -> bool
fn collapsed(&self) -> bool
fn set_collapsed(&mut self, collapsed: bool)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".