libt3widget
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules
popup.h
1 /* Copyright (C) 2013 G.P. Halkes
2  This program is free software: you can redistribute it and/or modify
3  it under the terms of the GNU General Public License version 3, as
4  published by the Free Software Foundation.
5 
6  This program is distributed in the hope that it will be useful,
7  but WITHOUT ANY WARRANTY; without even the implied warranty of
8  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9  GNU General Public License for more details.
10 
11  You should have received a copy of the GNU General Public License
12  along with this program. If not, see <http://www.gnu.org/licenses/>.
13 */
14 #ifndef T3_WIDGET_POPUP_H
15 #define T3_WIDGET_POPUP_H
16 
17 #include <t3widget/dialogs/dialogbase.h>
18 
19 namespace t3_widget {
20 
22 class T3_WIDGET_API popup_t : public dialog_base_t, public mouse_target_t {
23  private:
24  friend class dialog_t;
25 
26  bool draw;
27  bool shown;
28  protected:
29  popup_t(int height, int width, bool shadow = true, bool _draw = true);
30 
31  public:
32  virtual bool process_key(key_t key);
33  virtual void update_contents(void);
34  virtual void show(void);
35  virtual void hide(void);
36  virtual bool process_mouse_event(mouse_event_t event);
37 
38  bool is_shown(void);
39 };
40 
41 } // namespace
42 
43 #endif
The t3_widget namespace is contains all classes, functions and global variables in the libt3widget li...
Definition: autocompleter.cc:18
Definition: dialogbase.h:29
long key_t
Integer type holding a single key symbol.
Definition: key.h:24
Base class for dialogs.
Definition: popup.h:22
Base class for dialogs.
Definition: dialog.h:27
Structure holding the relevant elements of a mouse event.
Definition: mouse.h:23
Definition: interfaces.h:122