Handle setting of client size for all types of windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -53,6 +53,7 @@ protected:
|
||||
// ------------------------------------------------------------------------
|
||||
protected:
|
||||
virtual void Cocoa_wxMenuItemAction(wxMenuItem& item);
|
||||
virtual void CocoaSetWxWindowSize(int width, int height);
|
||||
|
||||
// Helper function to position status/tool bars
|
||||
void UpdateFrameNSView();
|
||||
@@ -93,9 +94,6 @@ public:
|
||||
virtual void SetToolBar(wxToolBar *toolbar);
|
||||
protected:
|
||||
void PositionStatusBar();
|
||||
// override base class virtuals
|
||||
virtual void DoGetClientSize(int *width, int *height) const;
|
||||
virtual void DoSetClientSize(int width, int height);
|
||||
};
|
||||
|
||||
#endif // _WX_COCOA_FRAME_H_
|
||||
|
@@ -84,6 +84,7 @@ public:
|
||||
virtual bool Show( bool show = true );
|
||||
virtual bool Close( bool force = false );
|
||||
virtual void OnCloseWindow(wxCloseEvent& event);
|
||||
virtual void CocoaSetWxWindowSize(int width, int height);
|
||||
virtual void DoMoveWindow(int x, int y, int width, int height);
|
||||
virtual void DoGetSize(int *width, int *height) const;
|
||||
virtual void DoGetPosition(int *x, int *y) const;
|
||||
|
@@ -149,6 +149,10 @@ public:
|
||||
// Get/set client (application-useable) size
|
||||
virtual void DoGetClientSize(int *width, int *height) const;
|
||||
virtual void DoSetClientSize(int width, int size);
|
||||
// Set the size of the wxWindow (the contentView of an NSWindow)
|
||||
// wxTopLevelWindow will override this and set the NSWindow size
|
||||
// such that the contentView will be this size
|
||||
virtual void CocoaSetWxWindowSize(int width, int height);
|
||||
// Set overall size and position
|
||||
virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
|
||||
virtual void DoMoveWindow(int x, int y, int width, int height);
|
||||
|
Reference in New Issue
Block a user