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
Implementations§
Source§impl Window
impl Window
pub fn new(_cx: &mut Cx) -> Self
pub fn begin_window(&mut self, cx: &mut Cx)
pub fn get_inner_size(&mut self, cx: &mut Cx) -> Vec2
pub fn get_position(&mut self, cx: &mut Cx) -> Option<Vec2>
pub fn set_position(&mut self, cx: &mut Cx, pos: Vec2)
pub fn handle_window(&mut self, _cx: &mut Cx, _event: &mut Event) -> bool
pub fn redraw_window_area(&mut self, cx: &mut Cx)
pub fn end_window(&mut self, cx: &mut Cx) -> Area
pub fn minimize_window(&mut self, cx: &mut Cx)
pub fn maximize_window(&mut self, cx: &mut Cx)
pub fn is_fullscreen(&mut self, cx: &mut Cx) -> bool
pub fn vr_is_presenting(&mut self, cx: &mut Cx) -> bool
pub fn vr_start_presenting(&mut self, cx: &mut Cx)
pub fn vr_stop_presenting(&mut self, cx: &mut Cx)
pub fn is_topmost(&mut self, cx: &mut Cx) -> bool
pub fn set_topmost(&mut self, cx: &mut Cx, topmost: bool)
pub fn restore_window(&mut self, cx: &mut Cx)
pub fn close_window(&mut self, cx: &mut Cx)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnwindSafe for Window
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