KiCad PCB EDA Suite
Loading...
Searching...
No Matches
LIB_TREE_RENDERER Class Reference
Inheritance diagram for LIB_TREE_RENDERER:

Public Member Functions

 LIB_TREE_RENDERER ()
 
wxSize GetSize () const override
 
bool GetValue (wxVariant &aValue) const override
 
bool SetValue (const wxVariant &aValue) override
 
void SetAttr (const wxDataViewItemAttr &aAttr) override
 
bool Render (wxRect aRect, wxDC *dc, int aState) override
 

Private Attributes

bool m_canvasItem
 
wxString m_text
 

Detailed Description

Definition at line 41 of file lib_tree_model_adapter.cpp.

Constructor & Destructor Documentation

◆ LIB_TREE_RENDERER()

LIB_TREE_RENDERER::LIB_TREE_RENDERER ( )
inline

Definition at line 44 of file lib_tree_model_adapter.cpp.

Member Function Documentation

◆ GetSize()

wxSize LIB_TREE_RENDERER::GetSize ( ) const
inlineoverride

Definition at line 48 of file lib_tree_model_adapter.cpp.

References m_text.

◆ GetValue()

bool LIB_TREE_RENDERER::GetValue ( wxVariant &  aValue) const
inlineoverride

Definition at line 53 of file lib_tree_model_adapter.cpp.

References m_text.

◆ Render()

bool LIB_TREE_RENDERER::Render ( wxRect  aRect,
wxDC *  dc,
int  aState 
)
inlineoverride

Definition at line 76 of file lib_tree_model_adapter.cpp.

References KIPLATFORM::UI::IsDarkTheme(), m_canvasItem, and m_text.

◆ SetAttr()

void LIB_TREE_RENDERER::SetAttr ( const wxDataViewItemAttr &  aAttr)
inlineoverride

Definition at line 65 of file lib_tree_model_adapter.cpp.

References m_canvasItem.

◆ SetValue()

bool LIB_TREE_RENDERER::SetValue ( const wxVariant &  aValue)
inlineoverride

Definition at line 59 of file lib_tree_model_adapter.cpp.

References m_text.

Member Data Documentation

◆ m_canvasItem

bool LIB_TREE_RENDERER::m_canvasItem
private

Definition at line 111 of file lib_tree_model_adapter.cpp.

Referenced by Render(), and SetAttr().

◆ m_text

wxString LIB_TREE_RENDERER::m_text
private

Definition at line 112 of file lib_tree_model_adapter.cpp.

Referenced by GetSize(), GetValue(), Render(), and SetValue().


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