GRE_LEGEND_COLORSAMPLE::ITEM Class Reference

#include <gre/legend.h>

Inheritance diagram for GRE_LEGEND_COLORSAMPLE::ITEM:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual void Draw (const DRAWCONTEXT &dc, const LRECT2D &samplerect) const
virtual void DrawTreeView (void *hdc, const GRE_ELEMSAMPLE_DC &dc, const CRect &rect, bool HasFocus)
const COLORGetColor () const
bool HasSameStyle (const COLOR &color) const
 ITEM (const COLOR &color, const MISTRING &label)
virtual ~ITEM ()

Constructor & Destructor Documentation

GRE_LEGEND_COLORSAMPLE::ITEM::ITEM const COLOR color,
const MISTRING label
 

Constructor.

virtual GRE_LEGEND_COLORSAMPLE::ITEM::~ITEM  )  [virtual]
 

Destructor.


Member Function Documentation

virtual void GRE_LEGEND_COLORSAMPLE::ITEM::Draw const DRAWCONTEXT &  dc,
const LRECT2D samplerect
const [virtual]
 

Draw item.

Parameters:
dc  Legend drawing context
samplerect  Rectangle for sample symbol, not including label

Implements GRE_LEGEND::ITEMBASE.

virtual void GRE_LEGEND_COLORSAMPLE::ITEM::DrawTreeView void *  hdc,
const GRE_ELEMSAMPLE_DC dc,
const CRect &  rect,
bool  HasFocus
[virtual]
 

Draw item with label in TreeView (WIN32_MFC).

Parameters:
hdc  Windows device context
dc  Legend drawing context
rect  Bounding rectangle including label
HasFocus  'true' if item has "focus"

Implements GRE_LEGEND::ITEMBASE.

const COLOR& GRE_LEGEND_COLORSAMPLE::ITEM::GetColor  )  const [inline]
 

Get color associated with item.

Definition at line 727 of file legend.h.

bool GRE_LEGEND_COLORSAMPLE::ITEM::HasSameStyle const COLOR color  )  const
 

Determine if this item has same style.


The documentation for this class was generated from the following file:
Generated on Tue Dec 14 13:19:53 2004 for TNTsdk by  doxygen 1.3.8-20040913