pub struct ConfirmDialogLayout {
pub panel: Rect,
pub allow: Rect,
pub deny: Rect,
}Expand description
Logical-pixel hit rectangles returned with confirmation draw commands.
§Examples
use ailloli_ui_core::Rect;
use ailloli_ui_widgets::overlay::modal::ConfirmDialogLayout;
let layout = ConfirmDialogLayout { panel: Rect::new(0.0, 0.0, 520.0, 220.0), allow: Rect::new(0.0, 0.0, 84.0, 34.0), deny: Rect::new(0.0, 0.0, 84.0, 34.0) };
assert_eq!(layout.panel.w, 520.0);Fields§
§panel: RectCentered fixed 520×220 panel rectangle.
allow: RectRightmost 84×34 allow-button hit rectangle.
deny: Rect84×34 deny-button hit rectangle immediately left of allow.
Trait Implementations§
Source§impl Clone for ConfirmDialogLayout
impl Clone for ConfirmDialogLayout
Source§fn clone(&self) -> ConfirmDialogLayout
fn clone(&self) -> ConfirmDialogLayout
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 ConfirmDialogLayout
impl Debug for ConfirmDialogLayout
impl Copy for ConfirmDialogLayout
Auto Trait Implementations§
impl Freeze for ConfirmDialogLayout
impl RefUnwindSafe for ConfirmDialogLayout
impl Send for ConfirmDialogLayout
impl Sync for ConfirmDialogLayout
impl Unpin for ConfirmDialogLayout
impl UnwindSafe for ConfirmDialogLayout
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.