Artifact ac83513858c0369ab601aa487a8a4f66e8ca373491819f384c02c263cf97ce08:
- File OGApplication.h — part of check-in [60818c0951] at 2011-12-27 21:09:33 on branch trunk — Initial import. (user: js, size: 410) [annotate] [blame] [check-ins using]
- File
headers/OGApplication.h
— part of check-in
[31af425497]
at
2011-12-27 22:38:07
on branch trunk
— Make it possible to have implementations in different toolkits.
Also, make it possible to share the headers. (user: js, size: 410) [annotate] [blame] [check-ins using]
#include <gtk/gtk.h> #import <ObjFW/ObjFW.h> @protocol OGApplicationDelegate <OFObject> - (void)applicationDidFinishLaunching; @optional - (void)applicationWillTerminate; @end @interface OGApplication: OFObject <OFApplicationDelegate> { id <OFApplicationDelegate> delegate; } + (void)quit; @end #define OG_APPLICATION_DELEGATE(cls) \ Class \ og_application_delegate() { \ return [cls class]; \ }