Constructor.
@param flags
- A combination of the wxAcceleratorEntryFlags values, which
+ A combination of the ::wxAcceleratorEntryFlags values, which
indicates which modifier keys are held down.
@param keyCode
- The keycode to be detected. See @ref page_keycodes for a full list of keycodes.
+ The keycode to be detected. See ::wxKeyCode for a full list of keycodes.
@param cmd
The menu or control command identifier (ID).
@param item
Sets the accelerator entry parameters.
@param flags
- A combination of the wxAcceleratorEntryFlags values, which
+ A combination of the ::wxAcceleratorEntryFlags values, which
indicates which modifier keys are held down.
@param keyCode
- The keycode to be detected. See @ref page_keycodes for a full list of keycodes.
+ The keycode to be detected. See ::wxKeyCode for a full list of keycodes.
@param cmd
The menu or control command identifier (ID).
@param item
/**
Returns a wxString for this accelerator.
+
This function formats it using the @c "flags-keycode" format
where @c flags maybe a hyphen-separed list of @c "shift|alt|ctrl".
*/
Both key events provide untranslated key codes while the char event carries
the translated one. The untranslated code for alphanumeric keys is always
an upper case value. For the other keys it is one of @c WXK_XXX values
- from the @ref page_keycodes.
+ from the ::wxKeyCode enumeration.
The translated key is, in general, the character the user expects to appear
as the result of the key combination when typing the text into a text entry
zone, for example.
/**
Returns the virtual key code. ASCII events return normal ASCII values,
while non-ASCII events return values such as @b WXK_LEFT for the left cursor
- key. See @ref page_keycodes for a full list of the virtual key codes.
+ key. See ::wxKeyCode for a full list of the virtual key codes.
Note that in Unicode build, the returned value is meaningful only if the
user entered a character that can be represented in current locale's default
information about the modifier keys which were pressed when the event
occurred.
- This class is implemented entirely inline in @<wx/keystate.h@> and thus has
+ This class is implemented entirely inline in @<wx/kbdstate.h@> and thus has
no linking requirements.
@category{misc}
+ @nolibrary
@see wxKeyEvent, wxMouseState
*/
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
*/
virtual int GetSelections(wxArrayInt& selections) const;
- //@{
/**
Returns the item located at @a point, or @c wxNOT_FOUND if there
is no item located at @a point.
@since 2.7.0
*/
int HitTest(const wxPoint& point) const;
+
+ /**
+ @overload
+ */
int HitTest(int x, int y) const;
- //@}
/**
Insert the given number of strings before the specified position.