]> git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/accel.h
Patch #1579801: wxBufferedDC shared buffer bitmap
[wxWidgets.git] / include / wx / motif / accel.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/accel.h
3 // Purpose: wxAcceleratorTable class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 17/09/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_ACCEL_H_
13 #define _WX_ACCEL_H_
14
15 #include "wx/object.h"
16 #include "wx/string.h"
17 #include "wx/event.h"
18
19 class WXDLLEXPORT wxAcceleratorTable: public wxObject
20 {
21 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
22 public:
23 wxAcceleratorTable();
24 wxAcceleratorTable(const wxString& resource); // Load from .rc resource
25 wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]); // Load from array
26
27 virtual ~wxAcceleratorTable();
28
29 bool operator == (const wxAcceleratorTable& accel) const { return m_refData == accel.m_refData; }
30 bool operator != (const wxAcceleratorTable& accel) const { return m_refData != accel.m_refData; }
31
32 bool Ok() const { return IsOk(); }
33 bool IsOk() const;
34
35 // Implementation only
36 int GetCount() const;
37 wxAcceleratorEntry* GetEntries() const;
38 };
39
40 WXDLLEXPORT_DATA(extern wxAcceleratorTable) wxNullAcceleratorTable;
41
42 #endif
43 // _WX_ACCEL_H_