zng_app::widget::node

Trait PanelListData

Source
pub trait PanelListData:
    Default
    + Send
    + Any {
    // Required methods
    fn child_offset(&self) -> PxVector;
    fn define_reference_frame(&self) -> bool;
    fn commit(&mut self) -> PanelListDataChanges;
}
Expand description

Represents an item’s associated data in a PanelList.

Required Methods§

Source

fn child_offset(&self) -> PxVector

Gets the child offset to be used in the default render_all and render_update_all implementations.

Source

fn define_reference_frame(&self) -> bool

If a new reference frame should be created for the item during render.

Source

fn commit(&mut self) -> PanelListDataChanges

Commit child_offset and define_reference_frame changes.

Returns flags that indicate what values changed.

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.

Implementations on Foreign Types§

Source§

impl PanelListData for ()

Implementors§