00001 #ifndef RESOURCES_IMPLEMENTATION_FILE
00002 #define RESOURCES_IMPLEMENTATION_FILE
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
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
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