1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

OpenGL: Adjust formatting to reduce line lengths

This commit is contained in:
reuk 2024-12-19 22:57:36 +00:00
parent 98e21c6ad8
commit 0aafcdbb4c
No known key found for this signature in database

View file

@ -308,10 +308,25 @@ public:
{
MouseForwardingNSOpenGLViewClass() : ObjCClass ("JUCEGLView_")
{
addMethod (@selector (rightMouseDown:), [] (id self, SEL, NSEvent* ev) { [[(NSOpenGLView*) self superview] rightMouseDown: ev]; });
addMethod (@selector (rightMouseUp:), [] (id self, SEL, NSEvent* ev) { [[(NSOpenGLView*) self superview] rightMouseUp: ev]; });
addMethod (@selector (acceptsFirstMouse:), [] (id, SEL, NSEvent*) -> BOOL { return YES; });
addMethod (@selector (accessibilityHitTest:), [] (id self, SEL, NSPoint p) -> id { return [[(NSOpenGLView*) self superview] accessibilityHitTest: p]; });
addMethod (@selector (rightMouseDown:), [] (id self, SEL, NSEvent* ev)
{
[[(NSOpenGLView*) self superview] rightMouseDown: ev];
});
addMethod (@selector (rightMouseUp:), [] (id self, SEL, NSEvent* ev)
{
[[(NSOpenGLView*) self superview] rightMouseUp: ev];
});
addMethod (@selector (acceptsFirstMouse:), [] (id, SEL, NSEvent*) -> BOOL
{
return YES;
});
addMethod (@selector (accessibilityHitTest:), [] (id self, SEL, NSPoint p) -> id
{
return [[(NSOpenGLView*) self superview] accessibilityHitTest: p];
});
registerClass();
}