pub struct DisplayContext {
pub updated_on_event_id: u64,
pub screen_size: DVec2,
}
Expand description
The current context data relevant to adaptive views. Later to be expanded with more context data like platfrom information, accessibility settings, etc.
Fields§
§updated_on_event_id: u64
§screen_size: DVec2
Implementations§
Source§impl DisplayContext
impl DisplayContext
pub fn is_desktop(&self) -> bool
Trait Implementations§
Source§impl Clone for DisplayContext
impl Clone for DisplayContext
Source§fn clone(&self) -> DisplayContext
fn clone(&self) -> DisplayContext
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 DisplayContext
impl Debug for DisplayContext
Source§impl Default for DisplayContext
impl Default for DisplayContext
Source§fn default() -> DisplayContext
fn default() -> DisplayContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DisplayContext
impl RefUnwindSafe for DisplayContext
impl Send for DisplayContext
impl Sync for DisplayContext
impl Unpin for DisplayContext
impl UnwindSafe for DisplayContext
Blanket Implementations§
Source§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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