Skip to main content

GroupModel

Trait GroupModel 

Source
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§

Source

fn id(&self) -> i32

Source

fn bounds(&self) -> Bounds

The authoritative bounds in world coordinates.

Source

fn set_bounds(&mut self, bounds: Bounds)

Source

fn selected(&self) -> bool

Source

fn collapsed(&self) -> bool

Source

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".

Implementors§