pub struct ContainerFlag(/* private fields */);Expand description
The same as FocusFlag, but distinct to mark the focus for a container.
This serves the purpose of
- summarizing the focus for the container. If any of the widgets of the container has the focus, the container itself has the focus.
- identifying the container for some functions on Focus.
Implementations§
Source§impl ContainerFlag
impl ContainerFlag
Trait Implementations§
Source§impl Clone for ContainerFlag
impl Clone for ContainerFlag
Source§fn clone(&self) -> ContainerFlag
fn clone(&self) -> ContainerFlag
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 ContainerFlag
impl Debug for ContainerFlag
Source§impl Default for ContainerFlag
impl Default for ContainerFlag
Source§fn default() -> ContainerFlag
fn default() -> ContainerFlag
Returns the “default value” for a type. Read more
Source§impl Display for ContainerFlag
impl Display for ContainerFlag
Source§impl FocusContainer for ContainerFlag
impl FocusContainer for ContainerFlag
Source§fn build(&self, _builder: &mut FocusBuilder)
fn build(&self, _builder: &mut FocusBuilder)
Build the focus-structure for the container.
Source§fn is_container_focused(&self) -> bool
fn is_container_focused(&self) -> bool
Focused?
Source§fn container_lost_focus(&self) -> bool
fn container_lost_focus(&self) -> bool
Just lost focus.
Source§fn container_gained_focus(&self) -> bool
fn container_gained_focus(&self) -> bool
Just gained focus.
Source§impl Hash for ContainerFlag
impl Hash for ContainerFlag
Source§impl PartialEq for ContainerFlag
Equality for ContainerFlag means pointer equality of the underlying
Rc using Rc::ptr_eq.
impl PartialEq for ContainerFlag
Equality for ContainerFlag means pointer equality of the underlying Rc using Rc::ptr_eq.
impl Eq for ContainerFlag
Auto Trait Implementations§
impl Freeze for ContainerFlag
impl !RefUnwindSafe for ContainerFlag
impl !Send for ContainerFlag
impl !Sync for ContainerFlag
impl Unpin for ContainerFlag
impl !UnwindSafe for ContainerFlag
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> 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 moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more