source: golgotha/src/i4/menu/boxmenu.hh @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 11 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 1.2 KB
Line 
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 __BOXMENU_HPP_
10#define __BOXMENU_HPP_
11
12#include "menu/menu.hh"
13#include "window/window.hh"
14#include "error/error.hh"
15#include "menu/menuitem.hh"
16
17class i4_graphical_style_class;
18
19class i4_box_menu_class : public i4_menu_class
20{
21
22  i4_graphical_style_class *style;
23 
24  public :
25  // show should make the menu visible on the screen
26  virtual void show(i4_parent_window_class *show_on, i4_coord x, i4_coord y);
27  virtual void hide();
28
29  virtual void parent_draw(i4_draw_context_class &context);
30  i4_box_menu_class(i4_graphical_style_class *style,
31                    i4_bool hide_on_pick) :
32    i4_menu_class(hide_on_pick),
33    style(style)
34  { ; }
35
36  char *name() { return "box_menu"; }
37
38} ;
39
40
41#endif
Note: See TracBrowser for help on using the repository browser.