1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2003-07-21 15:39:34 -04:00
|
|
|
// Name: wx/gtk/pen.h
|
1998-05-20 10:01:55 -04:00
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-10-29 13:03:18 -05:00
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2006-08-30 01:55:56 -04:00
|
|
|
#ifndef _WX_GTK_PEN_H_
|
|
|
|
#define _WX_GTK_PEN_H_
|
1998-05-20 10:01:55 -04:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxPen
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2008-03-16 17:11:12 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxPen: public wxPenBase
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
1999-11-22 14:44:25 -05:00
|
|
|
public:
|
2002-02-04 13:01:21 -05:00
|
|
|
wxPen() { }
|
2005-10-04 12:13:42 -04:00
|
|
|
|
2008-03-16 17:11:12 -04:00
|
|
|
wxPen( const wxColour &colour, int width = 1, wxPenStyle style = wxPENSTYLE_SOLID );
|
|
|
|
|
2017-05-02 05:02:37 -04:00
|
|
|
wxPen( const wxPenInfo& info );
|
|
|
|
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxPen();
|
2005-10-04 12:13:42 -04:00
|
|
|
|
2007-12-15 12:54:20 -05:00
|
|
|
bool operator==(const wxPen& pen) const;
|
|
|
|
bool operator!=(const wxPen& pen) const { return !(*this == pen); }
|
1998-12-09 12:30:17 -05:00
|
|
|
|
2014-03-29 20:02:23 -04:00
|
|
|
void SetColour( const wxColour &colour ) wxOVERRIDE;
|
|
|
|
void SetColour( unsigned char red, unsigned char green, unsigned char blue ) wxOVERRIDE;
|
|
|
|
void SetCap( wxPenCap capStyle ) wxOVERRIDE;
|
|
|
|
void SetJoin( wxPenJoin joinStyle ) wxOVERRIDE;
|
|
|
|
void SetStyle( wxPenStyle style ) wxOVERRIDE;
|
|
|
|
void SetWidth( int width ) wxOVERRIDE;
|
|
|
|
void SetDashes( int number_of_dashes, const wxDash *dash ) wxOVERRIDE;
|
|
|
|
void SetStipple(const wxBitmap& stipple) wxOVERRIDE;
|
|
|
|
|
|
|
|
wxColour GetColour() const wxOVERRIDE;
|
|
|
|
wxPenCap GetCap() const wxOVERRIDE;
|
|
|
|
wxPenJoin GetJoin() const wxOVERRIDE;
|
|
|
|
wxPenStyle GetStyle() const wxOVERRIDE;
|
|
|
|
int GetWidth() const wxOVERRIDE;
|
|
|
|
int GetDashes(wxDash **ptr) const wxOVERRIDE;
|
1999-07-19 10:41:30 -04:00
|
|
|
int GetDashCount() const;
|
|
|
|
wxDash* GetDash() const;
|
2014-03-29 20:02:23 -04:00
|
|
|
wxBitmap *GetStipple() const wxOVERRIDE;
|
1998-12-09 12:30:17 -05:00
|
|
|
|
2014-01-06 07:42:37 -05:00
|
|
|
|
|
|
|
wxDEPRECATED_MSG("use wxPENSTYLE_XXX constants")
|
|
|
|
wxPen(const wxColour& col, int width, int style);
|
|
|
|
|
|
|
|
wxDEPRECATED_MSG("use wxPENSTYLE_XXX constants")
|
|
|
|
void SetStyle(int style) { SetStyle((wxPenStyle)style); }
|
2008-06-17 13:28:26 -04:00
|
|
|
|
2006-02-08 16:47:09 -05:00
|
|
|
protected:
|
2014-03-29 20:02:23 -04:00
|
|
|
virtual wxGDIRefData *CreateGDIRefData() const wxOVERRIDE;
|
|
|
|
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const wxOVERRIDE;
|
2005-10-04 12:13:42 -04:00
|
|
|
|
2015-04-23 07:49:01 -04:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxPen);
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
2006-08-30 01:55:56 -04:00
|
|
|
#endif // _WX_GTK_PEN_H_
|