Context for legend item drawing. More...
#include <gre/legend.h>

Public Types | |
| enum | ORIENTATION { ORIENTATION_Vertical = 0, ORIENTATION_Horizonatal = 1 } |
Public Member Functions | |
| DRAWCONTEXT (const LEGEND &legend, MGD::CONTEXT *gc, INT32 labelspace, INT32 itemspace, const LRECT2D &cliprect) | |
| virtual | ~DRAWCONTEXT () |
| bool | IsVertical () const |
| void | SetDrawLabels (bool DrawLabels) |
Public Attributes | |
| LRECT2D | m_cliprect |
| bool | m_DrawLabels |
| bool | m_DrawLabelsOnColorScales |
| ELEMTYPE | m_ElemType |
| bool | m_HasTextStyle |
| INT32 | m_itemheight |
| INT32 | m_itemspace |
| INT32 | m_labelspace |
| GRE::LAYER * | m_layer |
| ORIENTATION | m_Orientation |
| INT32 | m_samplewidth |
| TEXTSTYLE | m_TextStyle |
Context for legend item drawing.
| GRE::LEGEND::DRAWCONTEXT::DRAWCONTEXT | ( | const LEGEND & | legend, | |
| MGD::CONTEXT * | gc, | |||
| INT32 | labelspace, | |||
| INT32 | itemspace, | |||
| const LRECT2D & | cliprect | |||
| ) |
Constructor for use in user interface.
| labelspace | Spacing between sample and label in pixels | |
| itemspace | Spacing between items in pixels | |
| cliprect | Clipping rectangle |
| virtual GRE::LEGEND::DRAWCONTEXT::~DRAWCONTEXT | ( | ) | [virtual] |
| bool GRE::LEGEND::DRAWCONTEXT::IsVertical | ( | ) | const [inline] |
Determine if legend has vertical orientation.
| void GRE::LEGEND::DRAWCONTEXT::SetDrawLabels | ( | bool | DrawLabels | ) | [inline] |
Set whether or not to draw labels for legend items.
Special case override for above flag.
1.6.1