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 aSize) | |
const wxBitmap & | GetIndicatorIcon (INDICATOR_ICON::ICON_ID aIconId) const override |
Get a reference to the row icon in the given mode. More... | |
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.
ROW_ICON_PROVIDER::ROW_ICON_PROVIDER | ( | int | aSize | ) |
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 159 of file indicator_icon.cpp.
References createArrow(), createBlankImage(), createDiamond(), m_blankBitmap, m_dotBitmap, m_downArrowBitmap, m_rightArrowBitmap, and m_upArrowBitmap.
|
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 169 of file indicator_icon.cpp.
References m_blankBitmap, m_dotBitmap, m_downArrowBitmap, m_rightArrowBitmap, m_upArrowBitmap, and ON.
|
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().