]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/pen.h
remove wxFindFocusedChild() declaration too as g++ gets upset if an extern function...
[wxWidgets.git] / include / wx / cocoa / pen.h
CommitLineData
a24aff65 1/////////////////////////////////////////////////////////////////////////////
cfbef359 2// Name: wx/cocoa/pen.h
a24aff65 3// Purpose: wxPen class
cfbef359 4// Author: David Elliott
a24aff65 5// Modified by:
8e517013 6// Created: 2003/08/02 (stubs from 22.03.2003)
a24aff65 7// RCS-ID: $Id$
cfbef359 8// Copyright: (c) 2003 David Elliott
46562151 9// Licence: wxWindows licence
a24aff65
DE
10/////////////////////////////////////////////////////////////////////////////
11
8e517013
DE
12#ifndef __WX_COCOA_PEN_H__
13#define __WX_COCOA_PEN_H__
a24aff65
DE
14
15#include "wx/gdiobj.h"
8e517013 16#include "wx/gdicmn.h"
a24aff65 17
b5dbe15d
VS
18class WXDLLIMPEXP_FWD_CORE wxColour;
19class WXDLLIMPEXP_FWD_CORE wxBitmap;
a24aff65 20
8e517013
DE
21// ========================================================================
22// wxPen
23// ========================================================================
a24aff65
DE
24class WXDLLEXPORT wxPen: public wxGDIObject
25{
a24aff65 26public:
8e517013
DE
27 wxPen();
28 wxPen(const wxColour& col, int width = 1, int style = wxSOLID);
29 wxPen(const wxBitmap& stipple, int width);
d3c7fc99 30 virtual ~wxPen();
8e517013 31
8f884a0d
VZ
32 // FIXME: operator==() is wrong
33 bool operator==(const wxPen& pen) const { return m_refData == pen.m_refData; }
34 bool operator!=(const wxPen& pen) const { return !(*this == pen); }
8e517013
DE
35
36 void SetColour(const wxColour& col) ;
1a1498c0 37 void SetColour(unsigned char r, unsigned char g, unsigned char b) ;
8e517013
DE
38
39 void SetWidth(int width);
40 void SetStyle(int style);
41 void SetStipple(const wxBitmap& stipple);
42 void SetDashes(int nb_dashes, const wxDash *dash);
43 void SetJoin(int join);
44 void SetCap(int cap);
45
46 wxColour& GetColour() const;
47 int GetWidth() const;
48 int GetStyle() const;
49 int GetJoin() const;
50 int GetCap() const;
51 int GetDashes(wxDash **ptr) const;
52 wxBitmap *GetStipple() const;
53
54 WX_NSColor GetNSColor();
4799f3ba 55 int GetCocoaLineDash(const CGFloat **pattern);
8f884a0d
VZ
56
57protected:
58 wxGDIRefData *CreateGDIRefData() const;
59 wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
60
61 DECLARE_DYNAMIC_CLASS(wxPen)
a24aff65
DE
62};
63
8e517013 64#endif // __WX_COCOA_PEN_H__