- // client size is the size of area available for subwindows
- void SetClientSize( int width, int height )
- { DoSetClientSize(width, height); }
-
- void SetClientSize( const wxSize& size )
- { DoSetClientSize(size.x, size.y); }
-
- void SetClientSize(const wxRect& rect)
- { SetClientSize( rect.width, rect.height ); }
-
- // get the window position and/or size
- virtual void GetPosition( int *x, int *y ) const;
- wxPoint GetPosition() const
- {
- int w, h;
- GetPosition(& w, & h);
-
- return wxPoint(w, h);
- }
-
- virtual void GetSize( int *width, int *height ) const;
-
- wxSize GetSize() const
- {
- int w, h;
- GetSize(& w, & h);
- return wxSize(w, h);
- }
-
- wxRect GetRect() const
- {
- int x, y, w, h;
- GetPosition(& x, & y);
- GetSize(& w, & h);
-
- return wxRect(x, y, w, h);
- }
-
- virtual void GetClientSize( int *width, int *height ) const;
- wxSize GetClientSize() const
- {
- int w, h;
- GetClientSize(& w, & h);
- return wxSize(w, h);
- }
-
- // position with respect to the the parent window
- virtual void Centre( int direction = wxHORIZONTAL );
- void Center(int direction = wxHORIZONTAL) { Centre(direction); }
- virtual void Fit();
-
- // set min/max size of the window
- virtual void SetSizeHints( int minW, int minH,
- int maxW = -1, int maxH = -1,
- int incW = -1, int incH = -1 );
-
- // Dialog units translations. Implemented in wincmn.cpp.
- // -----------------------------------------------------
-
- wxPoint ConvertPixelsToDialog( const wxPoint& pt );
- wxPoint ConvertDialogToPixels( const wxPoint& pt );
- wxSize ConvertPixelsToDialog( const wxSize& sz )
- {
- wxPoint pt(ConvertPixelsToDialog(wxPoint(sz.x, sz.y)));
-
- return wxSize(pt.x, pt.y);
- }
-
- wxSize ConvertDialogToPixels( const wxSize& sz )
- {
- wxPoint pt(ConvertDialogToPixels(wxPoint(sz.x, sz.y)));
-
- return wxSize(pt.x, pt.y);
- }
-
- void OnSize( wxSizeEvent &event );