pub struct XlibWindowInner {
pub display: *mut Display,
pub window: Window,
pub gc: GC,
pub wm_delete_window: Atom,
pub config: WindowConfig,
pub scale_factor: f32,
pub is_focused: bool,
pub cursor: CursorIcon,
pub redraw_requested: bool,
pub event_queue: VecDeque<PlatformEvent>,
pub last_click: Option<(Instant, f32, f32)>,
}Expand description
Inner xlib-backed window managing legacy XOpenDisplay handle when active.
Fields§
§display: *mut Display§window: Window§gc: GC§wm_delete_window: Atom§config: WindowConfig§scale_factor: f32§is_focused: bool§cursor: CursorIcon§redraw_requested: bool§event_queue: VecDeque<PlatformEvent>§last_click: Option<(Instant, f32, f32)>Implementations§
Source§impl XlibWindowInner
impl XlibWindowInner
pub fn new(config: WindowConfig) -> Result<Self, String>
pub fn present_bgra( &mut self, buffer: &[u8], width: u32, height: u32, ) -> Result<(), PresentError>
pub fn poll_native_events(&mut self) -> Vec<PlatformEvent>
Trait Implementations§
Source§impl Drop for XlibWindowInner
Available on crate feature xlib only.
impl Drop for XlibWindowInner
Available on crate feature
xlib only.Auto Trait Implementations§
impl !Send for XlibWindowInner
impl !Sync for XlibWindowInner
impl Forget for XlibWindowInner
impl Freeze for XlibWindowInner
impl Move for XlibWindowInner
impl RefUnwindSafe for XlibWindowInner
impl Unpin for XlibWindowInner
impl UnsafeUnpin for XlibWindowInner
impl UnwindSafe for XlibWindowInner
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