class mrpt::gui::mrptEventWindowChar

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
        );
};

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…)