X11: Flatten window model (#536)
This commit is contained in:
parent
30f798b246
commit
4372f6fdac
5 changed files with 360 additions and 444 deletions
12
src/lib.rs
12
src/lib.rs
|
|
@ -374,6 +374,12 @@ pub enum MouseCursor {
|
|||
RowResize,
|
||||
}
|
||||
|
||||
impl Default for MouseCursor {
|
||||
fn default() -> Self {
|
||||
MouseCursor::Default
|
||||
}
|
||||
}
|
||||
|
||||
/// Describes how winit handles the cursor.
|
||||
#[derive(Debug, Copy, Clone, PartialEq)]
|
||||
pub enum CursorState {
|
||||
|
|
@ -391,6 +397,12 @@ pub enum CursorState {
|
|||
Grab,
|
||||
}
|
||||
|
||||
impl Default for CursorState {
|
||||
fn default() -> Self {
|
||||
CursorState::Normal
|
||||
}
|
||||
}
|
||||
|
||||
/// Attributes to use when creating a window.
|
||||
#[derive(Clone)]
|
||||
pub struct WindowAttributes {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue