wxChartLegendLine

Description

This class is used to draw a line in a legend.

<p>It can be used wherever a single line of text is needed with a single colored square at the start of the line.</p>

Methods

Public

wxChartLegendLine

Constructs a element.

void Draw

Draws the element.

bool HitTest

Elements can be activated with the mouse. This function checks whether the mouse is in the activation zone for this element.

wxPoint2DDouble GetTooltipPosition

Gets the position of the tooltip.

const wxPoint2DDouble & GetPosition

void SetPosition

const wxSize & GetSize

Gets the size of the line. The size must have been previously computed by calling the function.

void UpdateSize

Computes the size of the line based on the contents and options.

const wxString & GetText

void SetText