1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2003-07-21 19:39:34 +00:00
|
|
|
// Name: wx/gtk/pen.h
|
1998-05-20 14:01:55 +00:00
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-10-29 18:03:18 +00:00
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2006-08-30 05:55:56 +00:00
|
|
|
#ifndef _WX_GTK_PEN_H_
|
|
|
|
#define _WX_GTK_PEN_H_
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2011-09-07 16:56:50 +00:00
|
|
|
typedef signed char wxGTKDash;
|
1999-07-19 14:41:30 +00:00
|
|
|
|
1998-05-20 14:01:55 +00:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxPen
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2008-03-16 21:11:12 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxPen: public wxPenBase
|
1998-05-20 14:01:55 +00:00
|
|
|
{
|
1999-11-22 19:44:25 +00:00
|
|
|
public:
|
2002-02-04 18:01:21 +00:00
|
|
|
wxPen() { }
|
2005-10-04 16:13:42 +00:00
|
|
|
|
2008-03-16 21:11:12 +00:00
|
|
|
wxPen( const wxColour &colour, int width = 1, wxPenStyle style = wxPENSTYLE_SOLID );
|
|
|
|
|
2006-09-05 20:47:48 +00:00
|
|
|
virtual ~wxPen();
|
2005-10-04 16:13:42 +00:00
|
|
|
|
2007-12-15 17:54:20 +00:00
|
|
|
bool operator==(const wxPen& pen) const;
|
|
|
|
bool operator!=(const wxPen& pen) const { return !(*this == pen); }
|
1998-12-09 17:30:17 +00:00
|
|
|
|
2014-03-30 00:02:23 +00: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 14:41:30 +00:00
|
|
|
int GetDashCount() const;
|
|
|
|
wxDash* GetDash() const;
|
2014-03-30 00:02:23 +00:00
|
|
|
wxBitmap *GetStipple() const wxOVERRIDE;
|
1998-12-09 17:30:17 +00:00
|
|
|
|
2014-01-06 12:42:37 +00: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 17:28:26 +00:00
|
|
|
|
2006-02-08 21:47:09 +00:00
|
|
|
protected:
|
2014-03-30 00:02:23 +00:00
|
|
|
virtual wxGDIRefData *CreateGDIRefData() const wxOVERRIDE;
|
|
|
|
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const wxOVERRIDE;
|
2005-10-04 16:13:42 +00:00
|
|
|
|
1999-11-22 19:44:25 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxPen)
|
1998-05-20 14:01:55 +00:00
|
|
|
};
|
|
|
|
|
2006-08-30 05:55:56 +00:00
|
|
|
#endif // _WX_GTK_PEN_H_
|