Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

NeXTAssistant.h

00001 #ifndef __cssys_NeXT_NeXTAssistant_h
00002 #define __cssys_NeXT_NeXTAssistant_h
00003 //=============================================================================
00004 //
00005 //      Copyright (C)1999-2001 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 // NeXTAssistant.h
00016 //
00017 //      Declares SCF interface for an object which provides assistance to
00018 //      NeXT-specific canvases, as well as to the Objective-C side of the
00019 //      application delegate.
00020 //
00021 //      This object is available to the MacOS/X, MacOS/X Server 1.0 (Rhapsody),
00022 //      OpenStep, and NextStep ports of Crystal Space.
00023 //
00024 //-----------------------------------------------------------------------------
00025 #include "csutil/scf.h"
00026 
00028 typedef void* NeXTEvent;
00030 typedef void* NeXTView;
00031 
00032 SCF_VERSION (iNeXTAssistant, 0, 0, 1);
00033 
00042 struct iNeXTAssistant : public iBase
00043 {
00047   virtual void request_shutdown() = 0;
00048 
00053   virtual void advance_state() = 0;
00054 
00059   virtual bool always_runs() = 0;
00060 
00067   virtual bool continue_running() = 0;
00068 
00074   virtual void application_activated() = 0;
00075 
00081   virtual void application_deactivated() = 0;
00082 
00088   virtual void flush_graphics_context() = 0;
00089 
00093   virtual void hide_mouse_pointer() = 0;
00094 
00098   virtual void show_mouse_pointer() = 0;
00099 
00115   virtual void dispatch_event(NeXTEvent, NeXTView) = 0;
00116 
00121   virtual void key_down(int raw, int cooked) = 0;
00122 
00127   virtual void key_up(int raw, int cooked) = 0;
00128 
00135   virtual void mouse_down(int button, int x, int y) = 0;
00136 
00143   virtual void mouse_up(int button, int x, int y) = 0;
00144 
00151   virtual void mouse_moved(int x, int y) = 0;
00152 };
00153 
00154 #endif // __cssys_NeXT_NeXTAssistant_h

Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000