pub struct ScrollRow {
pub elements: Vec<AssetId>,
pub base_y: f32,
pub height: f32,
pub group: i32,
}Expand description
One row inside a ScrollPanel: the elements that move together, the row’s height, and the collapsible group it belongs to.
Fields§
§elements: Vec<AssetId>The Sprite/TextLabel ids that make up this row and move (and clip) together. Click regions are matched to their row by position, so they are not listed here.
base_y: f32The row’s authored top edge in reference pixels (its build-time, all groups expanded, unscrolled position).
height: f32The row’s height in reference pixels (its vertical pitch in the stack).
group: i32Index into ScrollPanel::groups of the group whose collapsed state
hides this row, or -1 for a row that is always shown (a group header
or an ungrouped row).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ScrollRow
impl<'de> Deserialize<'de> for ScrollRow
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScrollRow, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScrollRow, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ScrollRow
impl Serialize for ScrollRow
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ScrollRow
impl RefUnwindSafe for ScrollRow
impl Send for ScrollRow
impl Sync for ScrollRow
impl Unpin for ScrollRow
impl UnsafeUnpin for ScrollRow
impl UnwindSafe for ScrollRow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more