boxmenu.hh 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 __BOXMENU_HPP_
  9. #define __BOXMENU_HPP_
  10. #include "menu/menu.hh"
  11. #include "window/window.hh"
  12. #include "error/error.hh"
  13. #include "menu/menuitem.hh"
  14. class i4_graphical_style_class;
  15. class i4_box_menu_class : public i4_menu_class
  16. {
  17. i4_graphical_style_class *style;
  18. public :
  19. // show should make the menu visible on the screen
  20. virtual void show(i4_parent_window_class *show_on, i4_coord x, i4_coord y);
  21. virtual void hide();
  22. virtual void parent_draw(i4_draw_context_class &context);
  23. i4_box_menu_class(i4_graphical_style_class *style,
  24. i4_bool hide_on_pick) :
  25. i4_menu_class(hide_on_pick),
  26. style(style)
  27. { ; }
  28. char *name() { return "box_menu"; }
  29. } ;
  30. #endif