]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/frame.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/frame.h
3 // Purpose: wxFrame class
4 // Author: David Elliott
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_COCOA_FRAME_H_
13 #define _WX_COCOA_FRAME_H_
15 class WXDLLEXPORT wxMenuBar
;
16 class WXDLLEXPORT wxMenuItem
;
18 class WXDLLEXPORT wxFrame
: public wxFrameBase
21 DECLARE_DYNAMIC_CLASS(wxFrame
)
22 // ------------------------------------------------------------------------
24 // ------------------------------------------------------------------------
27 wxFrame(wxWindow
*parent
,
29 const wxString
& title
,
30 const wxPoint
& pos
= wxDefaultPosition
,
31 const wxSize
& size
= wxDefaultSize
,
32 long style
= wxDEFAULT_FRAME_STYLE
,
33 const wxString
& name
= wxFrameNameStr
)
36 Create(parent
, winid
, title
, pos
, size
, style
, name
);
41 bool Create(wxWindow
*parent
,
43 const wxString
& title
,
44 const wxPoint
& pos
= wxDefaultPosition
,
45 const wxSize
& size
= wxDefaultSize
,
46 long style
= wxDEFAULT_FRAME_STYLE
,
47 const wxString
& name
= wxFrameNameStr
);
50 // ------------------------------------------------------------------------
52 // ------------------------------------------------------------------------
54 virtual void Cocoa_wxMenuItemAction(wxMenuItem
& item
);
55 // ------------------------------------------------------------------------
57 // ------------------------------------------------------------------------
59 void AttachMenuBar(wxMenuBar
*mbar
);
62 // implementation only from now on
63 // -------------------------------
65 // override some more virtuals
66 virtual bool Show( bool show
= true );
68 // get the origin of the client area (which may be different from (0, 0)
69 // if the frame has a toolbar) in client coordinates
70 virtual wxPoint
GetClientAreaOrigin() const;
73 #endif // _WX_COCOA_FRAME_H_