pub enum CsdHitZone {
Show 13 variants
None,
Titlebar,
MinimizeButton,
MaximizeButton,
CloseButton,
ResizeBorderTop,
ResizeBorderBottom,
ResizeBorderLeft,
ResizeBorderRight,
ResizeCornerTopLeft,
ResizeCornerTopRight,
ResizeCornerBottomLeft,
ResizeCornerBottomRight,
}Expand description
The region of a Client-Side Decorated window under a given coordinate.
Variants§
None
Titlebar
MinimizeButton
MaximizeButton
CloseButton
ResizeBorderTop
ResizeBorderBottom
ResizeBorderLeft
ResizeBorderRight
ResizeCornerTopLeft
ResizeCornerTopRight
ResizeCornerBottomLeft
ResizeCornerBottomRight
Implementations§
Source§impl CsdHitZone
impl CsdHitZone
Returns true if this hit zone represents an interactive window control button.
Sourcepub fn is_titlebar(&self) -> bool
pub fn is_titlebar(&self) -> bool
Returns true if this hit zone is the window titlebar.
Sourcepub fn to_x11_moveresize_direction(&self) -> Option<u32>
pub fn to_x11_moveresize_direction(&self) -> Option<u32>
Converts the zone to an X11 _NET_WM_MOVERESIZE direction index.
Sourcepub fn to_wayland_resize_edge(&self) -> Option<u32>
pub fn to_wayland_resize_edge(&self) -> Option<u32>
Converts the zone to a Wayland xdg_toplevel resize edge bitmask.
Sourcepub fn to_win32_nchittest(&self) -> isize
pub fn to_win32_nchittest(&self) -> isize
Converts the zone to a Win32 WM_NCHITTEST result code.
Sourcepub fn cursor_icon(&self) -> CursorIcon
pub fn cursor_icon(&self) -> CursorIcon
Determines the appropriate cursor icon for this hit zone.
Trait Implementations§
Source§impl Clone for CsdHitZone
impl Clone for CsdHitZone
impl Copy for CsdHitZone
Source§impl Debug for CsdHitZone
impl Debug for CsdHitZone
impl Eq for CsdHitZone
Source§impl PartialEq for CsdHitZone
impl PartialEq for CsdHitZone
impl StructuralPartialEq for CsdHitZone
Auto Trait Implementations§
impl Forget for CsdHitZone
impl Freeze for CsdHitZone
impl Move for CsdHitZone
impl RefUnwindSafe for CsdHitZone
impl Send for CsdHitZone
impl Sync for CsdHitZone
impl Unpin for CsdHitZone
impl UnsafeUnpin for CsdHitZone
impl UnwindSafe for CsdHitZone
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.