image_win.hh 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #ifndef IMAGE_WIN_HH
  9. #define IMAGE_WIN_HH
  10. #include "window/window.hh"
  11. #include "window/win_evt.hh"
  12. class i4_image_class;
  13. class i4_image_window_class : public i4_parent_window_class
  14. {
  15. i4_image_class *im, *darken_im;
  16. i4_bool del, darken, active;
  17. void reparent(i4_image_class *draw_area, i4_parent_window_class *parent);
  18. public:
  19. // if delete on destructor is true then change_image will delete the old image
  20. void change_image(i4_image_class *im);
  21. i4_image_window_class(i4_image_class *im,
  22. i4_bool delete_on_destructor=i4_F,
  23. i4_bool dark_when_not_active=i4_T);
  24. virtual void parent_draw(i4_draw_context_class &context);
  25. void receive_event(i4_event *ev);
  26. ~i4_image_window_class();
  27. char *name() { return "image_window"; }
  28. } ;
  29. #endif