Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / guicast / bcpixmapsw.C
blobe6f0b023123d28d82d1f744a5ac6f703a4743da3
1 #include "bcpixmap.h"
2 #include "bcpixmapsw.h"
3 #include "bcresources.h"
4 #include "colors.h"
5 #include "keys.h"
6 #include "units.h"
7 #include "vframe.h"
9 #include <ctype.h>
10 #include <math.h>
11 #include <string.h>
13 BC_PixmapSW::BC_PixmapSW(int x, int y, BC_Pixmap *thepixmap)
14  : BC_SubWindow(x, y, -1, -1, -1)
16         this->thepixmap = thepixmap;
19 BC_PixmapSW::~BC_PixmapSW()
23 int BC_PixmapSW::initialize()
25         w = thepixmap->get_w();
26         h = thepixmap->get_h();
28         BC_SubWindow::initialize();
29         draw();
30         return 0;
33 int BC_PixmapSW::reposition_widget(int x, int y)
35         BC_WindowBase::reposition_window(x, y);
36         draw();
37         return 0;
40 int BC_PixmapSW::draw()
42         draw_top_background(parent_window, 0, 0, get_w(), get_h());
43         draw_pixmap(thepixmap);
44         flash();
45         return 0;
49 //      Local Variables:
50 //      mode: C++
51 //      c-file-style: "linux"
52 //      End: