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 } |
< 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 |
Icon provider for the "standard" row indicators, for example in layer selection lists.
Definition at line 127 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. |
Definition at line 132 of file indicator_icon.h.
ROW_ICON_PROVIDER::ROW_ICON_PROVIDER | ( | int | aSizeDIP, |
wxWindow * | aWindow | ||
) |
aAlt | false: normal icons (blue arrow/blank), true: alternative icons (blue arrow/green diamond) Get a reference to the row icon in the given mode. |
aIconId | the id of the icon to get (depends on the provider). |
Definition at line 167 of file indicator_icon.cpp.
References createArrow(), createBlankImage(), createDiamond(), m_blankBitmap, m_dotBitmap, m_downArrowBitmap, 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 188 of file indicator_icon.cpp.
References DIMMED, DOWN, m_blankBitmap, m_dotBitmap, m_downArrowBitmap, m_rightArrowBitmap, m_upArrowBitmap, OFF, ON, and UP.
|
private |
Definition at line 151 of file indicator_icon.h.
Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().
|
private |
Definition at line 155 of file indicator_icon.h.
Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().
|
private |
Definition at line 154 of file indicator_icon.h.
Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().
|
private |
Definition at line 152 of file indicator_icon.h.
Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().
|
private |
Definition at line 153 of file indicator_icon.h.
Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().