|
KiCad PCB EDA Suite
|
#include <grid_color_swatch_helpers.h>
Public Member Functions | |
| GRID_CELL_COLOR_RENDERER (wxWindow *aParent=nullptr, SWATCH_SIZE aSize=SWATCH_EXPAND, const KIGFX::COLOR4D &aBackground=KIGFX::COLOR4D::UNSPECIFIED) | |
| GRID_CELL_COLOR_RENDERER (const GRID_CELL_COLOR_RENDERER &aOther) | |
| ~GRID_CELL_COLOR_RENDERER () override | |
| wxGridCellRenderer * | Clone () const override |
| wxSize | GetBestSize (wxGrid &grid, wxGridCellAttr &attr, wxDC &dc, int row, int col) override |
| void | Draw (wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDC, const wxRect &aRect, int aRow, int aCol, bool isSelected) override |
| void | OnDarkModeToggle () |
Private Attributes | |
| wxWindow * | m_parent |
| KIGFX::COLOR4D | m_background |
| wxSize | m_size |
| wxSize | m_checkerboardSize |
| KIGFX::COLOR4D | m_checkerboardBg |
Definition at line 37 of file grid_color_swatch_helpers.h.
| GRID_CELL_COLOR_RENDERER::GRID_CELL_COLOR_RENDERER | ( | wxWindow * | aParent = nullptr, |
| SWATCH_SIZE | aSize = SWATCH_EXPAND, | ||
| const KIGFX::COLOR4D & | aBackground = KIGFX::COLOR4D::UNSPECIFIED ) |
Definition at line 35 of file grid_color_swatch_helpers.cpp.
References CHECKERBOARD_SIZE_DU(), m_background, m_checkerboardBg, m_checkerboardSize, m_parent, m_size, SWATCH_EXPAND, SWATCH_LARGE, SWATCH_MEDIUM, SWATCH_SIZE_LARGE_DU(), SWATCH_SIZE_MEDIUM_DU(), SWATCH_SIZE_SMALL_DU(), and SWATCH_SMALL.
Referenced by Clone(), and GRID_CELL_COLOR_RENDERER().
| GRID_CELL_COLOR_RENDERER::GRID_CELL_COLOR_RENDERER | ( | const GRID_CELL_COLOR_RENDERER & | aOther | ) |
Definition at line 54 of file grid_color_swatch_helpers.cpp.
References GRID_CELL_COLOR_RENDERER(), m_background, m_checkerboardBg, m_checkerboardSize, m_parent, and m_size.
|
override |
Definition at line 64 of file grid_color_swatch_helpers.cpp.
|
override |
Definition at line 69 of file grid_color_swatch_helpers.cpp.
References GRID_CELL_COLOR_RENDERER().
|
override |
Definition at line 90 of file grid_color_swatch_helpers.cpp.
References color, m_background, m_checkerboardBg, m_checkerboardSize, m_size, and COLOR_SWATCH::MakeBitmap().
|
override |
Definition at line 75 of file grid_color_swatch_helpers.cpp.
| void GRID_CELL_COLOR_RENDERER::OnDarkModeToggle | ( | ) |
Definition at line 117 of file grid_color_swatch_helpers.cpp.
References m_checkerboardBg, and m_parent.
|
private |
Definition at line 56 of file grid_color_swatch_helpers.h.
Referenced by Draw(), GRID_CELL_COLOR_RENDERER(), and GRID_CELL_COLOR_RENDERER().
|
private |
Definition at line 60 of file grid_color_swatch_helpers.h.
Referenced by Draw(), GRID_CELL_COLOR_RENDERER(), GRID_CELL_COLOR_RENDERER(), and OnDarkModeToggle().
|
private |
Definition at line 59 of file grid_color_swatch_helpers.h.
Referenced by Draw(), GRID_CELL_COLOR_RENDERER(), and GRID_CELL_COLOR_RENDERER().
|
private |
Definition at line 54 of file grid_color_swatch_helpers.h.
Referenced by GRID_CELL_COLOR_RENDERER(), GRID_CELL_COLOR_RENDERER(), and OnDarkModeToggle().
|
private |
Definition at line 58 of file grid_color_swatch_helpers.h.
Referenced by Draw(), GetBestSize(), GRID_CELL_COLOR_RENDERER(), and GRID_CELL_COLOR_RENDERER().