diff options
Diffstat (limited to 'macosx/HBHUD.h')
-rw-r--r-- | macosx/HBHUD.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/macosx/HBHUD.h b/macosx/HBHUD.h new file mode 100644 index 000000000..d10e42f69 --- /dev/null +++ b/macosx/HBHUD.h @@ -0,0 +1,21 @@ +/* HBHUD.h $ + + This file is part of the HandBrake source code. + Homepage: <http://handbrake.fr/>. + It may be used under the terms of the GNU General Public License. */ +#import <Foundation/Foundation.h> + +@protocol HBHUD <NSObject> + +/// Whether the hud can be hidden or not; +- (BOOL)canBeHidden; + +// Responder chains is nice and good, but NSViewController +// are not automatically insterted in the responder chain prior 10.10 +// and are removed when the view is hidden, so let's deliver the +// events manually. + +- (BOOL)HB_keyDown:(NSEvent *)event; +- (BOOL)HB_scrollWheel:(NSEvent *)theEvent; + +@end |