KiCad PCB EDA Suite
|
Icon provider for the "standard" row indicators, for example in layer selection lists. More...
#include <indicator_icon.h>
Public Types | |
enum | STATE { OFF , DIMMED , ON , UP , DOWN , OPEN , CLOSED } |
State constants to select the right icons. More... | |
Public Member Functions | |
ROW_ICON_PROVIDER (int aSizeDIP, wxWindow *aWindow) | |
const wxBitmap & | GetIndicatorIcon (INDICATOR_ICON::ICON_ID aIconId) const override |
Get a reference to the row icon in the given mode. | |
Private Attributes | |
wxBitmap | m_blankBitmap |
wxBitmap | m_rightArrowBitmap |
wxBitmap | m_upArrowBitmap |
wxBitmap | m_downArrowBitmap |
wxBitmap | m_dotBitmap |
wxBitmap | m_openBitmap |
wxBitmap | m_closedBitmap |
Icon provider for the "standard" row indicators, for example in layer selection lists.
Definition at line 96 of file indicator_icon.h.
State constants to select the right icons.
Enumerator | |
---|---|
OFF | Row "off" or "deselected". |
DIMMED | Row "dimmed". |
ON | Row "on" or "selected". |
UP | Row above design alpha. |
DOWN | Row below design alpha. |
OPEN | Tree control open. |
CLOSED | Tree control closed. |
Definition at line 101 of file indicator_icon.h.
ROW_ICON_PROVIDER::ROW_ICON_PROVIDER | ( | int | aSizeDIP, |
wxWindow * | aWindow ) |
Definition at line 201 of file indicator_icon.cpp.
References createArrow(), createBlankImage(), createDiamond(), createTurndown(), m_blankBitmap, m_closedBitmap, m_dotBitmap, m_downArrowBitmap, m_openBitmap, m_rightArrowBitmap, m_upArrowBitmap, and scale.
|
overridevirtual |
Get a reference to the row icon in the given mode.
aIconId | the id of the icon to get (depends on the provider). |
Implements INDICATOR_ICON::ICON_PROVIDER.
Definition at line 225 of file indicator_icon.cpp.
References CLOSED, DIMMED, DOWN, m_blankBitmap, m_closedBitmap, m_dotBitmap, m_downArrowBitmap, m_openBitmap, m_rightArrowBitmap, m_upArrowBitmap, OFF, ON, OPEN, and UP.
|
private |
Definition at line 118 of file indicator_icon.h.
Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().
|
private |
Definition at line 124 of file indicator_icon.h.
Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().
|
private |
Definition at line 122 of file indicator_icon.h.
Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().
|
private |
Definition at line 121 of file indicator_icon.h.
Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().
|
private |
Definition at line 123 of file indicator_icon.h.
Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().
|
private |
Definition at line 119 of file indicator_icon.h.
Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().
|
private |
Definition at line 120 of file indicator_icon.h.
Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().