rebase, cargo fmt
This commit is contained in:
parent
08564cc317
commit
cc2ae0ef39
|
@ -15,7 +15,7 @@ impl WindowHandler for MyProgram {
|
|||
match event {
|
||||
Event::Mouse(e) => println!("Mouse event: {:?}", e),
|
||||
Event::Keyboard(e) => println!("Keyboard event: {:?}", e),
|
||||
Event::Window(e) => println!("Window event: {:?}", e)
|
||||
Event::Window(e) => println!("Window event: {:?}", e),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -91,5 +91,5 @@ pub enum WindowEvent {
|
|||
pub enum Event {
|
||||
Mouse(MouseEvent),
|
||||
Keyboard(KeyboardEvent),
|
||||
Window(WindowEvent)
|
||||
Window(WindowEvent),
|
||||
}
|
||||
|
|
|
@ -11,8 +11,8 @@ use cocoa::foundation::{NSAutoreleasePool, NSPoint, NSRect, NSSize, NSString};
|
|||
use raw_window_handle::{macos::MacOSHandle, HasRawWindowHandle, RawWindowHandle};
|
||||
|
||||
use crate::{
|
||||
Event, KeyboardEvent, MouseButton, MouseEvent, ScrollDelta, WindowEvent,
|
||||
WindowHandler, WindowOpenOptions,
|
||||
Event, KeyboardEvent, MouseButton, MouseEvent, ScrollDelta, WindowEvent, WindowHandler,
|
||||
WindowOpenOptions,
|
||||
};
|
||||
|
||||
pub struct Window {
|
||||
|
|
|
@ -19,8 +19,8 @@ use std::rc::Rc;
|
|||
use raw_window_handle::{windows::WindowsHandle, HasRawWindowHandle, RawWindowHandle};
|
||||
|
||||
use crate::{
|
||||
Event, KeyboardEvent, MouseButton, MouseEvent, Parent::WithParent, ScrollDelta,
|
||||
WindowEvent, WindowHandler, WindowInfo, WindowOpenOptions,
|
||||
Event, KeyboardEvent, MouseButton, MouseEvent, Parent::WithParent, ScrollDelta, WindowEvent,
|
||||
WindowHandler, WindowInfo, WindowOpenOptions,
|
||||
};
|
||||
|
||||
unsafe fn message_box(title: &str, msg: &str) {
|
||||
|
|
|
@ -6,8 +6,8 @@ use raw_window_handle::{unix::XlibHandle, HasRawWindowHandle, RawWindowHandle};
|
|||
|
||||
use super::XcbConnection;
|
||||
use crate::{
|
||||
Event, KeyboardEvent, MouseButton, MouseEvent, Parent, ScrollDelta, WindowEvent,
|
||||
WindowHandler, WindowOpenOptions, WindowInfo,
|
||||
Event, KeyboardEvent, MouseButton, MouseEvent, Parent, ScrollDelta, WindowEvent, WindowHandler,
|
||||
WindowInfo, WindowOpenOptions,
|
||||
};
|
||||
|
||||
pub struct Window {
|
||||
|
|
Loading…
Reference in a new issue