]> git.saurik.com Git - wxWidgets.git/blame - include/wx/univ/frame.h
Fixup Blit so it can be used with a source that is a wxBufferedDC,
[wxWidgets.git] / include / wx / univ / frame.h
CommitLineData
1e6feb95
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/univ/frame.h
3// Purpose: wxFrame class for wxUniversal
4// Author: Vadim Zeitlin
5// Modified by:
6// Created: 19.05.01
7// RCS-ID: $Id$
442b35b5 8// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
65571936 9// Licence: wxWindows licence
1e6feb95
VZ
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_UNIV_FRAME_H_
13#define _WX_UNIV_FRAME_H_
14
1e6feb95
VZ
15// ----------------------------------------------------------------------------
16// wxFrame
17// ----------------------------------------------------------------------------
18
f417f1d5 19class WXDLLEXPORT wxFrame : public wxFrameBase
1e6feb95
VZ
20{
21public:
6463b9f5 22 wxFrame() {}
1e6feb95
VZ
23 wxFrame(wxWindow *parent,
24 wxWindowID id,
25 const wxString& title,
26 const wxPoint& pos = wxDefaultPosition,
27 const wxSize& size = wxDefaultSize,
28 long style = wxDEFAULT_FRAME_STYLE,
6463b9f5
JS
29 const wxString& name = wxFrameNameStr)
30 {
31 Create(parent, id, title, pos, size, style, name);
32 }
f417f1d5 33
b85a6d85
VS
34 bool Create(wxWindow *parent,
35 wxWindowID id,
36 const wxString& title,
37 const wxPoint& pos = wxDefaultPosition,
38 const wxSize& size = wxDefaultSize,
39 long style = wxDEFAULT_FRAME_STYLE,
40 const wxString& name = wxFrameNameStr);
1e6feb95
VZ
41
42 virtual wxPoint GetClientAreaOrigin() const;
a290fa5a 43 virtual bool Enable(bool enable = true);
1e6feb95 44
6821401b
VS
45#if wxUSE_STATUSBAR
46 virtual wxStatusBar* CreateStatusBar(int number = 1,
47 long style = wxST_SIZEGRIP,
48 wxWindowID id = 0,
49 const wxString& name = wxStatusLineNameStr);
50#endif // wxUSE_STATUSBAR
51
857dab7d
VS
52#if wxUSE_TOOLBAR
53 // create main toolbar bycalling OnCreateToolBar()
f9dae779 54 virtual wxToolBar* CreateToolBar(long style = -1,
a290fa5a 55 wxWindowID id = wxID_ANY,
857dab7d 56 const wxString& name = wxToolBarNameStr);
857dab7d 57#endif // wxUSE_TOOLBAR
6821401b 58
e7dda1ff
VS
59 virtual int GetMinWidth() const;
60 virtual int GetMinHeight() const;
61
dda4f6c0
JS
62 // sends wxSizeEvent to itself (used after attaching xxxBar)
63 virtual void SendSizeEvent();
64
1e6feb95
VZ
65protected:
66 void OnSize(wxSizeEvent& event);
afad4a88 67 void OnSysColourChanged(wxSysColourChangedEvent& event);
f417f1d5 68
a9152a05
VS
69 virtual void DoGetClientSize(int *width, int *height) const;
70 virtual void DoSetClientSize(int width, int height);
71
1e6feb95
VZ
72#if wxUSE_MENUS
73 // override to update menu bar position when the frame size changes
74 virtual void PositionMenuBar();
6821401b
VS
75 virtual void DetachMenuBar();
76 virtual void AttachMenuBar(wxMenuBar *menubar);
1e6feb95
VZ
77#endif // wxUSE_MENUS
78
d08e6e59
VS
79#if wxUSE_STATUSBAR
80 // override to update statusbar position when the frame size changes
81 virtual void PositionStatusBar();
82#endif // wxUSE_MENUS
83
6f02a879
VZ
84protected:
85#if wxUSE_TOOLBAR
86 virtual void PositionToolBar();
87#endif // wxUSE_TOOLBAR
88
1e6feb95
VZ
89 DECLARE_EVENT_TABLE()
90 DECLARE_DYNAMIC_CLASS(wxFrame)
91};
92
93#endif // _WX_UNIV_FRAME_H_