resources.cpp

Go to the documentation of this file.
00001 #ifndef RESOURCES_IMPLEMENTATION_FILE
00002 #define RESOURCES_IMPLEMENTATION_FILE
00003 
00004 /*****************************************************************************\
00005 *                                                                             *
00006 *  Name   : resources                                                         *
00007 *  Author : Chris Koeritz                                                     *
00008 *                                                                             *
00009 *******************************************************************************
00010 * Copyright (c) 1991-$now By Author.  This program is free software; you can  *
00011 * redistribute it and/or modify it under the terms of the GNU General Public  *
00012 * License as published by the Free Software Foundation; either version 2 of   *
00013 * the License or (at your option) any later version.  This is online at:      *
00014 *     http://www.fsf.org/copyleft/gpl.html                                    *
00015 * Please send any updates to: fred@gruntose.com                               *
00016 \*****************************************************************************/
00017 
00018 #include "resources.h"
00019 #include "wp_implementation.h"
00020 
00021 #include <basis/guards.h>
00022 
00023 #include <stdlib.h>
00024 
00025 resources::resources(window_handle parent)
00026 { setup_resources_dependent_on_system(parent); }
00027 
00028 resources::~resources() {}
00029 
00030 #ifdef __XWINDOWS__
00031 void resources::setup_resources_dependent_on_system(window_handle parent)
00032 {
00033   if (!parent) non_continuable_error("resources", "resources", "my parent is NIL");
00034   // Create a plain vanilla default graphics context.
00035   _gc = XCreateGC(XtDisplay(parent), DefaultRootWindow(XtDisplay(parent)),
00036       NIL, NIL);
00037 }
00038 #elif defined(MS_WINDOWS)
00039 resources::setup_resources_dependent_on_system(parent) {}
00040 #elif defined(OS_2)
00041 resources::setup_resources_dependent_on_system(parent) {}
00042 #endif
00043 
00044 #endif //RESOURCES_IMPLEMENTATION_FILE
00045 

Generated on Fri Nov 21 04:29:36 2008 for HOOPLE Libraries by  doxygen 1.5.1