mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 05:40:04 -04:00
winit-core: move window
Create `WindowAttributes` for respective platform specific window attributes in `winit` due to move of `WindowAttributes`.
This commit is contained in:
@@ -25,6 +25,6 @@ fn ids_send() {
|
||||
|
||||
#[test]
|
||||
fn custom_cursor_send() {
|
||||
needs_send::<winit::window::CustomCursorSource>();
|
||||
needs_send::<winit::window::CustomCursor>();
|
||||
needs_send::<winit::cursor::CustomCursorSource>();
|
||||
needs_send::<winit::cursor::CustomCursor>();
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#![cfg(feature = "serde")]
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
use winit::cursor::CursorIcon;
|
||||
use winit::dpi::{LogicalPosition, LogicalSize, PhysicalPosition, PhysicalSize};
|
||||
use winit::event::{ElementState, MouseButton, MouseScrollDelta, TouchPhase};
|
||||
use winit::keyboard::{Key, KeyCode, KeyLocation, ModifiersState, NamedKey, PhysicalKey};
|
||||
use winit::window::CursorIcon;
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn needs_serde<S: Serialize + Deserialize<'static>>() {}
|
||||
|
||||
@@ -18,6 +18,6 @@ fn window_builder_sync() {
|
||||
|
||||
#[test]
|
||||
fn custom_cursor_sync() {
|
||||
needs_sync::<winit::window::CustomCursorSource>();
|
||||
needs_sync::<winit::window::CustomCursor>();
|
||||
needs_sync::<winit::cursor::CustomCursorSource>();
|
||||
needs_sync::<winit::cursor::CustomCursor>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user