csutil/macosx/OSXAssistant.h
Go to the documentation of this file.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_interface.h" 00023 00027 00028 typedef void* OSXEvent; 00030 typedef void* OSXView; 00031 00046 struct iOSXAssistant : public virtual iBase 00047 { 00048 SCF_INTERFACE(iOSXAssistant, 2,0,0); 00049 00053 virtual void request_shutdown() = 0; 00054 00059 virtual void advance_state() = 0; 00060 00065 virtual bool always_runs() = 0; 00066 00073 virtual bool continue_running() = 0; 00074 00080 virtual void application_activated() = 0; 00081 00087 virtual void application_deactivated() = 0; 00088 00094 virtual void application_hidden() = 0; 00095 00101 virtual void application_unhidden() = 0; 00102 00108 virtual void flush_graphics_context() = 0; 00109 00113 virtual void hide_mouse_pointer() = 0; 00114 00118 virtual void show_mouse_pointer() = 0; 00119 00134 virtual void dispatch_event(OSXEvent, OSXView) = 0; 00135 00141 virtual void key_down(unsigned int raw, unsigned int cooked, bool repeat) = 0; 00142 00147 virtual void key_up(unsigned int raw, unsigned int cooked) = 0; 00148 00155 virtual void mouse_down(int button, int x, int y) = 0; 00156 00163 virtual void mouse_up(int button, int x, int y) = 0; 00164 00171 virtual void mouse_moved(int x, int y) = 0; 00172 00179 virtual void wheel_moved(int button, int x, int y) = 0; 00180 }; 00181 00182 #endif // __CSSYS_MACOSX_OSXAssistant_h
Generated for Crystal Space 2.0 by doxygen 1.6.1