Refactor macOS cursor code (#2463)

This commit is contained in:
Mads Marquart 2022-09-02 21:02:40 +02:00 committed by GitHub
parent e517e468f8
commit 29419d6c38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 352 additions and 222 deletions

View file

@ -1,11 +1,18 @@
#![deny(unsafe_op_in_unsafe_fn)]
// Objective-C methods have different conventions, and it's much easier to
// understand if we just use the same names
#![allow(non_snake_case)]
mod application;
mod cursor;
mod image;
mod responder;
mod view;
mod window;
pub(crate) use self::application::NSApplication;
pub(crate) use self::cursor::NSCursor;
pub(crate) use self::image::NSImage;
pub(crate) use self::responder::NSResponder;
pub(crate) use self::view::NSView;
pub(crate) use self::window::NSWindow;