]>
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 #if defined(__GNUG__) && !defined(__APPLE__) 
  19 #include "wx/object.h" 
  20 #include "wx/string.h" 
  21 #include "wx/gdiobj.h" 
  22 #include "wx/gdicmn.h" 
  24 //----------------------------------------------------------------------------- 
  26 //----------------------------------------------------------------------------- 
  30 #if defined(__WXGTK127__) || defined(__WXGTK20__) 
  31 typedef    gint8 wxGTKDash
; 
  33 typedef    gchar wxGTKDash
; 
  36 //----------------------------------------------------------------------------- 
  38 //----------------------------------------------------------------------------- 
  40 class wxPen
: public wxGDIObject
 
  45     wxPen( const wxColour 
&colour
, int width 
= 1, int style 
= wxSOLID 
); 
  48     wxPen( const wxPen
& pen 
) 
  51     wxPen
& operator = ( const wxPen
& pen 
) { Ref(pen
); return *this; } 
  53     bool Ok() const { return m_refData 
!= NULL
; } 
  55     bool operator == ( const wxPen
& pen 
) const; 
  56     bool operator != (const wxPen
& pen
) const { return !(*this == pen
); } 
  58     void SetColour( const wxColour 
&colour 
); 
  59     void SetColour( int red
, int green
, int blue 
); 
  60     void SetCap( int capStyle 
); 
  61     void SetJoin( int joinStyle 
); 
  62     void SetStyle( int style 
); 
  63     void SetWidth( int width 
); 
  64     void SetDashes( int number_of_dashes
, const wxDash 
*dash 
); 
  66     wxColour 
&GetColour() const; 
  71     int GetDashes(wxDash 
**ptr
) const; 
  72     int GetDashCount() const; 
  73     wxDash
* GetDash() const; 
  77     virtual wxObjectRefData 
*CreateRefData() const; 
  78     virtual wxObjectRefData 
*CloneRefData(const wxObjectRefData 
*data
) const; 
  80     DECLARE_DYNAMIC_CLASS(wxPen
)