pub struct SelectItemAlignedElementInputs {Show 20 fields
pub direction: LayoutDirection,
pub window: Rect,
pub trigger: Rect,
pub content_min_width: Px,
pub content_border_top: Px,
pub content_padding_top: Px,
pub content_border_bottom: Px,
pub content_padding_bottom: Px,
pub viewport_padding_top: Px,
pub viewport_padding_bottom: Px,
pub selected_item_is_first: bool,
pub selected_item_is_last: bool,
pub value_node: GlobalElementId,
pub viewport: GlobalElementId,
pub listbox: GlobalElementId,
pub content_panel: GlobalElementId,
pub scroll_max_offset_y: Option<Px>,
pub content_width_probe: Option<GlobalElementId>,
pub selected_item: GlobalElementId,
pub selected_item_text: GlobalElementId,
}Fields§
§direction: LayoutDirection§window: Rect§trigger: Rect§content_min_width: PxMinimum content width (matches CSS min-width on the content element).
content_border_top: Px§content_padding_top: Px§content_border_bottom: Px§content_padding_bottom: Px§viewport_padding_top: Px§viewport_padding_bottom: Px§selected_item_is_first: bool§selected_item_is_last: bool§value_node: GlobalElementId§viewport: GlobalElementId§listbox: GlobalElementId§content_panel: GlobalElementId§scroll_max_offset_y: Option<Px>Optional scroll max offset (Y) for the viewport.
When provided, it is used to derive a stable items_height (viewport.scrollHeight) even
when the listbox content element’s bounds are clipped by the scroll viewport.
content_width_probe: Option<GlobalElementId>Optional probe element that represents the intrinsic content width (e.g. max item label).
When present, the measured width is used as an additional lower bound for the item-aligned solver. This mirrors Radix’s behavior where the content can grow beyond the trigger width when items require more space.
selected_item: GlobalElementId§selected_item_text: GlobalElementIdTrait Implementations§
Source§impl Clone for SelectItemAlignedElementInputs
impl Clone for SelectItemAlignedElementInputs
Source§fn clone(&self) -> SelectItemAlignedElementInputs
fn clone(&self) -> SelectItemAlignedElementInputs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for SelectItemAlignedElementInputs
impl PartialEq for SelectItemAlignedElementInputs
Source§fn eq(&self, other: &SelectItemAlignedElementInputs) -> bool
fn eq(&self, other: &SelectItemAlignedElementInputs) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SelectItemAlignedElementInputs
impl StructuralPartialEq for SelectItemAlignedElementInputs
Auto Trait Implementations§
impl Freeze for SelectItemAlignedElementInputs
impl RefUnwindSafe for SelectItemAlignedElementInputs
impl Send for SelectItemAlignedElementInputs
impl Sync for SelectItemAlignedElementInputs
impl Unpin for SelectItemAlignedElementInputs
impl UnsafeUnpin for SelectItemAlignedElementInputs
impl UnwindSafe for SelectItemAlignedElementInputs
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