feat(x11): Add Window::drag_resize_window (#2515)

This commit is contained in:
Michael Murphy
2023-01-11 18:07:09 +01:00
committed by GitHub
parent 08ce3af3e1
commit 9225b2812e
14 changed files with 280 additions and 15 deletions

View File

@@ -72,8 +72,8 @@ use crate::{
Fullscreen, PlatformSpecificWindowBuilderAttributes, WindowId,
},
window::{
CursorGrabMode, CursorIcon, Theme, UserAttentionType, WindowAttributes, WindowButtons,
WindowLevel,
CursorGrabMode, CursorIcon, ResizeDirection, Theme, UserAttentionType, WindowAttributes,
WindowButtons, WindowLevel,
},
};
@@ -432,6 +432,11 @@ impl Window {
Ok(())
}
#[inline]
pub fn drag_resize_window(&self, _direction: ResizeDirection) -> Result<(), ExternalError> {
Err(ExternalError::NotSupported(NotSupportedError::new()))
}
#[inline]
pub fn set_cursor_hittest(&self, hittest: bool) -> Result<(), ExternalError> {
let window = self.window.clone();