[−][src]Struct sixtyfps_corelib::graphics::GraphicsWindow
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]
graphics_backend_factory: impl Fn(&EventLoop, WindowBuilder) -> Backend + 'static
) -> Rc<Self>
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 set_component(self: Rc<Self>, component: &ComponentRc)
[src]
pub fn draw(self: Rc<Self>)
[src]
pub fn process_mouse_input(
self: Rc<Self>,
pos: PhysicalPosition<f64>,
what: MouseEventType
)
[src]
self: Rc<Self>,
pos: PhysicalPosition<f64>,
what: MouseEventType
)
pub fn process_key_input(self: Rc<Self>, event: &KeyEvent)
[src]
pub fn with_platform_window(&self, callback: &dyn Fn(&Window))
[src]
pub fn map_window(self: Rc<Self>, event_loop: &EventLoop)
[src]
pub fn request_redraw(&self)
[src]
pub fn unmap_window(self: Rc<Self>)
[src]
pub fn scale_factor(&self) -> f32
[src]
pub fn set_scale_factor(&self, factor: f32)
[src]
pub fn set_width(&self, width: f32)
[src]
pub fn set_height(&self, height: f32)
[src]
pub fn get_geometry(&self) -> Rect
[src]
pub fn free_graphics_resources<'a>(
self: Rc<Self>,
items: &Slice<'a, Pin<ItemRef<'a>>>
)
[src]
self: Rc<Self>,
items: &Slice<'a, Pin<ItemRef<'a>>>
)
pub fn set_cursor_blink_binding(&self, prop: &Property<bool>)
[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.
pub fn set_focus_item(self: Rc<Self>, focus_item: &ItemRc)
[src]
pub fn set_focus(self: Rc<Self>, have_focus: bool)
[src]
pub fn show_popup(&self, popup: &ComponentRc, position: Point)
[src]
pub fn close_popup(&self)
[src]
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,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,