[][src]Struct makepad_render::Window

pub struct Window {
    pub window_id: Option<usize>,
    pub create_inner_size: Option<Vec2>,
    pub create_position: Option<Vec2>,
    pub create_title: String,
}

Fields

window_id: Option<usize>create_inner_size: Option<Vec2>create_position: Option<Vec2>create_title: String

Methods

impl Window[src]

pub fn new(_cx: &mut Cx) -> Self[src]

pub fn begin_window(&mut self, cx: &mut Cx)[src]

pub fn get_inner_size(&mut self, cx: &mut Cx) -> Vec2[src]

pub fn get_position(&mut self, cx: &mut Cx) -> Option<Vec2>[src]

pub fn set_position(&mut self, cx: &mut Cx, pos: Vec2)[src]

pub fn handle_window(&mut self, _cx: &mut Cx, _event: &mut Event) -> bool[src]

pub fn redraw_window_area(&mut self, cx: &mut Cx)[src]

pub fn end_window(&mut self, cx: &mut Cx) -> Area[src]

pub fn minimize_window(&mut self, cx: &mut Cx)[src]

pub fn maximize_window(&mut self, cx: &mut Cx)[src]

pub fn is_fullscreen(&mut self, cx: &mut Cx) -> bool[src]

pub fn vr_is_presenting(&mut self, cx: &mut Cx) -> bool[src]

pub fn vr_start_presenting(&mut self, cx: &mut Cx)[src]

pub fn vr_stop_presenting(&mut self, cx: &mut Cx)[src]

pub fn is_topmost(&mut self, cx: &mut Cx) -> bool[src]

pub fn set_topmost(&mut self, cx: &mut Cx, topmost: bool)[src]

pub fn restore_window(&mut self, cx: &mut Cx)[src]

pub fn close_window(&mut self, cx: &mut Cx)[src]

Trait Implementations

impl Clone for Window[src]

Auto Trait Implementations

impl RefUnwindSafe for Window

impl Send for Window

impl Sync for Window

impl Unpin for Window

impl UnwindSafe for Window

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.