[80] | 1 | /********************************************************************** <BR>
|
---|
| 2 | This file is part of Crack dot Com's free source code release of
|
---|
| 3 | Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
|
---|
| 4 | information about compiling & licensing issues visit this URL</a>
|
---|
| 5 | <PRE> If that doesn't help, contact Jonathan Clark at
|
---|
| 6 | golgotha_source@usa.net (Subject should have "GOLG" in it)
|
---|
| 7 | ***********************************************************************/
|
---|
| 8 |
|
---|
| 9 | #ifndef IMAGE_WIN_HH
|
---|
| 10 | #define IMAGE_WIN_HH
|
---|
| 11 |
|
---|
| 12 | #include "window/window.hh"
|
---|
| 13 | #include "window/win_evt.hh"
|
---|
| 14 |
|
---|
| 15 | class i4_image_class;
|
---|
| 16 |
|
---|
| 17 | class i4_image_window_class : public i4_parent_window_class
|
---|
| 18 | {
|
---|
| 19 | i4_image_class *im, *darken_im;
|
---|
| 20 | i4_bool del, darken, active;
|
---|
| 21 |
|
---|
| 22 | void reparent(i4_image_class *draw_area, i4_parent_window_class *parent);
|
---|
| 23 | public:
|
---|
| 24 | // if delete on destructor is true then change_image will delete the old image
|
---|
| 25 | void change_image(i4_image_class *im);
|
---|
| 26 |
|
---|
| 27 | i4_image_window_class(i4_image_class *im,
|
---|
| 28 | i4_bool delete_on_destructor=i4_F,
|
---|
| 29 | i4_bool dark_when_not_active=i4_T);
|
---|
| 30 |
|
---|
| 31 | virtual void parent_draw(i4_draw_context_class &context);
|
---|
| 32 | void receive_event(i4_event *ev);
|
---|
| 33 | ~i4_image_window_class();
|
---|
| 34 | char *name() { return "image_window"; }
|
---|
| 35 | } ;
|
---|
| 36 |
|
---|
| 37 | #endif
|
---|