Trait zng::widget::node::PanelListData
source · pub trait PanelListData:
Default
+ Send
+ Any {
// Required methods
fn child_offset(&self) -> Vector2D<Px, Px>;
fn define_reference_frame(&self) -> bool;
fn commit(&mut self) -> PanelListDataChanges;
}
Expand description
Represents an item’s associated data in a PanelList
.
Required Methods§
sourcefn child_offset(&self) -> Vector2D<Px, Px>
fn child_offset(&self) -> Vector2D<Px, Px>
Gets the child offset to be used in the default render_all
and render_update_all
implementations.
sourcefn define_reference_frame(&self) -> bool
fn define_reference_frame(&self) -> bool
If a new reference frame should be created for the item during render.
sourcefn commit(&mut self) -> PanelListDataChanges
fn commit(&mut self) -> PanelListDataChanges
Commit child_offset
and define_reference_frame
changes.
Returns flags that indicate what values changed.
Object Safety§
This trait is not object safe.