class mrpt::gui::mrptEventWindowChar
Overview
An event sent by a window upon a char pressed by the user.
IMPORTANTE NOTICE: Event handlers in your observer class will be invoked from the wxWidgets internal MRPT thread, so all your code in the handler must be thread safe.
#include <mrpt/gui/CBaseGUIWindow.h> class mrptEventWindowChar: public mrpt::system::mrptEvent { public: // fields CBaseGUIWindow* source_object; int char_code; mrptKeyModifier key_modifiers; // construction mrptEventWindowChar( CBaseGUIWindow* obj, int _char_code, mrptKeyModifier _key_mod ); };
Inherited Members
public: // fields mrpt::Clock::time_point timestamp {mrpt::Clock::now()}; // methods template <class EVENTTYPE> bool isOfType() const; template <class EVENTTYPE> const EVENTTYPE* getAs() const; template <class EVENTTYPE> EVENTTYPE* getAsNonConst() const;
Fields
int char_code
The virtual key code, as defined in <mrpt/gui/keycodes.h> (a replication of wxWidgets key codes).
mrptKeyModifier key_modifiers
Modifiers (Shift, Control, etc…)