1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: documentation for wxAcceleratorEntry class
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
10 @class wxAcceleratorEntry
13 An object used by an application wishing to create an @ref
14 overview_wxacceleratortable "accelerator table".
20 wxAcceleratorTable, wxWindow::SetAcceleratorTable
22 class wxAcceleratorEntry
30 One of wxACCEL_ALT, wxACCEL_SHIFT, wxACCEL_CTRL and wxACCEL_NORMAL.
32 which modifier key is held down.
34 The keycode to be detected. See Keycodes for a full list of keycodes.
36 The menu or control command identifier.
39 wxAcceleratorEntry(int flags
, int keyCode
, int cmd
);
43 Returns the command identifier for the accelerator table entry.
48 Returns the flags for the accelerator table entry.
53 Returns the keycode for the accelerator table entry.
58 Sets the accelerator entry parameters.
61 One of wxACCEL_ALT, wxACCEL_SHIFT, wxACCEL_CTRL and wxACCEL_NORMAL.
63 which modifier key is held down.
65 The keycode to be detected. See Keycodes for a full list of keycodes.
67 The menu or control command identifier.
69 void Set(int flags
, int keyCode
, int cmd
);
74 @class wxAcceleratorTable
77 An accelerator table allows the application to specify a table of keyboard
79 menus or other commands. On Windows and Mac OS X, menu or button commands are
81 only menu commands are supported.
83 The object @b wxNullAcceleratorTable is defined to be a table with no data, and
85 initial accelerator table for a window.
92 wxNullAcceleratorTable
95 wxAcceleratorEntry, wxWindow::SetAcceleratorTable
97 class wxAcceleratorTable
: public wxObject
102 Loads the accelerator table from a Windows resource (Windows only).
105 Number of accelerator entries.
107 The array of entries.
109 Name of a Windows accelerator.
111 wxAcceleratorTable();
112 wxAcceleratorTable(const wxAcceleratorTable
& bitmap
);
113 wxAcceleratorTable(int n
, wxAcceleratorEntry entries
[]);
114 wxAcceleratorTable(const wxString
& resource
);
118 Destroys the wxAcceleratorTable object.
119 See @ref overview_refcountdestruct "reference-counted object destruction" for
122 ~wxAcceleratorTable();
125 Returns @true if the accelerator table is valid.
130 Assignment operator, using @ref overview_trefcount "reference counting".
133 Accelerator table to assign.
135 wxAcceleratorTable
operator =(const wxAcceleratorTable
& accel
);