pub struct OverlayStyle {
pub bg: Color,
}Expand description
Fill style for draw_modal_overlay.
§Examples
use ailloli_ui_core::Color;
use ailloli_ui_widgets::overlay::popup::OverlayStyle;
let style = OverlayStyle { bg: Color::rgba(0, 0, 0, 0.5) };
assert_eq!(style.bg.a, 0.5);Fields§
§bg: ColorFull-overlay fill color, including alpha.
Trait Implementations§
Source§impl Clone for OverlayStyle
impl Clone for OverlayStyle
Source§fn clone(&self) -> OverlayStyle
fn clone(&self) -> OverlayStyle
Returns a copy 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 Debug for OverlayStyle
impl Debug for OverlayStyle
impl Copy for OverlayStyle
Auto Trait Implementations§
impl Freeze for OverlayStyle
impl RefUnwindSafe for OverlayStyle
impl Send for OverlayStyle
impl Sync for OverlayStyle
impl Unpin for OverlayStyle
impl UnwindSafe for OverlayStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.