[][src]Struct sixtyfps_corelib::graphics::GraphicsWindow

pub struct GraphicsWindow<Backend: GraphicsBackend + 'static> { /* fields omitted */ }

GraphicsWindow is an implementation of the GenericWindow trait. This is typically instantiated by entry factory functions of the different graphics backends.

Implementations

impl<Backend: GraphicsBackend + 'static> GraphicsWindow<Backend>[src]

pub fn new(
    graphics_backend_factory: impl Fn(&EventLoop, WindowBuilder) -> Backend + 'static
) -> Rc<Self>
[src]

Creates a new reference-counted instance.

Arguments:

  • graphics_backend_factory: The factor function stored in the GraphicsWindow that's called when the state of the window changes to mapped. The event loop and window builder parameters can be used to create a backing window.

pub fn id(&self) -> Option<WindowId>[src]

Returns the window id of the window if it is mapped, None otherwise.

Trait Implementations

impl<Backend: GraphicsBackend> Drop for GraphicsWindow<Backend>[src]

impl<Backend: GraphicsBackend> GenericWindow for GraphicsWindow<Backend>[src]

pub fn current_keyboard_modifiers(&self) -> KeyboardModifiers[src]

Returns the currently active keyboard notifiers.

pub fn set_current_keyboard_modifiers(&self, state: KeyboardModifiers)[src]

Sets the currently active keyboard notifiers. This is used only for testing or directly from the event loop implementation.

Auto Trait Implementations

impl<Backend> !RefUnwindSafe for GraphicsWindow<Backend>

impl<Backend> !Send for GraphicsWindow<Backend>

impl<Backend> !Sync for GraphicsWindow<Backend>

impl<Backend> Unpin for GraphicsWindow<Backend> where
    Backend: Unpin,
    <Backend as GraphicsBackend>::LowLevelRenderingPrimitive: Unpin

impl<Backend> !UnwindSafe for GraphicsWindow<Backend>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.