Skip to content

Commit

Permalink
ns::Event
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Nov 14, 2024
1 parent 2fc893a commit ab61ae7
Show file tree
Hide file tree
Showing 4 changed files with 847 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cidre/pomace/app/app.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Class NS_VIEW_CONTROLLER;
Class NS_WORKSPACE;
Class NS_TEXT_ATTACHMENT;
Class NS_IMAGE;
Class NS_EVENT;

__attribute__((constructor))
static void app_initializer(void)
Expand All @@ -41,6 +42,7 @@ static void app_initializer(void)

NS_TEXT_ATTACHMENT = [NSTextAttachment class];
NS_IMAGE = [NSImage class];
NS_EVENT = [NSEvent class];
}
}

Expand Down
18 changes: 18 additions & 0 deletions cidre/src/ns/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,21 @@ pub use color::Color;

mod graphics;
pub use graphics::WindowOrderingMode;

mod event;
pub use event::Event;
pub use event::EventButtonMask;
pub use event::EventGestureAxis;
pub use event::EventMask;
pub use event::EventModifierFlags;
pub use event::EventPhase;
pub use event::EventSubtype;
pub use event::EventSwipeTrackingOpts;
pub use event::EventType;
pub use event::PointingDeviceType;

mod touch;
pub use touch::Touch;
pub use touch::TouchPhase;
pub use touch::TouchType;
pub use touch::TouchTypeMask;
Loading

0 comments on commit ab61ae7

Please # to comment.