pub struct Window {
pub x: Arc<XWindow>,
/* private fields */
}
Fields§
§x: Arc<XWindow>
Implementations§
source§impl Window
impl Window
pub fn new( ctx: &EventsLoop, window_attrs: &WindowAttributes, pl_attribs: &PlatformSpecificWindowBuilderAttributes ) -> Result<Window, CreationError>
pub fn set_title(&self, title: &str)
pub fn set_decorations(&self, decorations: bool)
pub fn show(&self)
pub fn hide(&self)
pub fn get_position(&self) -> Option<(i32, i32)>
pub fn set_position(&self, x: i32, y: i32)
pub fn get_inner_size(&self) -> Option<(u32, u32)>
pub fn get_outer_size(&self) -> Option<(u32, u32)>
pub fn set_inner_size(&self, x: u32, y: u32)
pub fn create_window_proxy(&self) -> WindowProxy
pub fn get_xlib_display(&self) -> *mut c_void
pub fn get_xlib_screen_id(&self) -> *mut c_void
pub fn get_xlib_xconnection(&self) -> Arc<XConnection>
pub fn platform_display(&self) -> *mut c_void
pub fn get_xlib_window(&self) -> *mut c_void
pub fn platform_window(&self) -> *mut c_void
pub fn get_xcb_connection(&self) -> *mut c_void
pub fn set_window_resize_callback(&mut self, _: Option<fn(_: u32, _: u32)>)
pub fn set_cursor(&self, cursor: MouseCursor)
pub fn set_cursor_state(&self, state: CursorState) -> Result<(), String>
pub fn hidpi_factor(&self) -> f32
pub fn set_cursor_position(&self, x: i32, y: i32) -> Result<(), ()>
pub fn id(&self) -> WindowId
Trait Implementations§
Auto Trait Implementations§
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