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:
parent
98e21c6ad8
commit
0aafcdbb4c
1 changed files with 19 additions and 4 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue