KiCad PCB EDA Suite
PDF_PLOTTER::OUTLINE_NODE Struct Reference

#include <plotters_pslike.h>

Public Member Functions

 ~OUTLINE_NODE ()
 
OUTLINE_NODEAddChild (int aActionHandle, const wxString &aTitle, int aEntryHandle)
 

Public Attributes

int actionHandle
 Handle to action. More...
 
wxString title
 Title of outline node. More...
 
int entryHandle
 Allocated handle for this outline entry. More...
 
std::vector< OUTLINE_NODE * > children
 Ordered list of children. More...
 

Detailed Description

Definition at line 384 of file plotters_pslike.h.

Constructor & Destructor Documentation

◆ ~OUTLINE_NODE()

PDF_PLOTTER::OUTLINE_NODE::~OUTLINE_NODE ( )
inline

Definition at line 392 of file plotters_pslike.h.

393 {
394 std::for_each( children.begin(), children.end(),
395 []( OUTLINE_NODE* node )
396 {
397 delete node;
398 } );
399 }
std::vector< OUTLINE_NODE * > children
Ordered list of children.

References children.

Member Function Documentation

◆ AddChild()

OUTLINE_NODE * PDF_PLOTTER::OUTLINE_NODE::AddChild ( int  aActionHandle,
const wxString &  aTitle,
int  aEntryHandle 
)
inline

Definition at line 401 of file plotters_pslike.h.

402 {
403 OUTLINE_NODE* child = new OUTLINE_NODE
404 {
405 aActionHandle, aTitle, aEntryHandle, {}
406 };
407
408 children.push_back( child );
409
410 return child;
411 }

References children.

Referenced by PDF_PLOTTER::addOutlineNode().

Member Data Documentation

◆ actionHandle

int PDF_PLOTTER::OUTLINE_NODE::actionHandle

Handle to action.

Definition at line 386 of file plotters_pslike.h.

Referenced by PDF_PLOTTER::emitOutlineNode().

◆ children

std::vector<OUTLINE_NODE*> PDF_PLOTTER::OUTLINE_NODE::children

Ordered list of children.

Definition at line 390 of file plotters_pslike.h.

Referenced by AddChild(), PDF_PLOTTER::ClosePage(), PDF_PLOTTER::emitOutlineNode(), and ~OUTLINE_NODE().

◆ entryHandle

int PDF_PLOTTER::OUTLINE_NODE::entryHandle

Allocated handle for this outline entry.

Definition at line 388 of file plotters_pslike.h.

Referenced by PDF_PLOTTER::emitOutlineNode().

◆ title

wxString PDF_PLOTTER::OUTLINE_NODE::title

Title of outline node.

Definition at line 387 of file plotters_pslike.h.

Referenced by PDF_PLOTTER::emitOutlineNode().


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