SavvyUI C++ UI Library
Loading...
Searching...
No Matches
ChartLegend.h
Go to the documentation of this file.
1#pragma once
2
3#include "Component.h"
4#include "ListBox.h"
5
13class ChartLegend : public Component
14{
15 ListBox _list;
16
17protected:
27 BOOL getCreateWindowOptions(wstring& title, UINT& widownStyles, wstring& wndClassName, BOOL& isCustomWndProc);
28
33
34public:
39
43 virtual ~ChartLegend();
44
48 void clear();
49
56 void addLegendValue(const wstring& text, COLORREF color);
57
62};
void clear()
Clears all items from the legend.
void onWindowResized()
Called when the legend window is resized.
void windowCreated()
Called after the legend window has been successfully created.
BOOL getCreateWindowOptions(wstring &title, UINT &widownStyles, wstring &wndClassName, BOOL &isCustomWndProc)
Retrieves options for creating the legend window.
virtual ~ChartLegend()
Destroys the ChartLegend and its internal structures.
ChartLegend()
Constructs a new ChartLegend instance.
void addLegendValue(const wstring &text, COLORREF color)
Adds a new item to the legend.
Component()
Constructs a new Component instance.
A UI component that displays a list of selectable string options.
Definition ListBox.h:21