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>
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
gui independent button class that provides a click signal
Definition button.h:13
cgv::signal::signal< button & > click
this signal is sent when the user presses the button
Definition button.h:20
data::ref_ptr< button > button_ptr
ref counted pointer to button
Definition button.h:24
the cgv namespace
Definition print.h:11