3#include <cgv/base/node.h>
7#include "event_handler.h"
19 double increase_pressed_time;
20 double decrease_pressed_time;
29 void change_value(
double dt);
31 key_control(
const std::string&
name, T& _value,
const std::string& options =
"");
35 bool set_void(
const std::string& property,
const std::string& value_type,
const void* value_ptr);
36 bool get_void(
const std::string& property,
const std::string& value_type,
void* value_ptr);
37 void on_set(
void* member_ptr);
40 void timer_event(
double time,
double dt);
47 void change_value(
double dt);
49 key_control(
const std::string&
name,
bool& _value,
const std::string& options =
"");
52 bool set_void(
const std::string& property,
const std::string& value_type,
const void* value_ptr);
53 bool get_void(
const std::string& property,
const std::string& value_type,
void* value_ptr);
62#include <cgv/config/lib_end.h>
std::string name
store the name as a string
control(const std::string &_name, T &_value)
construct abstract element from reference to value
event_handler()
default construction
bool get_void(const std::string &property, const std::string &value_type, void *value_ptr)
abstract interface for the getter of a dynamic property.
bool set_void(const std::string &property, const std::string &value_type, const void *value_ptr)
abstract interface for the setter of a dynamic property.
std::string get_type_name() const
overload to return the type name of this object
bool handle(event &e)
overload and implement this method to handle events
std::string get_property_declarations()
return a semicolon separated list of property declarations
void stream_help(std::ostream &os)
overload to stream help information to the given output stream
std::string get_property_declarations()
return a semicolon separated list of property declarations
void stream_help(std::ostream &os)
overload to stream help information to the given output stream
bool self_reflect(cgv::reflect::reflection_handler &rh)
used for simple self reflection
void on_set(void *member_ptr)
this callback is called when the set_void method has changed a member and can be overloaded in derive...
bool set_void(const std::string &property, const std::string &value_type, const void *value_ptr)
abstract interface for the setter of a dynamic property.
std::string get_type_name() const
overload to return the type name of this object
bool handle(event &e)
overload and implement this method to handle events
bool get_void(const std::string &property, const std::string &value_type, void *value_ptr)
abstract interface for the getter of a dynamic property.
the shortcut class encapsulates a key with modifiers
the self reflection handler is passed to the virtual self_reflect() method of cgv::base::base.
namespace that holds the abstract gui interface
this header is dependency free