pub struct DialogFrameState {
pub area: Rect,
pub widget_area: Rect,
pub ok: ButtonState,
pub no_cancel: bool,
pub cancel: ButtonState,
pub non_exhaustive: NonExhaustive,
}Fields§
§area: RectArea for the dialog. read only set with each render.
widget_area: RectArea for the dialog-content. read only set with each render.
ok: ButtonStateok-button
no_cancel: boolno cancel button
cancel: ButtonStatecancel-button
non_exhaustive: NonExhaustiveImplementations§
Trait Implementations§
Source§impl Clone for DialogFrameState
impl Clone for DialogFrameState
Source§impl Debug for DialogFrameState
impl Debug for DialogFrameState
Source§impl Default for DialogFrameState
impl Default for DialogFrameState
Source§impl HandleEvent<Event, Dialog, DialogOutcome> for DialogFrameState
impl HandleEvent<Event, Dialog, DialogOutcome> for DialogFrameState
Source§impl HandleEvent<Event, MouseOnly, DialogOutcome> for DialogFrameState
impl HandleEvent<Event, MouseOnly, DialogOutcome> for DialogFrameState
Source§impl HasFocus for DialogFrameState
impl HasFocus for DialogFrameState
Source§fn build(&self, builder: &mut FocusBuilder)
fn build(&self, builder: &mut FocusBuilder)
Build the focus-structure for the container/widget.
Build the focus-structure for the container/widget. Read more
Declares how the widget interacts with focus. Read more
Source§fn is_focused(&self) -> bool
fn is_focused(&self) -> bool
Does this widget have the focus.
Or, if the flag is used for a container, does any of
widget inside the container have the focus. Read more
Source§fn lost_focus(&self) -> bool
fn lost_focus(&self) -> bool
This widget just lost the focus. This flag is set by [Focus::handle]
if there is a focus transfer, and will be reset by the next
call to [Focus::handle]. Read more
Source§fn gained_focus(&self) -> bool
fn gained_focus(&self) -> bool
This widget just gained the focus. This flag is set by [Focus::handle]
if there is a focus transfer, and will be reset by the next
call to [Focus::handle]. Read more
Source§fn is_obscured(&self) -> bool
fn is_obscured(&self) -> bool
Is the widget area hit by the current mouse-position
and is there no other widget/container with a
higher z-index. Then this widget is not obscured. Read more
Source§impl HasScreenCursor for DialogFrameState
impl HasScreenCursor for DialogFrameState
Source§impl RelocatableState for DialogFrameState
impl RelocatableState for DialogFrameState
Source§fn relocate(&mut self, shift: (i16, i16), clip: Rect)
fn relocate(&mut self, shift: (i16, i16), clip: Rect)
Relocate the areas in this widgets state. Read more
Source§fn relocate_popup(&mut self, shift: (i16, i16), clip: Rect)
fn relocate_popup(&mut self, shift: (i16, i16), clip: Rect)
Relocate only popup areas.
As rendering the popups is a separate render,
this has to be separate too.
Relocate all popup areas to a clip-rect (0,0+0x0).
Relocate all areas to a clip-rect (0,0+0x0).
Auto Trait Implementations§
impl !Freeze for DialogFrameState
impl !RefUnwindSafe for DialogFrameState
impl !Send for DialogFrameState
impl !Sync for DialogFrameState
impl !UnwindSafe for DialogFrameState
impl Forget for DialogFrameState
impl Unpin for DialogFrameState
impl UnsafeUnpin for DialogFrameState
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more