csutil/macosx/OSXAssistant.h
00001 #ifndef __CSSYS_MACOSX_OSXAssistant_h 00002 #define __CSSYS_MACOSX_OSXAssistant_h 00003 //============================================================================= 00004 // 00005 // Copyright (C)1999-2003 by Eric Sunshine <sunshine@sunshineco.com> 00006 // 00007 // The contents of this file are copyrighted by Eric Sunshine. This work is 00008 // distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 00009 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 00010 // PARTICULAR PURPOSE. You may distribute this file provided that this 00011 // copyright notice is retained. Send comments to <sunshine@sunshineco.com>. 00012 // 00013 //============================================================================= 00014 //----------------------------------------------------------------------------- 00015 // OSXAssistant.h 00016 // 00017 // Declares SCF interface for an object which provides assistance to 00018 // MacOS/X-specific canvases, as well as to the Objective-C side of the 00019 // application delegate. 00020 // 00021 //----------------------------------------------------------------------------- 00022 #include "csutil/scf.h" 00023 00025 typedef void* OSXEvent; 00027 typedef void* OSXView; 00028 00029 SCF_VERSION (iOSXAssistant, 0, 0, 2); 00030 00039 struct iOSXAssistant : public iBase 00040 { 00044 virtual void request_shutdown() = 0; 00045 00050 virtual void advance_state() = 0; 00051 00056 virtual bool always_runs() = 0; 00057 00064 virtual bool continue_running() = 0; 00065 00071 virtual void application_activated() = 0; 00072 00078 virtual void application_deactivated() = 0; 00079 00085 virtual void application_hidden() = 0; 00086 00092 virtual void application_unhidden() = 0; 00093 00099 virtual void flush_graphics_context() = 0; 00100 00104 virtual void hide_mouse_pointer() = 0; 00105 00109 virtual void show_mouse_pointer() = 0; 00110 00125 virtual void dispatch_event(OSXEvent, OSXView) = 0; 00126 00131 virtual void key_down(unsigned int raw, unsigned int cooked) = 0; 00132 00137 virtual void key_up(unsigned int raw, unsigned int cooked) = 0; 00138 00145 virtual void mouse_down(int button, int x, int y) = 0; 00146 00153 virtual void mouse_up(int button, int x, int y) = 0; 00154 00161 virtual void mouse_moved(int x, int y) = 0; 00162 }; 00163 00164 #endif // __CSSYS_MACOSX_OSXAssistant_h
Generated for Crystal Space by doxygen 1.2.18