]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/control.h
export wxRichTextObjectPtrArrayArray since it is used in the public API.
[wxWidgets.git] / include / wx / osx / control.h
CommitLineData
6762286d 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/osx/control.h
6762286d
SC
3// Purpose: wxControl class
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
7// RCS-ID: $Id$
8// Copyright: (c) Stefan Csomor
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_CONTROL_H_
13#define _WX_CONTROL_H_
14
15WXDLLIMPEXP_DATA_CORE(extern const char) wxControlNameStr[];
16
17// General item class
18class WXDLLIMPEXP_CORE wxControl : public wxControlBase
19{
20 DECLARE_ABSTRACT_CLASS(wxControl)
21
22public:
23 wxControl();
24 wxControl(wxWindow *parent, wxWindowID winid,
25 const wxPoint& pos = wxDefaultPosition,
26 const wxSize& size = wxDefaultSize, long style = 0,
27 const wxValidator& validator = wxDefaultValidator,
28 const wxString& name = wxControlNameStr)
29 {
30 Create(parent, winid, pos, size, style, validator, name);
31 }
32
33 bool Create(wxWindow *parent, wxWindowID winid,
34 const wxPoint& pos = wxDefaultPosition,
35 const wxSize& size = wxDefaultSize, long style = 0,
36 const wxValidator& validator = wxDefaultValidator,
37 const wxString& name = wxControlNameStr);
6762286d
SC
38
39 // Simulates an event
40 virtual void Command(wxCommandEvent& event) { ProcessCommand(event); }
41
42 // implementation from now on
43 // --------------------------
44
45 // Calls the callback and appropriate event handlers
46 bool ProcessCommand(wxCommandEvent& event);
47
48 void OnKeyDown( wxKeyEvent &event ) ;
49};
50
5c6eb3a8 51#endif
6762286d 52 // _WX_CONTROL_H_