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

Detailed Description

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

Definition at line 96 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.

OPEN 

Tree control open.

CLOSED 

Tree control closed.

Definition at line 101 of file indicator_icon.h.

Constructor & Destructor Documentation

◆ ROW_ICON_PROVIDER()

ROW_ICON_PROVIDER::ROW_ICON_PROVIDER ( int aSizeDIP,
wxWindow * aWindow )

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

Member Data Documentation

◆ m_blankBitmap

wxBitmap ROW_ICON_PROVIDER::m_blankBitmap
private

Definition at line 118 of file indicator_icon.h.

Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().

◆ m_closedBitmap

wxBitmap ROW_ICON_PROVIDER::m_closedBitmap
private

Definition at line 124 of file indicator_icon.h.

Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().

◆ m_dotBitmap

wxBitmap ROW_ICON_PROVIDER::m_dotBitmap
private

Definition at line 122 of file indicator_icon.h.

Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().

◆ m_downArrowBitmap

wxBitmap ROW_ICON_PROVIDER::m_downArrowBitmap
private

Definition at line 121 of file indicator_icon.h.

Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().

◆ m_openBitmap

wxBitmap ROW_ICON_PROVIDER::m_openBitmap
private

Definition at line 123 of file indicator_icon.h.

Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().

◆ m_rightArrowBitmap

wxBitmap ROW_ICON_PROVIDER::m_rightArrowBitmap
private

Definition at line 119 of file indicator_icon.h.

Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().

◆ m_upArrowBitmap

wxBitmap ROW_ICON_PROVIDER::m_upArrowBitmap
private

Definition at line 120 of file indicator_icon.h.

Referenced by GetIndicatorIcon(), and ROW_ICON_PROVIDER().


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