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

Renders a combobox cell's text with an always-visible dropdown arrow, so it reads as a dropdown even when it isn't currently being edited (matching GRID_CELL_COMBOBOX's editor). More...

#include <grid_combobox.h>

Inheritance diagram for GRID_CELL_COMBOBOX_RENDERER:

Public Member Functions

wxGridCellRenderer * Clone () const override
 
void Draw (wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDC, const wxRect &aRect, int aRow, int aCol, bool isSelected) override
 
wxSize GetBestSize (wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDC, int aRow, int aCol) override
 

Detailed Description

Renders a combobox cell's text with an always-visible dropdown arrow, so it reads as a dropdown even when it isn't currently being edited (matching GRID_CELL_COMBOBOX's editor).

Definition at line 34 of file grid_combobox.h.

Member Function Documentation

◆ Clone()

wxGridCellRenderer * GRID_CELL_COMBOBOX_RENDERER::Clone ( ) const
override

Definition at line 29 of file grid_combobox.cpp.

◆ Draw()

void GRID_CELL_COMBOBOX_RENDERER::Draw ( wxGrid & aGrid,
wxGridCellAttr & aAttr,
wxDC & aDC,
const wxRect & aRect,
int aRow,
int aCol,
bool isSelected )
override

Definition at line 35 of file grid_combobox.cpp.

◆ GetBestSize()

wxSize GRID_CELL_COMBOBOX_RENDERER::GetBestSize ( wxGrid & aGrid,
wxGridCellAttr & aAttr,
wxDC & aDC,
int aRow,
int aCol )
override

Definition at line 55 of file grid_combobox.cpp.


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