]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/pen.h
   1 ///////////////////////////////////////////////////////////////////////////// 
   4 // Author:      Robert Roebling 
   6 // Copyright:   (c) 1998 Robert Roebling 
   7 // Licence:     wxWindows licence 
   8 ///////////////////////////////////////////////////////////////////////////// 
  14 #include "wx/object.h" 
  15 #include "wx/string.h" 
  16 #include "wx/gdiobj.h" 
  17 #include "wx/gdicmn.h" 
  19 //----------------------------------------------------------------------------- 
  21 //----------------------------------------------------------------------------- 
  23 class WXDLLIMPEXP_CORE wxPen
; 
  25 #if defined(__WXGTK127__) 
  26 typedef    gint8 wxGTKDash
; 
  28 typedef    gchar wxGTKDash
; 
  31 //----------------------------------------------------------------------------- 
  33 //----------------------------------------------------------------------------- 
  35 class WXDLLIMPEXP_CORE wxPen
: public wxGDIObject
 
  40     wxPen( const wxColour 
&colour
, int width 
= 1, int style 
= wxSOLID 
); 
  43     bool Ok() const { return m_refData 
!= NULL
; } 
  45     bool operator == ( const wxPen
& pen 
) const; 
  46     bool operator != (const wxPen
& pen
) const { return !(*this == pen
); } 
  48     void SetColour( const wxColour 
&colour 
); 
  49     void SetColour( unsigned char red
, unsigned char green
, unsigned char blue 
); 
  50     void SetCap( int capStyle 
); 
  51     void SetJoin( int joinStyle 
); 
  52     void SetStyle( int style 
); 
  53     void SetWidth( int width 
); 
  54     void SetDashes( int number_of_dashes
, const wxDash 
*dash 
); 
  56     wxColour 
&GetColour() const; 
  61     int GetDashes(wxDash 
**ptr
) const; 
  62     int GetDashCount() const; 
  63     wxDash
* GetDash() const; 
  67     virtual wxObjectRefData 
*CreateRefData() const; 
  68     virtual wxObjectRefData 
*CloneRefData(const wxObjectRefData 
*data
) const; 
  70     DECLARE_DYNAMIC_CLASS(wxPen
)