Struct glutin::os::unix::x11::Window

source ·
pub struct Window {
    pub x: Arc<XWindow>,
    /* private fields */
}

Fields§

§x: Arc<XWindow>

Implementations§

source§

impl Window

source

pub fn new( ctx: &EventsLoop, window_attrs: &WindowAttributes, pl_attribs: &PlatformSpecificWindowBuilderAttributes ) -> Result<Window, CreationError>

source

pub fn set_title(&self, title: &str)

source

pub fn set_decorations(&self, decorations: bool)

source

pub fn show(&self)

source

pub fn hide(&self)

source

pub fn get_position(&self) -> Option<(i32, i32)>

source

pub fn set_position(&self, x: i32, y: i32)

source

pub fn get_inner_size(&self) -> Option<(u32, u32)>

source

pub fn get_outer_size(&self) -> Option<(u32, u32)>

source

pub fn set_inner_size(&self, x: u32, y: u32)

source

pub fn create_window_proxy(&self) -> WindowProxy

source

pub fn get_xlib_display(&self) -> *mut c_void

source

pub fn get_xlib_screen_id(&self) -> *mut c_void

source

pub fn get_xlib_xconnection(&self) -> Arc<XConnection>

source

pub fn platform_display(&self) -> *mut c_void

source

pub fn get_xlib_window(&self) -> *mut c_void

source

pub fn platform_window(&self) -> *mut c_void

source

pub fn get_xcb_connection(&self) -> *mut c_void

source

pub fn set_window_resize_callback(&mut self, _: Option<fn(_: u32, _: u32)>)

source

pub fn set_cursor(&self, cursor: MouseCursor)

source

pub fn set_cursor_state(&self, state: CursorState) -> Result<(), String>

source

pub fn hidpi_factor(&self) -> f32

source

pub fn set_cursor_position(&self, x: i32, y: i32) -> Result<(), ()>

source

pub fn id(&self) -> WindowId

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.