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

The net navigator's tree control. More...

#include <net_navigator_tree.h>

Inheritance diagram for NET_NAVIGATOR_TREE:

Public Member Functions

 NET_NAVIGATOR_TREE (wxWindow *aParent, wxWindowID aId, const wxPoint &aPos, const wxSize &aSize, long aStyle)
 
void RecalculateRowHeight ()
 Recompute the row height from the control's current font.
 

Detailed Description

The net navigator's tree control.

wxGenericTreeCtrl caches the row height it derives from the control font, but wxMSW swaps in a rescaled font on a DPI change without going through the virtual SetFont() that would recompute it. This exposes the recomputation so the owner can drive it.

Definition at line 33 of file net_navigator_tree.h.

Constructor & Destructor Documentation

◆ NET_NAVIGATOR_TREE()

NET_NAVIGATOR_TREE::NET_NAVIGATOR_TREE ( wxWindow * aParent,
wxWindowID aId,
const wxPoint & aPos,
const wxSize & aSize,
long aStyle )
inline

Definition at line 36 of file net_navigator_tree.h.

Member Function Documentation

◆ RecalculateRowHeight()

void NET_NAVIGATOR_TREE::RecalculateRowHeight ( )
inline

Recompute the row height from the control's current font.

Text extents are cached on the items, so the tree must also be repopulated for a font size change to take full effect.

Definition at line 48 of file net_navigator_tree.h.


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