1#include "event_handler.h"
2#include "key_control.h"
3#include <cgv/base/group.h>
4#include <cgv/type/info/type_name.h>
5#include <cgv/signal/rebind.h>
32 std::string type_name;
base class for all classes that can be registered with support for dynamic properties (see also secti...
virtual 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...
void * find_member_ptr(const std::string &property_name, std::string *type_name=0)
find a member pointer by name.
The group class is a node with children.
virtual unsigned int append_child(base_ptr child)
append child and return index of appended child
traverse_policy(int _policy=TP_ALL+TP_STOP_ON_SUCCESS, bool _active=true, int _focus=-1)
construct default traverse policy that visits everything
reference counted pointer, which can work together with types that are derived from ref_counted,...
bool empty() const
check if pointer is not yet set
bool add_key_control(const std::string &property, const std::string &options, cgv::base::group_ptr group=cgv::base::group_ptr())
add a key control for the given property with the given options.
event_handler()
default construction
bool grab_focus()
grab the focus in all parent nodes
the base namespace holds the base hierarchy, support for plugin registration and signals
bool grab_focus(X *instance)
try to grab the focus in the path of this node to the root of the tree
data::ref_ptr< group, true > group_ptr
ref counted pointer to a node
namespace that holds the abstract gui interface
this header is dependency free
static const char * get_name()
return special name for standard types or type name from RTTI cleaned from keywords for all other typ...