GRE::LEGEND::DRAWCONTEXT Class Reference

Context for legend item drawing. More...

#include <gre/legend.h>

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

List of all members.

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::LAYERm_layer
ORIENTATION m_Orientation
INT32 m_samplewidth
TEXTSTYLE m_TextStyle

Detailed Description

Context for legend item drawing.


Member Enumeration Documentation

Orientation for drawing if supported by legend type.

This is used by "color scale" legend.

Enumerator:
ORIENTATION_Vertical 

Draw items in "vertical" orientation (default).

ORIENTATION_Horizonatal 

Draw items in "horizontal" orientation.


Constructor & Destructor Documentation

GRE::LEGEND::DRAWCONTEXT::DRAWCONTEXT ( const LEGEND legend,
MGD::CONTEXT gc,
INT32  labelspace,
INT32  itemspace,
const LRECT2D cliprect 
)

Constructor for use in user interface.

Parameters:
labelspace Spacing between sample and label in pixels
itemspace Spacing between items in pixels
cliprect Clipping rectangle
virtual GRE::LEGEND::DRAWCONTEXT::~DRAWCONTEXT (  )  [virtual]

Member Function Documentation

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.


Member Data Documentation

Special case override for above flag.


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