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 DocAStr(wxAcceleratorTable,
53 "__init__(entries) -> AcceleratorTable",
54 "Construct an AcceleratorTable from a list of AcceleratorEntry items or\n"
55 "3-tuples (flags, keyCode, cmdID)");
56 wxAcceleratorTable(int n, const wxAcceleratorEntry* entries);
57 ~wxAcceleratorTable();
64 // See also wxPy_ReinitStockObjects in helpers.cpp
65 const wxAcceleratorTable wxNullAcceleratorTable;
69 wxAcceleratorEntry *wxGetAccelFromString(const wxString& label);
71 //---------------------------------------------------------------------------