pub struct PopoverStyleConfig {
pub content: WidgetId,
pub variant: PopoverVariant,
pub name: String,
pub placement: OverlayPlacement,
pub show_caret: bool,
pub caret_size: f32,
}Fields§
§content: WidgetIdPre-built content subtree that the popover frame wraps.
variant: PopoverVariant§name: StringAccessible name for the popover dialog node — typically the trigger label.
placement: OverlayPlacementOverlay placement (drives caret direction + which side of the shadow to suppress so the panel reads as attached to its trigger).
show_caret: boolWhether to paint a directional caret pointing at the trigger.
caret_size: f32Caret half-extent in logical pixels (the apex protrudes by
this amount). Honoured only when show_caret == true AND the
placement is one of the cardinal Above/Below directions.
Trait Implementations§
Source§impl Clone for PopoverStyleConfig
impl Clone for PopoverStyleConfig
Source§fn clone(&self) -> PopoverStyleConfig
fn clone(&self) -> PopoverStyleConfig
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 moreAuto Trait Implementations§
impl Freeze for PopoverStyleConfig
impl RefUnwindSafe for PopoverStyleConfig
impl Send for PopoverStyleConfig
impl Sync for PopoverStyleConfig
impl Unpin for PopoverStyleConfig
impl UnsafeUnpin for PopoverStyleConfig
impl UnwindSafe for PopoverStyleConfig
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