QSDK 1.1 Documentation
Main Page | Modules | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

draw_os.h

Go to the documentation of this file.
00001 /*-
00002  * Copyright (c) 1999-2003 Qube Software, Ltd.
00003  * All rights reserved.
00004  * 
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions are
00007  * met:
00008  * 
00009  * 1. Redistributions of the source code must retain the above copyright
00010  *    notice, this list of conditions and the following disclaimer.
00011  * 
00012  * 2. Any redistribution solely in binary form must conspicuously
00013  *    reproduce the following disclaimer in documentation provided with the
00014  *    binary redistribution.
00015  * 
00016  * THIS SOFTWARE IS PROVIDED ``AS IS'', WITHOUT ANY WARRANTIES, EXPRESS
00017  * OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF
00018  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  LICENSOR SHALL
00019  * NOT BE LIABLE FOR ANY LOSS OR DAMAGES RESULTING FROM THE USE OF THIS
00020  * SOFTWARE, EITHER ALONE OR IN COMBINATION WITH ANY OTHER SOFTWARE.
00021  * 
00022  *      $Qube: Q/draw/sdk/draw_os.h,v 1.21 2003/06/19 12:50:41 peterj Exp $
00023  */
00024 
00025 #ifndef DRAW_BEGIN
00026 #define DRAW_BEGIN      namespace Draw {
00027 #define DRAW_END        }
00028 #endif
00029 
00030 DRAW_BEGIN
00031 
00044 #if defined(GUI_PS2)
00045 struct WindowInfo {
00046     bool                palMode;        
00047     bool                gfxProfiler;    
00048 };
00049 #elif defined(GUI_Win32)
00050 struct WindowInfo {
00051     struct {
00052         HWND            window;         
00053 
00054     } child;
00055     struct {
00056         HWND            window;         
00057     } parent;
00058 
00059     bool                pumpEvents;     
00060     bool                grabKeyFocus;   
00062 };
00063 #elif defined(GUI_X11)
00064 struct WindowInfo {
00065     struct {
00066         Display*        display;        
00067         int             screenno;       
00068         Window          window;
00069 
00070         XVisualInfo*    visinfo;
00071     } child;
00072     struct {
00073         Display*        display;        
00074         int             screenno;
00075         Window          window;
00076     } parent;
00077 
00078     bool                pumpEvents;     
00079 };
00080 #elif defined(GUI_AA)
00081 struct WindowInfo {
00082     struct {
00083         aa_context*     context;
00084     } child;
00085     // No parent context, we are always the root (I think)
00086 };
00087 #elif defined(GUI_AGL)
00088 struct WindowInfo {
00089     struct {
00090         WindowRef       window;
00091     } child;
00092 
00093     bool                pumpEvents;     
00094 };
00095 #else
00096 struct WindowInfo {
00097 };
00098 #endif
00099 
00100 DRAW_END

Return to QSDK documentation Contents page. Contact details for support, information and fault-reporting.
Qube Software Limited © 2000-2004