+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% Name: brush.tex
+%% Purpose: wxPen docs
+%% Author:
+%% Modified by:
+%% Created:
+%% RCS-ID: $Id$
+%% Copyright: (c) wxWidgets
+%% License: wxWindows license
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
\section{\class{wxBrush}}\label{wxbrush}
A brush is a drawing tool for filling in areas. It is used for painting
Sets the brush colour using a colour name from the colour database.
-\func{void}{SetColour}{\param{const unsigned char}{ red}, \param{const unsigned char}{ green}, \param{const unsigned char}{ blue}}
+\func{void}{SetColour}{\param{unsigned char}{ red}, \param{unsigned char}{ green}, \param{unsigned char}{ blue}}
Sets the brush colour using red, green and blue values.
\func{void}{SetColour}{\param{const wxString\& }{colourName}}
-\func{void}{SetColour}{\param{const unsigned char}{ red}, \param{const unsigned char}{ green}, \param{const unsigned char}{ blue}}
+\func{void}{SetColour}{\param{unsigned char}{ red}, \param{unsigned char}{ green}, \param{unsigned char}{ blue}}
The pen's colour is changed to the given colour.
// Implementation
// ------------------------------------------------------------------------
virtual void SetColour(const wxColour& col) ;
- virtual void SetColour(const unsigned char r, const unsigned char g, const unsigned char b) ;
+ virtual void SetColour(unsigned char r, unsigned char g, unsigned char b) ;
virtual void SetStyle(int style) ;
virtual void SetStipple(const wxBitmap& stipple) ;
virtual bool Ok() const { return (m_refData != NULL) ; }
void SetColour(const wxColour& col) ;
- void SetColour(const unsigned char r, const unsigned char g, const unsigned char b) ;
+ void SetColour(unsigned char r, unsigned char g, unsigned char b) ;
void SetWidth(int width);
void SetStyle(int style);
wxBitmap *GetStipple() const;
void SetColour( const wxColour& col );
- void SetColour( const unsigned char r, const unsigned char g, const unsigned char b );
+ void SetColour( unsigned char r, unsigned char g, unsigned char b );
void SetStyle( int style );
void SetStipple( const wxBitmap& stipple );
bool operator != (const wxPen& pen) const { return !(*this == pen); }
void SetColour( const wxColour &colour );
- void SetColour( const unsigned char red, const unsigned char green, const unsigned char blue );
+ void SetColour( unsigned char red, unsigned char green, unsigned char blue );
void SetCap( int capStyle );
void SetJoin( int joinStyle );
void SetStyle( int style );
wxBitmap *GetStipple() const;
void SetColour( const wxColour& col );
- void SetColour( const unsigned char r, const unsigned char g, const unsigned char b );
+ void SetColour( unsigned char r, unsigned char g, unsigned char b );
void SetStyle( int style );
void SetStipple( const wxBitmap& stipple );
bool operator != (const wxPen& pen) const { return !(*this == pen); }
void SetColour( const wxColour &colour );
- void SetColour( const unsigned char red, const unsigned char green, const unsigned char blue );
+ void SetColour( unsigned char red, unsigned char green, unsigned char blue );
void SetCap( int capStyle );
void SetJoin( int joinStyle );
void SetStyle( int style );
~wxBrush();
virtual void SetColour(const wxColour& col) ;
- virtual void SetColour(const unsigned char r, const unsigned char g, const unsigned char b) ;
+ virtual void SetColour(unsigned char r, unsigned char g, unsigned char b) ;
virtual void SetStyle(int style) ;
virtual void SetStipple(const wxBitmap& stipple) ;
virtual void MacSetTheme(short macThemeBrush) ;
// Override in order to recreate the pen
void SetColour(const wxColour& col) ;
- void SetColour(const unsigned char r, const unsigned char g, const unsigned char b) ;
+ void SetColour(unsigned char r, unsigned char g, unsigned char b) ;
void SetWidth(int width) ;
void SetStyle(int style) ;
~wxBrush();
virtual void SetColour(const wxColour& col) ;
- virtual void SetColour(const unsigned char r, const unsigned char g, const unsigned char b) ;
+ virtual void SetColour(unsigned char r, unsigned char g, unsigned char b) ;
virtual void SetStyle(int style) ;
virtual void SetStipple(const wxBitmap& stipple) ;
virtual void SetMacTheme(short macThemeBrush) ;
// Override in order to recreate the pen
void SetColour(const wxColour& col) ;
- void SetColour(const unsigned char r, const unsigned char g, const unsigned char b) ;
+ void SetColour(unsigned char r, unsigned char g, unsigned char b) ;
void SetWidth(int width) ;
void SetStyle(int style) ;
wxBitmap *GetStipple() const;
void SetColour(const wxColour& col);
- void SetColour(const unsigned char r, const unsigned char g, const unsigned char b);
+ void SetColour(unsigned char r, unsigned char g, unsigned char b);
void SetStyle(int style);
void SetStipple(const wxBitmap& stipple);
bool operator != (const wxPen& pen) const;
void SetColour(const wxColour &colour);
- void SetColour(const unsigned char red, const unsigned char green, const unsigned char blue);
+ void SetColour(unsigned char red, unsigned char green, unsigned char blue);
void SetCap(int capStyle);
void SetJoin(int joinStyle);
void SetStyle(int style);
virtual ~wxBrush();
virtual void SetColour(const wxColour& col);
- virtual void SetColour(const unsigned char r, const unsigned char g, const unsigned char b);
+ virtual void SetColour(unsigned char r, unsigned char g, unsigned char b);
virtual void SetStyle(int style);
virtual void SetStipple(const wxBitmap& stipple);
// Override in order to recreate the pen
void SetColour(const wxColour& col);
- void SetColour(const unsigned char r, const unsigned char g, const unsigned char b);
+ void SetColour(unsigned char r, unsigned char g, unsigned char b);
void SetWidth(int width);
void SetStyle(int style);
inline bool operator != (const wxBrush& rBrush) const { return m_refData != rBrush.m_refData; }
virtual void SetColour(const wxColour& rColour);
- virtual void SetColour(const unsigned char cRed, const unsigned char cGreen, const unsigned char cBrush);
+ virtual void SetColour(unsigned char cRed, unsigned char cGreen, unsigned char cBrush);
virtual void SetPS(HPS hPS);
virtual void SetStyle(int nStyle) ;
virtual void SetStipple(const wxBitmap& rStipple);
// Override in order to recreate the pen
//
void SetColour(const wxColour& rColour);
- void SetColour(const unsigned char cRed, const unsigned char cGreen, const unsigned char cBlue);
+ void SetColour(unsigned char cRed, unsigned char cGreen, unsigned char cBlue);
void SetWidth(int nWidth);
void SetStyle(int nStyle);
virtual ~wxBrush();
virtual void SetColour(const wxColour& col);
- virtual void SetColour(const unsigned char r, const unsigned char g, const unsigned char b);
+ virtual void SetColour(unsigned char r, unsigned char g, unsigned char b);
virtual void SetStyle(int style);
virtual void SetStipple(const wxBitmap& stipple);
// Override in order to recreate the pen
void SetColour(const wxColour& col);
- void SetColour(const unsigned char r, const unsigned char g, const unsigned char b);
+ void SetColour(unsigned char r, unsigned char g, unsigned char b);
void SetWidth(int width);
void SetStyle(int style);
wxBitmap *GetStipple() const;
void SetColour( const wxColour& col );
- void SetColour( const unsigned char r, const unsigned char g, const unsigned char b );
+ void SetColour( unsigned char r, unsigned char g, unsigned char b );
void SetStyle( int style );
void SetStipple( const wxBitmap& stipple );
bool operator != (const wxPen& pen) const { return !(*this == pen); }
void SetColour( const wxColour &colour );
- void SetColour( const unsigned char red, const unsigned char green, const unsigned char blue );
+ void SetColour( unsigned char red, unsigned char green, unsigned char blue );
void SetCap( int capStyle );
void SetJoin( int joinStyle );
void SetStyle( int style );
M_BRUSHDATA->SetColour(col);
}
-void wxBrush::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxBrush::SetColour(unsigned char r, unsigned char g, unsigned char b)
{
AllocExclusive();
M_BRUSHDATA->SetColour(wxColour(r,g,b));
M_PENDATA->SetColour(col);
}
-void wxPen::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxPen::SetColour(unsigned char r, unsigned char g, unsigned char b)
{
AllocExclusive();
M_PENDATA->SetColour(wxColour(r, g, b));
M_BRUSHDATA->m_colour = col;
}
-void wxBrush::SetColour( const unsigned char r, const unsigned char g, const unsigned char b )
+void wxBrush::SetColour( unsigned char r, unsigned char g, unsigned char b )
{
AllocExclusive();
M_PENDATA->m_dash = (wxGTKDash *)dash;
}
-void wxPen::SetColour( const unsigned char red, const unsigned char green, const unsigned char blue )
+void wxPen::SetColour( unsigned char red, unsigned char green, unsigned char blue )
{
AllocExclusive();
M_BRUSHDATA->m_colour = col;
}
-void wxBrush::SetColour( const unsigned char r, const unsigned char g, const unsigned char b )
+void wxBrush::SetColour( unsigned char r, unsigned char g, unsigned char b )
{
AllocExclusive();
M_PENDATA->m_dash = (wxGTKDash *)dash;
}
-void wxPen::SetColour( const unsigned char red, const unsigned char green, const unsigned char blue )
+void wxPen::SetColour( unsigned char red, unsigned char green, unsigned char blue )
{
AllocExclusive();
RealizeResource();
}
-void wxBrush::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxBrush::SetColour(unsigned char r, unsigned char g, unsigned char b)
{
Unshare();
RealizeResource();
}
-void wxPen::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxPen::SetColour(unsigned char r, unsigned char g, unsigned char b)
{
Unshare();
RealizeResource();
}
-void wxBrush::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxBrush::SetColour(unsigned char r, unsigned char g, unsigned char b)
{
Unshare();
RealizeResource();
}
-void wxPen::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxPen::SetColour(unsigned char r, unsigned char g, unsigned char b)
{
Unshare();
M_BRUSHDATA->m_colour = col;
}
-void wxBrush::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxBrush::SetColour(unsigned char r, unsigned char g, unsigned char b)
{
AllocExclusive();
M_BRUSHDATA->m_colour.Set(r, g, b);
M_PENDATA->m_dash = (wxDash *)dash; /* TODO */
}
-void wxPen::SetColour(const unsigned char red, const unsigned char green, const unsigned char blue)
+void wxPen::SetColour(unsigned char red, unsigned char green, unsigned char blue)
{
AllocExclusive();
M_PENDATA->m_colour.Set(red, green, blue);
M_BRUSHDATA->SetColour(col);
}
-void wxBrush::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxBrush::SetColour(unsigned char r, unsigned char g, unsigned char b)
{
AllocExclusive();
RealizeResource();
}
-void wxPen::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxPen::SetColour(unsigned char r, unsigned char g, unsigned char b)
{
Unshare();
RealizeResource();
}
-void wxBrush::SetColour(const unsigned char cRed, const unsigned char cGreen, const unsigned char cBlue)
+void wxBrush::SetColour(unsigned char cRed, unsigned char cGreen, unsigned char cBlue)
{
Unshare();
M_BRUSHDATA->m_vColour.Set( cRed, cGreen, cBlue );
RealizeResource();
} // end of wxPen::SetColour
-void wxPen::SetColour( const unsigned char cRed, const unsigned char cGreen, const unsigned char cBlue)
+void wxPen::SetColour( unsigned char cRed, unsigned char cGreen, unsigned char cBlue)
{
Unshare();
M_PENDATA->m_vColour.Set(cRed, cGreen, cBlue);
{
}
-void wxBrush::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxBrush::SetColour(unsigned char r, unsigned char g, unsigned char b)
{
}
{
}
-void wxPen::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxPen::SetColour(unsigned char r, unsigned char g, unsigned char b)
{
}
M_BRUSHDATA->m_colour = col;
}
-void wxBrush::SetColour( const unsigned char r, const unsigned char g, const unsigned char b )
+void wxBrush::SetColour( unsigned char r, unsigned char g, unsigned char b )
{
AllocExclusive();
M_PENDATA->m_dash = (wxX11Dash *)dash; // TODO
}
-void wxPen::SetColour( const unsigned char red, const unsigned char green, const unsigned char blue )
+void wxPen::SetColour( unsigned char red, unsigned char green, unsigned char blue )
{
AllocExclusive();