pub struct Window { /* private fields */ }Expand description
Represents a window for coordinate conversion.
Implementations§
Source§impl Window
impl Window
Sourcepub fn new(handle: isize, window_rect: Rect, style: WindowStyle) -> Self
pub fn new(handle: isize, window_rect: Rect, style: WindowStyle) -> Self
Creates a new window.
Sourcepub fn client_rect(&self) -> Rect
pub fn client_rect(&self) -> Rect
Calculates the client area rectangle.
Sourcepub fn window_rect(&self) -> Rect
pub fn window_rect(&self) -> Rect
Returns the window rectangle.
Sourcepub fn style(&self) -> WindowStyle
pub fn style(&self) -> WindowStyle
Returns the window style.
Sourcepub fn set_style(&mut self, style: WindowStyle)
pub fn set_style(&mut self, style: WindowStyle)
Updates the window style.
Trait Implementations§
Source§impl CoordinateTransformer for Window
impl CoordinateTransformer for Window
Source§fn client_to_screen(&self, point: Point) -> WindowsUtilsResult<Point>
fn client_to_screen(&self, point: Point) -> WindowsUtilsResult<Point>
Converts client coordinates to screen coordinates.
Source§fn screen_to_client(&self, point: Point) -> WindowsUtilsResult<Point>
fn screen_to_client(&self, point: Point) -> WindowsUtilsResult<Point>
Converts screen coordinates to client coordinates.
Source§fn client_rect(&self) -> Rect
fn client_rect(&self) -> Rect
Returns the client area rectangle.
Source§fn window_rect(&self) -> Rect
fn window_rect(&self) -> Rect
Returns the window rectangle.
Source§fn is_point_in_client(&self, point: Point) -> bool
fn is_point_in_client(&self, point: Point) -> bool
Checks if a point is within the client area.
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