00001 #ifndef RESOURCES_CLASS 00002 #define RESOURCES_CLASS 00003 00004 /*****************************************************************************\ 00005 * * 00006 * Name : resources * 00007 * Author : Chris Koeritz * 00008 * * 00009 * Purpose: * 00010 * * 00011 * Serves as a repository for various attributes needed to interact * 00012 * effectively with the underlying window system. * 00013 * * 00014 ******************************************************************************* 00015 * Copyright (c) 1991-$now By Author. This program is free software; you can * 00016 * redistribute it and/or modify it under the terms of the GNU General Public * 00017 * License as published by the Free Software Foundation; either version 2 of * 00018 * the License or (at your option) any later version. This is online at: * 00019 * http://www.fsf.org/copyleft/gpl.html * 00020 * Please send any updates to: fred@gruntose.com * 00021 \*****************************************************************************/ 00022 00023 #include "definitions_passive.h" 00024 00025 class WP_PASSIVE_CLASS_STYLE resources 00026 { 00027 public: 00028 resources(window_handle parent); 00029 ~resources(); 00030 00031 private: 00032 void setup_resources_dependent_on_system(window_handle parent); 00033 00034 // The following section is defined a little messily, but at least it keeps 00035 // the window system dependent stuff separated out. Please don't futz it up. 00036 00037 #ifdef __XWINDOWS__ 00038 public: 00039 XGCValues gcValues; 00040 GC _gc; 00041 00042 #elif defined(MS_WINDOWS) 00043 public: 00044 private: 00045 00046 #elif defined(OS_2) 00047 public: 00048 private: 00049 #endif 00050 }; 00051 00053 00054 #endif
1.5.1