source: golgotha/src/i4/gui/list_pick.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.3 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 __LIST_PICK_HH
10#define __LIST_PICK_HH
11
12#include "window/window.hh"
13class i4_menu_item_class;
14
15class i4_list_pick : public i4_parent_window_class
16{
17  w32 total_items;
18  i4_menu_item_class **items;
19  i4_color background;
20  w32 length;
21  w32 scroll_event_id;
22  sw32 start,end;
23  i4_bool need_draw_all, free_items;
24
25public:
26  char *name() { return "list_pick"; }
27 
28  i4_list_pick(w16 width, w16 height,
29               w32 total_items,
30               i4_menu_item_class **items,
31               w32 scroll_event_id,
32               i4_color background,
33               i4_bool free_item=i4_T);
34
35  ~i4_list_pick();
36
37  virtual void reposition_start(w32 new_start);
38 
39  virtual void parent_draw(i4_draw_context_class &context);
40  virtual void draw(i4_draw_context_class &context);
41
42  virtual void receive_event(i4_event *ev);
43};
44
45
46#endif
47
Note: See TracBrowser for help on using the repository browser.