KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ROW_ICON_PROVIDER Class Reference

Icon provider for the "standard" row indicators, for example in layer selection lists. More...

#include <indicator_icon.h>

Inheritance diagram for ROW_ICON_PROVIDER:
INDICATOR_ICON::ICON_PROVIDER

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
 

Detailed Description

Icon provider for the "standard" row indicators, for example in layer selection lists.

Definition at line 127 of file indicator_icon.h.

Member Enumeration Documentation

◆ STATE

< 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.

Constructor & Destructor Documentation

◆ ROW_ICON_PROVIDER()

ROW_ICON_PROVIDER::ROW_ICON_PROVIDER ( int  aSizeDIP,
wxWindow *  aWindow 
)
Parameters
aAltfalse: normal icons (blue arrow/blank), true: alternative icons (blue arrow/green diamond) Get a reference to the row icon in the given mode.
aIconIdthe 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.

Member Function Documentation

◆ GetIndicatorIcon()

const wxBitmap & ROW_ICON_PROVIDER::GetIndicatorIcon ( INDICATOR_ICON::ICON_ID  aIconId) const
overridevirtual

Get a reference to the row icon in the given mode.

Parameters
aIconIdthe 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.

Member Data Documentation

◆ m_blankBitmap

wxBitmap ROW_ICON_PROVIDER::m_blankBitmap
private

Definition at line 151 of file indicator_icon.h.

Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().

◆ m_dotBitmap

wxBitmap ROW_ICON_PROVIDER::m_dotBitmap
private

Definition at line 155 of file indicator_icon.h.

Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().

◆ m_downArrowBitmap

wxBitmap ROW_ICON_PROVIDER::m_downArrowBitmap
private

Definition at line 154 of file indicator_icon.h.

Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().

◆ m_rightArrowBitmap

wxBitmap ROW_ICON_PROVIDER::m_rightArrowBitmap
private

Definition at line 152 of file indicator_icon.h.

Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().

◆ m_upArrowBitmap

wxBitmap ROW_ICON_PROVIDER::m_upArrowBitmap
private

Definition at line 153 of file indicator_icon.h.

Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().


The documentation for this class was generated from the following files: