GRE::LEGEND::ITEMBASE Class Reference

End of LEGEND::DRAWCONTEXT class. More...

#include <gre/legend.h>

Inheritance diagram for GRE::LEGEND::ITEMBASE:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ITEMBASE (LEGEND &legend, const RVC::ELEMENT &element, const MISTRING &label)
 ITEMBASE (LEGEND &legend, const MISTRING &label)
 ITEMBASE (LEGEND &legend)
virtual ~ITEMBASE ()
void Draw (const DRAWCONTEXT &dc, const LRECT2D &samplerect) const
void DrawLabel (const DRAWCONTEXT &dc, const LRECT2D &samplerect) const
const RVC::ELEMENTGetElement () const
ELEMNUM GetElemNum () const
const MISTRINGGetLabel () const
void GetLabelSize (const DRAWCONTEXT &dc, LPOINT2D &size) const
const LEGENDGetLegend () const
LEGENDGetLegend ()
bool HasTransparency () const
void MergeLabel (const MISTRING &label)
void SetLabel (const MISTRING &label)
MGUI::CTRL_TREE::ITEMHND TreeViewInsertItem (GRE::CTRL_TREEVIEW &TreeView, MGUI::CTRL_TREE::ITEMHND hndParent, MGUI::CTRL_TREE::ITEMHND hndInsertAfter)

Private Member Functions

virtual void v_Draw (const DRAWCONTEXT &dc, const LRECT2D &samplerect) const =0
virtual bool v_HasTransparency () const
virtual void v_TreeViewCustomDraw (GRE::CTRL_TREEVIEW &TreeView, MGUI::CUSTOMDRAW_TREE &CustomDraw)=0

Detailed Description

End of LEGEND::DRAWCONTEXT class.

Base class for legend item defining virtual methods for drawing


Constructor & Destructor Documentation

GRE::LEGEND::ITEMBASE::ITEMBASE ( LEGEND legend  ) 

Construct item for legend.

GRE::LEGEND::ITEMBASE::ITEMBASE ( LEGEND legend,
const MISTRING label 
)

Construct with no specified element.

Parameters:
label Label
GRE::LEGEND::ITEMBASE::ITEMBASE ( LEGEND legend,
const RVC::ELEMENT element,
const MISTRING label 
)

Construct with element and label.

Parameters:
element Element from associated object
label Label
virtual GRE::LEGEND::ITEMBASE::~ITEMBASE (  )  [virtual]

Destructor.


Member Function Documentation

void GRE::LEGEND::ITEMBASE::Draw ( const DRAWCONTEXT dc,
const LRECT2D samplerect 
) const [inline]

Draw item.

Parameters:
dc Legend drawing context
samplerect Rectangle for sample symbol, not including label
void GRE::LEGEND::ITEMBASE::DrawLabel ( const DRAWCONTEXT dc,
const LRECT2D samplerect 
) const

Draw label.

Parameters:
dc Legend drawing context
samplerect Rectangle for sample symbol, not including label
const RVC::ELEMENT& GRE::LEGEND::ITEMBASE::GetElement (  )  const [inline]

Get element used by item.

ELEMNUM GRE::LEGEND::ITEMBASE::GetElemNum (  )  const [inline]

Get element number.

const MISTRING& GRE::LEGEND::ITEMBASE::GetLabel (  )  const [inline]

Get the label.

void GRE::LEGEND::ITEMBASE::GetLabelSize ( const DRAWCONTEXT dc,
LPOINT2D size 
) const

Get size of label.

Parameters:
dc Legend drawing context
size Size in "display pixels" returned
const LEGEND& GRE::LEGEND::ITEMBASE::GetLegend (  )  const [inline]

Get reference to legend (const).

LEGEND& GRE::LEGEND::ITEMBASE::GetLegend (  )  [inline]

Get reference to legend.

bool GRE::LEGEND::ITEMBASE::HasTransparency (  )  const [inline]

Determine if item requires transparency support.

void GRE::LEGEND::ITEMBASE::MergeLabel ( const MISTRING label  ) 

Merge label with current label.

void GRE::LEGEND::ITEMBASE::SetLabel ( const MISTRING label  )  [inline]

Set label.

MGUI::CTRL_TREE::ITEMHND GRE::LEGEND::ITEMBASE::TreeViewInsertItem ( GRE::CTRL_TREEVIEW TreeView,
MGUI::CTRL_TREE::ITEMHND  hndParent,
MGUI::CTRL_TREE::ITEMHND  hndInsertAfter 
)

Insert item into TreeView (MGUI only).

virtual void GRE::LEGEND::ITEMBASE::v_Draw ( const DRAWCONTEXT dc,
const LRECT2D samplerect 
) const [private, pure virtual]

Draw item.

Parameters:
dc Legend drawing context
samplerect Rectangle for sample symbol, not including label
virtual bool GRE::LEGEND::ITEMBASE::v_HasTransparency (  )  const [private, virtual]

Determine if item requires transparency support.

virtual void GRE::LEGEND::ITEMBASE::v_TreeViewCustomDraw ( GRE::CTRL_TREEVIEW TreeView,
MGUI::CUSTOMDRAW_TREE CustomDraw 
) [private, pure virtual]

Draw item in TreeView (MGUI only).

Parameters:
CustomDraw Custom drawing information from CTRL_TREE

The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:34:39 2012 for TNTsdk 2012 by  doxygen 1.6.1