pub enum WindowFrameOutcome {
Continue,
Unchanged,
Changed,
ShouldClose,
Moved,
Resized,
}
Variants§
Continue
The given event was not handled at all.
Unchanged
The event was handled, no repaint necessary.
Changed
The event was handled, repaint necessary.
ShouldClose
Request close.
Moved
Has moved.
Resized
Has resized.
Trait Implementations§
Source§impl Clone for WindowFrameOutcome
impl Clone for WindowFrameOutcome
Source§fn clone(&self) -> WindowFrameOutcome
fn clone(&self) -> WindowFrameOutcome
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 ConsumedEvent for WindowFrameOutcome
impl ConsumedEvent for WindowFrameOutcome
Source§fn is_consumed(&self) -> bool
fn is_consumed(&self) -> bool
Is this the ‘consumed’ result.
Source§fn or_else_try<F, E>(self, f: F) -> Result<Self, E>
fn or_else_try<F, E>(self, f: F) -> Result<Self, E>
Or-Else chaining with
is_consumed()
as the split.Source§fn and_then<F>(self, f: F) -> Self
fn and_then<F>(self, f: F) -> Self
And_then-chaining based on is_consumed().
Returns max(self, f()).
Source§fn and_then_try<F, E>(self, f: F) -> Result<Self, E>
fn and_then_try<F, E>(self, f: F) -> Result<Self, E>
And_then-chaining based on is_consumed().
Returns max(self, f()).
Source§impl Debug for WindowFrameOutcome
impl Debug for WindowFrameOutcome
Source§impl From<Outcome> for WindowFrameOutcome
impl From<Outcome> for WindowFrameOutcome
Source§impl From<WindowFrameOutcome> for Outcome
impl From<WindowFrameOutcome> for Outcome
Source§fn from(value: WindowFrameOutcome) -> Self
fn from(value: WindowFrameOutcome) -> Self
Converts to this type from the input type.
Source§impl HandleEvent<Event, Dialog, WindowFrameOutcome> for MacFrameState
impl HandleEvent<Event, Dialog, WindowFrameOutcome> for MacFrameState
Source§impl HandleEvent<Event, Dialog, WindowFrameOutcome> for WindowFrameState
impl HandleEvent<Event, Dialog, WindowFrameOutcome> for WindowFrameState
Source§impl Ord for WindowFrameOutcome
impl Ord for WindowFrameOutcome
Source§fn cmp(&self, other: &WindowFrameOutcome) -> Ordering
fn cmp(&self, other: &WindowFrameOutcome) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WindowFrameOutcome
impl PartialEq for WindowFrameOutcome
Source§impl PartialOrd for WindowFrameOutcome
impl PartialOrd for WindowFrameOutcome
impl Copy for WindowFrameOutcome
impl Eq for WindowFrameOutcome
impl StructuralPartialEq for WindowFrameOutcome
Auto Trait Implementations§
impl Freeze for WindowFrameOutcome
impl RefUnwindSafe for WindowFrameOutcome
impl Send for WindowFrameOutcome
impl Sync for WindowFrameOutcome
impl Unpin for WindowFrameOutcome
impl UnwindSafe for WindowFrameOutcome
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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