1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface for wxAcceleratorTable
7 // Created: 03-July-1997
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
16 //---------------------------------------------------------------------------
18 %typemap(in) (int n, const wxAcceleratorEntry* entries) {
19 $2 = wxAcceleratorEntry_LIST_helper($input);
20 if ($2) $1 = PyList_Size($input);
24 %typemap(freearg) wxAcceleratorEntry* entries {
30 //---------------------------------------------------------------------------
34 class wxAcceleratorEntry {
36 wxAcceleratorEntry(int flags = 0, int keyCode = 0, int cmd = 0, wxMenuItem *item = NULL);
37 ~wxAcceleratorEntry();
39 void Set(int flags, int keyCode, int cmd, wxMenuItem *item = NULL);
41 void SetMenuItem(wxMenuItem *item);
42 wxMenuItem *GetMenuItem() const;
50 class wxAcceleratorTable : public wxObject {
52 // Can also accept a list of 3-tuples
53 wxAcceleratorTable(int n, const wxAcceleratorEntry* entries);
54 ~wxAcceleratorTable();
61 // See also wxPy_ReinitStockObjects in helpers.cpp
62 const wxAcceleratorTable wxNullAcceleratorTable;
66 wxAcceleratorEntry *wxGetAccelFromString(const wxString& label);
68 //---------------------------------------------------------------------------