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. Indicates
31 which modifier key is held down.
34 The keycode to be detected. See Keycodes for a full list of keycodes.
37 The menu or control command identifier.
40 wxAcceleratorEntry(int flags
, int keyCode
, int cmd
);
44 Returns the command identifier for the accelerator table entry.
49 Returns the flags for the accelerator table entry.
54 Returns the keycode for the accelerator table entry.
59 Sets the accelerator entry parameters.
62 One of wxACCEL_ALT, wxACCEL_SHIFT, wxACCEL_CTRL and wxACCEL_NORMAL. Indicates
63 which modifier key is held down.
66 The keycode to be detected. See Keycodes for a full list of keycodes.
69 The menu or control command identifier.
71 #define void Set(int flags, int keyCode, int cmd) /* implementation is private */
76 @class wxAcceleratorTable
79 An accelerator table allows the application to specify a table of keyboard
81 menus or other commands. On Windows and Mac OS X, menu or button commands are
83 only menu commands are supported.
85 The object @b wxNullAcceleratorTable is defined to be a table with no data, and
87 initial accelerator table for a window.
94 wxNullAcceleratorTable
97 wxAcceleratorEntry, wxWindow::SetAcceleratorTable
99 class wxAcceleratorTable
: public wxObject
104 Loads the accelerator table from a Windows resource (Windows only).
107 Number of accelerator entries.
110 The array of entries.
113 Name of a Windows accelerator.
115 wxAcceleratorTable();
116 wxAcceleratorTable(const wxAcceleratorTable
& bitmap
);
117 wxAcceleratorTable(int n
, wxAcceleratorEntry entries
[]);
118 wxAcceleratorTable(const wxString
& resource
);
122 Destroys the wxAcceleratorTable object.
123 See @ref overview_refcountdestruct "reference-counted object destruction" for
126 ~wxAcceleratorTable();
129 Returns @true if the accelerator table is valid.
131 #define bool IsOk() /* implementation is private */
134 Assignment operator, using @ref overview_trefcount "reference counting".
137 Accelerator table to assign.
139 wxAcceleratorTable
operator =(const wxAcceleratorTable
& accel
);