fix also wxPen to use wxPenStyle,wxPenJoin,wxPenCap enums instead of plain int; remove from wxBrushStyle the styles wxPen-specific; add backward-compatible ctor to wxPen; don't include brush.h and pen.h from gdicmn.h, rather move wxPenList,wxBrushList,wxFontList in the relative headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -28,11 +28,15 @@ class WXDLLIMPEXP_FWD_CORE wxPen;
|
||||
// wxPen
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLIMPEXP_CORE wxPen: public wxGDIObject
|
||||
class WXDLLIMPEXP_CORE wxPen: public wxPenBase
|
||||
{
|
||||
public:
|
||||
wxPen() {}
|
||||
wxPen(const wxColour &colour, int width = 1, int style = wxSOLID);
|
||||
wxPen(const wxColour &colour, int width = 1, wxPenStyle style = wxPENSTYLE_SOLID);
|
||||
#if WXWIN_COMPATIBILITY_2_8
|
||||
wxDEPRECATED( wxPen(const wxColour& col, int width, wxBrushStyle style) );
|
||||
#endif
|
||||
|
||||
wxPen(const wxBitmap& stipple, int width);
|
||||
|
||||
bool operator==(const wxPen& pen) const;
|
||||
@@ -40,17 +44,17 @@ public:
|
||||
|
||||
void SetColour(const wxColour &colour);
|
||||
void SetColour(unsigned char red, unsigned char green, unsigned char blue);
|
||||
void SetCap(int capStyle);
|
||||
void SetJoin(int joinStyle);
|
||||
void SetStyle(int style);
|
||||
void SetCap(wxPenCap capStyle);
|
||||
void SetJoin(wxPenJoin joinStyle);
|
||||
void SetStyle(wxPenStyle style);
|
||||
void SetWidth(int width);
|
||||
void SetDashes(int number_of_dashes, const wxDash *dash);
|
||||
void SetStipple(const wxBitmap& stipple);
|
||||
|
||||
wxColour &GetColour() const;
|
||||
int GetCap() const;
|
||||
int GetJoin() const;
|
||||
int GetStyle() const;
|
||||
wxPenCap GetCap() const;
|
||||
wxPenJoin GetJoin() const;
|
||||
wxPenStyle GetStyle() const;
|
||||
int GetWidth() const;
|
||||
int GetDashes(wxDash **ptr) const;
|
||||
int GetDashCount() const;
|
||||
|
Reference in New Issue
Block a user