X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6cb2477d9fe9b74b98ec8c02b36a5346d3b3e271..7344108e8a129a3f9b4df5ab0f98a1713db03b89:/interface/wx/gdicmn.h diff --git a/interface/wx/gdicmn.h b/interface/wx/gdicmn.h index 3a7d1acfc9..f043636096 100644 --- a/interface/wx/gdicmn.h +++ b/interface/wx/gdicmn.h @@ -24,8 +24,10 @@ enum wxBitmapType wxBITMAP_TYPE_XBM_DATA, wxBITMAP_TYPE_XPM, wxBITMAP_TYPE_XPM_DATA, - wxBITMAP_TYPE_TIF, - wxBITMAP_TYPE_TIF_RESOURCE, + wxBITMAP_TYPE_TIFF, + wxBITMAP_TYPE_TIF = wxBITMAP_TYPE_TIFF, + wxBITMAP_TYPE_TIFF_RESOURCE, + wxBITMAP_TYPE_TIF_RESOURCE = wxBITMAP_TYPE_TIFF_RESOURCE, wxBITMAP_TYPE_GIF, wxBITMAP_TYPE_GIF_RESOURCE, wxBITMAP_TYPE_PNG, @@ -351,7 +353,7 @@ public: The left border is moved farther left and the right border is moved farther right by @a dx. The upper border is moved farther up and the - bottom border is moved farther down by @a dy. (Note the the width and + bottom border is moved farther down by @a dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of @a dx and @a dy are negative, the opposite happens: the rectangle size decreases in the respective direction. @@ -443,6 +445,47 @@ public: */ void SetY(int y); + /** + Set the left side of the rectangle. + */ + void SetLeft(int left); + + /** + Set the right side of the rectangle. + */ + void SetRight(int right); + + /** + Set the top edge of the rectangle. + */ + void SetTop(int top); + + /** + Set the bottome edge of th rectangle. + */ + void SetBottom(int bottom); + + /** + Set the top-left point of the rectangle. + */ + void SetTopLeft(const wxPoint &p); + + /** + Set the bottom-right point of the rectangle. + */ + void SetBottomRight(const wxPoint &p); + + /** + Set the top-right point of the rectangle. + */ + void SetTopRight(const wxPoint &p); + + /** + Set the bottom-left point of the rectangle. + */ + void SetBottomLeft(const wxPoint &p); + + //@{ /** Modifies the rectangle to contain the bounding box of this rectangle @@ -623,7 +666,7 @@ public: @since 2.9.2 */ - void SetDefaults(const wxSize& sizeDefault); + void SetDefaults(const wxPoint& pt); //@} /** @@ -640,7 +683,7 @@ public: /** Global instance of a wxPoint initialized with values (-1,-1). */ -wxPoint wxDefaultPosition; +const wxPoint wxDefaultPosition; /** @@ -768,7 +811,7 @@ public: /** - Global istance of a wxColourDatabase. + Global instance of a wxColourDatabase. */ wxColourDatabase* wxTheColourDatabase; @@ -789,11 +832,6 @@ wxColourDatabase* wxTheColourDatabase; almost equivalent to wxSize, has a different meaning: wxPoint represents a position while wxSize represents the size. - @beginWxPythonOnly - wxPython defines aliases for the @e x and @e y members named @e width and - @e height since it makes much more sense for sizes. - @endWxPythonOnly - @library{wxcore} @category{data} @@ -948,7 +986,7 @@ public: /** Global instance of a wxSize object initialized to (-1,-1). */ -wxSize wxDefaultSize; +const wxSize wxDefaultSize;