GRE::LEGEND::ITEMBASE Class Reference
End of LEGEND::DRAWCONTEXT class.
More...
#include <gre/legend.h>
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::ELEMENT & | GetElement () const |
| ELEMNUM | GetElemNum () const |
| const MISTRING & | GetLabel () const |
| void | GetLabelSize (const DRAWCONTEXT &dc, LPOINT2D &size) const |
| const LEGEND & | GetLegend () const |
| LEGEND & | GetLegend () |
| 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:
-
Construct with element and label.
- Parameters:
-
| element | Element from associated object |
| label | Label |
| virtual GRE::LEGEND::ITEMBASE::~ITEMBASE |
( |
|
) |
[virtual] |
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] |
| const MISTRING& GRE::LEGEND::ITEMBASE::GetLabel |
( |
|
) |
const [inline] |
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] |
| 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] |
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.
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: