]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/pen.h
min size of an empty sizer should be (0, 0) and not (10, 10)
[wxWidgets.git] / include / wx / gtk / pen.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
4f535231 2// Name: wx/gtk/pen.h
c801d85f
KB
3// Purpose:
4// Author: Robert Roebling
58614078
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
c801d85f
KB
10#ifndef __GTKPENH__
11#define __GTKPENH__
12
c801d85f
KB
13#include "wx/defs.h"
14#include "wx/object.h"
15#include "wx/string.h"
16#include "wx/gdiobj.h"
17#include "wx/gdicmn.h"
18
19//-----------------------------------------------------------------------------
20// classes
21//-----------------------------------------------------------------------------
22
20123d49 23class WXDLLIMPEXP_CORE wxPen;
c801d85f 24
2eca425d 25typedef gint8 wxGTKDash;
112c5086 26
c801d85f
KB
27//-----------------------------------------------------------------------------
28// wxPen
29//-----------------------------------------------------------------------------
30
20123d49 31class WXDLLIMPEXP_CORE wxPen: public wxGDIObject
c801d85f 32{
20e05ffb 33public:
c89f5c02 34 wxPen() { }
46562151 35
4f535231 36 wxPen( const wxColour &colour, int width = 1, int style = wxSOLID );
8bbe427f 37 ~wxPen();
46562151 38
c89f5c02 39 bool Ok() const { return m_refData != NULL; }
46562151 40
f6bcfd97 41 bool operator == ( const wxPen& pen ) const;
c89f5c02 42 bool operator != (const wxPen& pen) const { return !(*this == pen); }
8bbe427f 43
c801d85f 44 void SetColour( const wxColour &colour );
1a1498c0 45 void SetColour( unsigned char red, unsigned char green, unsigned char blue );
c801d85f
KB
46 void SetCap( int capStyle );
47 void SetJoin( int joinStyle );
48 void SetStyle( int style );
49 void SetWidth( int width );
112c5086 50 void SetDashes( int number_of_dashes, const wxDash *dash );
46562151 51
8bbe427f
VZ
52 wxColour &GetColour() const;
53 int GetCap() const;
54 int GetJoin() const;
55 int GetStyle() const;
56 int GetWidth() const;
112c5086
RR
57 int GetDashes(wxDash **ptr) const;
58 int GetDashCount() const;
59 wxDash* GetDash() const;
8bbe427f 60
6f02a879 61protected:
c89f5c02
RR
62 // ref counting code
63 virtual wxObjectRefData *CreateRefData() const;
64 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
46562151 65
20e05ffb 66 DECLARE_DYNAMIC_CLASS(wxPen)
c801d85f
KB
67};
68
69#endif // __GTKPENH__