pub struct ScrollGroup {
pub collapsed: bool,
pub header: Option<AssetId>,
pub title: String,
}Expand description
A collapsible group of rows inside a ScrollPanel.
Fields§
§collapsed: boolWhether the group starts collapsed (its body rows hidden).
header: Option<AssetId>The header TextLabel whose text gets a +/- prefix to
reflect the collapsed state. None leaves the header text unchanged.
title: StringThe header’s base title (e.g. "Advanced"); the UI shows "+ Advanced"
when collapsed and "- Advanced" when expanded.
Trait Implementations§
Source§impl Clone for ScrollGroup
impl Clone for ScrollGroup
Source§fn clone(&self) -> ScrollGroup
fn clone(&self) -> ScrollGroup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScrollGroup
impl Debug for ScrollGroup
Source§impl Default for ScrollGroup
impl Default for ScrollGroup
Source§fn default() -> ScrollGroup
fn default() -> ScrollGroup
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScrollGroupwhere
ScrollGroup: Default,
impl<'de> Deserialize<'de> for ScrollGroupwhere
ScrollGroup: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScrollGroup
impl RefUnwindSafe for ScrollGroup
impl Send for ScrollGroup
impl Sync for ScrollGroup
impl Unpin for ScrollGroup
impl UnsafeUnpin for ScrollGroup
impl UnwindSafe for ScrollGroup
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