source: golgotha/src/i4/menu/image_item.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.5 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#include "menu/menu.hh"
10
11class i4_str;
12class i4_image_class;
13
14class i4_image_item_class : public i4_menu_item_class
15{
16  i4_image_class *im, *act;
17  i4_bool del_im;
18  i4_bool del_act;
19
20public: 
21  i4_image_item_class(const i4_const_str *context_help,
22                      i4_image_class *normal_image,                     
23                      i4_graphical_style_class *style,
24                      i4_image_class *active_image=0,     // if 0, then image will brighten
25                      i4_bool delete_images_on_death=i4_T,
26                      i4_event_reaction_class *press=0,
27                      i4_event_reaction_class *depress=0,
28                      i4_event_reaction_class *activate=0,
29                      i4_event_reaction_class *deactivate=0);
30
31  ~i4_image_item_class();
32  virtual void parent_draw(i4_draw_context_class &context);
33  virtual void receive_event(i4_event *ev);
34
35  virtual i4_menu_item_class *copy();
36  char *name() { return "image_item"; }
37};
Note: See TracBrowser for help on using the repository browser.