// adds a cubic Bezier curve from the current point, using two control points and an end point void wxGraphicsPath::AddCurveToPoint( wxDouble cx1, wxDouble cy1, wxDouble cx2, wxDouble cy2, wxDouble x, wxDouble y ) { AllocExclusive(); GetPathData()->AddCurveToPoint(cx1,cy1,cx2,cy2,x,y); }
void wxFont::DoSetNativeFontInfo( const wxNativeFontInfo& info ) { AllocExclusive(); M_FONTDATA->SetNativeFontInfo( info ); }
void wxBrush::SetColour( unsigned char r, unsigned char g, unsigned char b ) { AllocExclusive(); M_BRUSHDATA->m_colour.Set( r, g, b ); }
void wxFont::SetWeight(wxFontWeight weight) { AllocExclusive(); M_FONTDATA->SetWeight(weight); }
void wxFont::SetStrikethrough(bool strikethrough) { AllocExclusive(); M_FONTDATA->SetStrikethrough(strikethrough); }
void wxPen::SetWidth( int width ) { AllocExclusive(); M_PENDATA->m_width = width; }
void wxFont::SetFamily(wxFontFamily family) { AllocExclusive(); M_FONTDATA->SetFamily(family); }
// appends an ellipse void wxGraphicsPath::AddEllipse( wxDouble x, wxDouble y, wxDouble w, wxDouble h) { AllocExclusive(); GetPathData()->AddEllipse(x,y,w,h); }
// appends a rounded rectangle void wxGraphicsPath::AddRoundedRectangle( wxDouble x, wxDouble y, wxDouble w, wxDouble h, wxDouble radius) { AllocExclusive(); GetPathData()->AddRoundedRectangle(x,y,w,h,radius); }
// adds a quadratic Bezier curve from the current point, using a control point and an end point void wxGraphicsPath::AddQuadCurveToPoint( wxDouble cx, wxDouble cy, wxDouble x, wxDouble y ) { AllocExclusive(); GetPathData()->AddQuadCurveToPoint(cx,cy,x,y); }
// appends an ellipsis as a new closed subpath fitting the passed rectangle void wxGraphicsPath::AddCircle( wxDouble x, wxDouble y, wxDouble r ) { AllocExclusive(); GetPathData()->AddCircle(x,y,r); }
// adds an arc of a circle centering at (x,y) with radius (r) from startAngle to endAngle void wxGraphicsPath::AddArc( wxDouble x, wxDouble y, wxDouble r, wxDouble startAngle, wxDouble endAngle, bool clockwise ) { AllocExclusive(); GetPathData()->AddArc(x,y,r,startAngle,endAngle,clockwise); }
// closes the current sub-path void wxGraphicsPath::CloseSubpath() { AllocExclusive(); GetPathData()->CloseSubpath(); }
// adds another path void wxGraphicsPath::AddPath( const wxGraphicsPath& path ) { AllocExclusive(); GetPathData()->AddPath(path.GetPathData()); }
void wxPen::SetJoin( wxPenJoin joinStyle ) { AllocExclusive(); M_PENDATA->m_joinStyle = joinStyle; }
// transforms each point of this path by the matrix void wxGraphicsPath::Transform( const wxGraphicsMatrix& matrix ) { AllocExclusive(); GetPathData()->Transform(matrix.GetMatrixData()); }
void wxPen::SetStyle( wxPenStyle style ) { AllocExclusive(); M_PENDATA->m_style = style; }
void wxBitmap::SetWidth(int width) { AllocExclusive(); wxFAIL_MSG( "SetWidth not implemented" ); }
void wxFont::SetPointSize(int pointSize) { AllocExclusive(); M_FONTDATA->SetPointSize(pointSize); }
void wxBitmap::SetHeight(int height) { AllocExclusive(); wxFAIL_MSG( _T("SetHeight not implemented") ); }
void wxFont::SetStyle(wxFontStyle style) { AllocExclusive(); M_FONTDATA->SetStyle(style); }
void wxBitmap::SetDepth(int depth) { AllocExclusive(); wxFAIL_MSG( _T("SetDepth not implemented") ); }
void wxFont::SetUnderlined(bool underlined) { AllocExclusive(); M_FONTDATA->SetUnderlined(underlined); }
void wxPen::SetColour( const wxColour &colour ) { AllocExclusive(); M_PENDATA->m_colour = colour; }
void wxFont::SetEncoding(wxFontEncoding encoding) { AllocExclusive(); M_FONTDATA->SetEncoding(encoding); }
void wxPen::SetColour( unsigned char red, unsigned char green, unsigned char blue ) { AllocExclusive(); M_PENDATA->m_colour.Set( red, green, blue ); }
void wxBrush::SetColour( const wxColour& col ) { AllocExclusive(); M_BRUSHDATA->m_colour = col; }
void wxPen::SetCap( wxPenCap capStyle ) { AllocExclusive(); M_PENDATA->m_capStyle = capStyle; }
void wxBrush::SetStyle( wxBrushStyle style ) { AllocExclusive(); M_BRUSHDATA->m_style = style; }
// adds a straight line from the current point to (x,y) void wxGraphicsPath::AddLineToPoint( wxDouble x, wxDouble y ) { AllocExclusive(); GetPathData()->AddLineToPoint(x,y); }