cgv
Loading...
Searching...
No Matches
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
8namespace cgv {
9 namespace gui {
10
12class CGV_API button : public base::node
13{
14public:
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
27CGV_TEMPLATE template class CGV_API data::ref_ptr<button>;
28#endif
29
30
31 }
32}
33
34#include <cgv/config/lib_end.h>
std::string name
store the name as a string
Definition named.h:25
The node class keeps a pointer to its parent.
Definition node.h:19
reference counted pointer, which can work together with types that are derived from ref_counted,...
Definition ref_ptr.h:160
button(const std::string &name="")
construct from name
Definition button.cxx:7
cgv::signal::signal< button & > click
this signal is sent when the user presses the button
Definition button.h:20
std::string get_type_name() const
overload to return the type name of this object
Definition button.cxx:12
namespace that holds the abstract gui interface
Definition vr_calib.cxx:10
data::ref_ptr< button > button_ptr
ref counted pointer to button
Definition button.h:24
this header is dependency free
Definition print.h:11