X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0a98423eb038738b5c4c76c575435034ee8b7d56..a8bda512079352ba81933e278d9ccdb8ef7a9866:/interface/wx/kbdstate.h diff --git a/interface/wx/kbdstate.h b/interface/wx/kbdstate.h index 45310d19c5..27060a379a 100644 --- a/interface/wx/kbdstate.h +++ b/interface/wx/kbdstate.h @@ -4,7 +4,7 @@ // Author: wxWidgets team // Created: 2008-09-19 // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -15,10 +15,11 @@ information about the modifier keys which were pressed when the event occurred. - This class is implemented entirely inline in @ and thus has + This class is implemented entirely inline in @ and thus has no linking requirements. - @category{misc} + @nolibrary + @category{events} @see wxKeyEvent, wxMouseState */ @@ -41,9 +42,9 @@ public: The return value is a combination of @c wxMOD_ALT, @c wxMOD_CONTROL, @c wxMOD_SHIFT and @c wxMOD_META bit masks. Additionally, @c wxMOD_NONE is defined as 0, i.e. corresponds to no modifiers (see HasModifiers()) - and @c wxMOD_CMD is either @c wxMOD_CONTROL (MSW and Unix) or @c - wxMOD_META (Mac), see CmdDown(). See @ref page_keymodifiers for the - full list of modifiers. + and @c wxMOD_CMD is either @c wxMOD_CONTROL (MSW and Unix) or + @c wxMOD_META (Mac), see CmdDown(). + See ::wxKeyModifier for the full list of modifiers. Notice that this function is easier to use correctly than, for example, ControlDown() because when using the latter you also have to remember to @@ -129,5 +130,12 @@ public: Notice that GetModifiers() should usually be used instead of this one. */ bool CmdDown() const; + + + void SetControlDown(bool down); + void SetShiftDown(bool down); + void SetAltDown(bool down); + void SetMetaDown(bool down); + };