wxShapeFramework  1.13.0 beta
wxSFSolidArrow Class Reference

Class extends the wxSFArrowBase class and encapsulates arrow shape consisting of a solid triangle pointing to the end of the parent line shape. More...

#include <SolidArrow.h>

Inheritance diagram for wxSFSolidArrow:
Collaboration diagram for wxSFSolidArrow:

List of all members.

Public Member Functions

 XS_DECLARE_CLONABLE_CLASS (wxSFSolidArrow)
 wxSFSolidArrow (void)
 Default constructor.
 wxSFSolidArrow (wxSFShapeBase *parent)
 User constructor.
 wxSFSolidArrow (const wxSFSolidArrow &obj)
 Copy constructor.
virtual ~wxSFSolidArrow (void)
 Destructor.
void SetArrowFill (const wxBrush &br)
 Set a brush filling the arrow's body.
void SetArrowPen (const wxPen &pen)
 Set a pen used for drawing of the arrow's border.
const wxBrush & GetArrowFill () const
 Get current brush used for filling of the arrow's body.
const wxPen & GetArrowPen () const
 Get current pen used for drawing of the arrow's border.
virtual void Draw (const wxRealPoint &from, const wxRealPoint &to, wxDC &dc)
 Draw arrow shape at the end of a virtual line.

Protected Member Functions

void MarkSerializableDataMembers ()

Protected Attributes

wxBrush m_Fill
 Arrows brush.
wxPen m_Pen
 Arrow pen.

Detailed Description

Class extends the wxSFArrowBase class and encapsulates arrow shape consisting of a solid triangle pointing to the end of the parent line shape.


Constructor & Destructor Documentation

Default constructor.

User constructor.

Parameters:
parentPointer to the parent shape

Copy constructor.

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

Destructor.


Member Function Documentation

virtual void wxSFSolidArrow::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.

Reimplemented in wxSFCircleArrow, and wxSFDiamondArrow.

const wxBrush& wxSFSolidArrow::GetArrowFill ( ) const [inline]

Get current brush used for filling of the arrow's body.

Returns:
Constant reference to current brush
const wxPen& wxSFSolidArrow::GetArrowPen ( ) const [inline]

Get current pen used for drawing of the arrow's border.

Returns:
Constant reference to current pen
void wxSFSolidArrow::SetArrowFill ( const wxBrush &  br) [inline]

Set a brush filling the arrow's body.

Parameters:
brReference to the brush
void wxSFSolidArrow::SetArrowPen ( const wxPen &  pen) [inline]

Set a pen used for drawing of the arrow's border.

Parameters:
penReference to the pen

Member Data Documentation

wxBrush wxSFSolidArrow::m_Fill [protected]

Arrows brush.

wxPen wxSFSolidArrow::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