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§
Sourcefn child_offset(&self) -> PxVector
fn child_offset(&self) -> PxVector
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.
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.