Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

bcpixmapsw.C

Go to the documentation of this file.
00001 #include "bcpixmap.h"
00002 #include "bcpixmapsw.h"
00003 #include "bcresources.h"
00004 #include "colors.h"
00005 #include "keys.h"
00006 #include "units.h"
00007 #include "vframe.h"
00008 
00009 #include <ctype.h>
00010 #include <math.h>
00011 #include <string.h>
00012 
00013 BC_PixmapSW::BC_PixmapSW(int x, int y, BC_Pixmap *thepixmap)
00014  : BC_SubWindow(x, y, -1, -1, -1)
00015 {
00016         this->thepixmap = thepixmap;
00017 }
00018 
00019 BC_PixmapSW::~BC_PixmapSW()
00020 {
00021 }
00022 
00023 int BC_PixmapSW::initialize()
00024 {
00025         w = thepixmap->get_w();
00026         h = thepixmap->get_h();
00027 
00028         BC_SubWindow::initialize();
00029         draw();
00030         return 0;
00031 }
00032 
00033 int BC_PixmapSW::reposition_widget(int x, int y)
00034 {
00035         BC_WindowBase::reposition_window(x, y);
00036         draw();
00037         return 0;
00038 }
00039 
00040 int BC_PixmapSW::draw()
00041 {
00042         draw_top_background(parent_window, 0, 0, get_w(), get_h());
00043         draw_pixmap(thepixmap);
00044         flash();
00045         return 0;
00046 }
00047 

Generated on Sun Jan 8 13:26:32 2006 for Guicast-svn by  doxygen 1.4.4