pub struct AndroidWindow { /* private fields */ }Expand description
Placeholder for non-Android builds
Implementations§
Source§impl AndroidWindow
impl AndroidWindow
Trait Implementations§
Source§impl Default for AndroidWindow
impl Default for AndroidWindow
Source§fn default() -> AndroidWindow
fn default() -> AndroidWindow
Returns the “default value” for a type. Read more
Source§impl Window for AndroidWindow
Available on non-Android only.
impl Window for AndroidWindow
Available on non-Android only.
Source§fn logical_size(&self) -> (f32, f32)
fn logical_size(&self) -> (f32, f32)
Get window size in logical pixels
Source§fn scale_factor(&self) -> f64
fn scale_factor(&self) -> f64
Get the display scale factor (DPI scaling)
Source§fn set_cursor(&self, _cursor: Cursor)
fn set_cursor(&self, _cursor: Cursor)
Set the cursor icon
Source§fn request_redraw(&self)
fn request_redraw(&self)
Request a redraw
Source§fn is_focused(&self) -> bool
fn is_focused(&self) -> bool
Check if the window is focused
Source§fn is_visible(&self) -> bool
fn is_visible(&self) -> bool
Check if the window is visible
Source§fn set_position(&self, _x: i32, _y: i32)
fn set_position(&self, _x: i32, _y: i32)
Set window position in logical pixels
Source§fn center_on_screen(&self)
fn center_on_screen(&self)
Center the window on its current monitor
Source§fn drag_window(&self)
fn drag_window(&self)
Start a window drag operation (for custom title bars). Read more
Auto Trait Implementations§
impl Freeze for AndroidWindow
impl RefUnwindSafe for AndroidWindow
impl Send for AndroidWindow
impl Sync for AndroidWindow
impl Unpin for AndroidWindow
impl UnsafeUnpin for AndroidWindow
impl UnwindSafe for AndroidWindow
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