pub struct NiceGuiContext {
pub context: Arc<dyn GuiContext>,
/* private fields */
}Fields§
§context: Arc<dyn GuiContext>Implementations§
Source§impl NiceGuiContext
impl NiceGuiContext
Sourcepub fn logical_size(&self) -> (u32, u32)
pub fn logical_size(&self) -> (u32, u32)
Returns a (width, height) pair for the current size of the GUI in logical pixels.
Sourcepub fn set_requested_logical_size(&self, new_size: (u32, u32))
pub fn set_requested_logical_size(&self, new_size: (u32, u32))
Set the new size that will be used to resize the window if the host allows.
pub fn param_setter<'a>(&'a self) -> ParamSetter<'a>
Trait Implementations§
Source§impl Clone for NiceGuiContext
impl Clone for NiceGuiContext
Source§fn clone(&self) -> NiceGuiContext
fn clone(&self) -> NiceGuiContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for NiceGuiContext
impl !UnwindSafe for NiceGuiContext
impl Freeze for NiceGuiContext
impl Send for NiceGuiContext
impl Sync for NiceGuiContext
impl Unpin for NiceGuiContext
impl UnsafeUnpin for NiceGuiContext
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
Source§fn into_boot(self) -> (State, Task<Message>)
fn into_boot(self) -> (State, Task<Message>)
Turns some type into the initial state of some
Application.