KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gui_selectable.h
Go to the documentation of this file.
1 /* $Id: gui_selectable.h 11209 2011-11-22 06:07:10Z ksimek $ */
2 /* {{{=========================================================================== *
3  |
4  | Copyright (c) 1994-2011 by Kobus Barnard (author)
5  |
6  | Personal and educational use of this code is granted, provided that this
7  | header is kept intact, and that the authorship is not misrepresented, that
8  | its use is acknowledged in publications, and relevant papers are cited.
9  |
10  | For other use contact the author (kobus AT cs DOT arizona DOT edu).
11  |
12  | Please note that the code in this file has not necessarily been adequately
13  | tested. Naturally, there is no guarantee of performance, support, or fitness
14  | for any particular task. Nonetheless, I am interested in hearing about
15  | problems that you encounter.
16  |
17  | Author: Kyle Simek
18  * =========================================================================== }}}*/
19 
20 // vim: tabstop=4 shiftwidth=4 foldmethod=marker
21 
22 #ifndef KJB_CPP_GUI_LISTENER_H
23 #define KJB_CPP_GUI_LISTENER_H
24 
25 #include <gr_cpp/gr_renderable.h>
26 
27 namespace kjb
28 {
29 namespace gui
30 {
46 {
47 public:
59  virtual bool selection_hit(unsigned int* index_stack, unsigned int* index_stack_end, int button, int state) = 0;
60 
66  virtual void render(bool select_mode) const = 0;
67 
71  virtual void render() const
72  {
73  render(false);
74  }
75 };
76 
77 }
78 }
79 
80 #endif
Abstract class to render this object with GL.
Definition: gr_renderable.h:78
Definition: gui_selectable.h:45
virtual bool selection_hit(unsigned int *index_stack, unsigned int *index_stack_end, int button, int state)=0
Abstract class to render this object with GL.
virtual void render() const
Definition: gui_selectable.h:71