cgv
button.h
1 #pragma once
2 
3 #include <cgv/base/node.h>
4 #include <cgv/signal/signal.h>
5 #include <cgv/data/ref_ptr.h>
6 #include "lib_begin.h"
7 
8 namespace cgv {
9  namespace gui {
10 
12 class CGV_API button : public base::node
13 {
14 public:
16  button(const std::string& name = "");
18  std::string get_type_name() const;
20  cgv::signal::signal<button&> click;
21 };
22 
25 
26 #if _MSC_VER >= 1400
27 CGV_TEMPLATE template class CGV_API data::ref_ptr<button>;
28 #endif
29 
30 
31  }
32 }
33 
34 #include <cgv/config/lib_end.h>
cgv::data::ref_ptr
Definition: ref_ptr.h:19
cgv::gui::button_ptr
data::ref_ptr< button > button_ptr
ref counted pointer to button
Definition: button.h:24
cgv::gui::button::click
cgv::signal::signal< button & > click
this signal is sent when the user presses the button
Definition: button.h:20
cgv
the cgv namespace
Definition: vr_calib.cxx:9
cgv::base::node
Definition: node.h:17
cgv::gui::button
gui independent button class that provides a click signal
Definition: button.h:13