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 
00061   virtual bool continue_running() = 0;
00062 
00068   virtual void application_activated() = 0;
00069 
00075   virtual void application_deactivated() = 0;
00076 
00082   virtual void flush_graphics_context() = 0;
00083 
00087   virtual void hide_mouse_pointer() = 0;
00088 
00092   virtual void show_mouse_pointer() = 0;
00093 
00109   virtual void dispatch_event(NeXTEvent, NeXTView) = 0;
00110 
00115   virtual void key_down(int raw, int cooked) = 0;
00116 
00121   virtual void key_up(int raw, int cooked) = 0;
00122 
00129   virtual void mouse_down(int button, int x, int y) = 0;
00130 
00137   virtual void mouse_up(int button, int x, int y) = 0;
00138 
00145   virtual void mouse_moved(int x, int y) = 0;
00146 };
00147 
00148 #endif // __cssys_NeXT_NeXTAssistant_h

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