wxShapeFramework  1.13.0 beta
wxSFOpenArrow Class Reference

Class extends the wxSFArrowBase class and encapsulates arrow shape consisting of single two lines leading from the end of the parent line shape. More...

#include <OpenArrow.h>

Inheritance diagram for wxSFOpenArrow:
Collaboration diagram for wxSFOpenArrow:

List of all members.

Public Member Functions

 XS_DECLARE_CLONABLE_CLASS (wxSFOpenArrow)
 wxSFOpenArrow (void)
 Default constructor.
 wxSFOpenArrow (wxSFShapeBase *parent)
 User constructor.
 wxSFOpenArrow (const wxSFOpenArrow &obj)
 Copy constructor.
virtual ~wxSFOpenArrow (void)
 Destructor.
void SetArrowPen (const wxPen &pen)
 Set a pen used for drawing of the arrow.
const wxPen & GetArrowPen () const
 Get current pen used for drawing of the arrow.
virtual void Draw (const wxRealPoint &from, const wxRealPoint &to, wxDC &dc)
 Draw arrow shape at the end of a virtual line.

Protected Attributes

wxPen m_Pen
 Arrow pen.

Detailed Description

Class extends the wxSFArrowBase class and encapsulates arrow shape consisting of single two lines leading from the end of the parent line shape.


Constructor & Destructor Documentation

Default constructor.

User constructor.

Parameters:
parent">Pointer to the parent shape

Copy constructor.

Parameters:
objReference to the source object
virtual wxSFOpenArrow::~wxSFOpenArrow ( void  ) [virtual]

Destructor.


Member Function Documentation

virtual void wxSFOpenArrow::Draw ( const wxRealPoint &  from,
const wxRealPoint &  to,
wxDC &  dc 
) [virtual]

Draw arrow shape at the end of a virtual line.

Parameters:
fromStart of the virtual line
toEnd of the virtual line
dcDevice context for drawing

Reimplemented from wxSFArrowBase.

const wxPen& wxSFOpenArrow::GetArrowPen ( ) const [inline]

Get current pen used for drawing of the arrow.

Returns:
Constant reference to current pen
void wxSFOpenArrow::SetArrowPen ( const wxPen &  pen) [inline]

Set a pen used for drawing of the arrow.

Parameters:
penReference to the pen

Member Data Documentation

wxPen wxSFOpenArrow::m_Pen [protected]

Arrow pen.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines