KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SCH_CONNECTIVITY::RENDER_SCOPE Class Reference

Marks the canvas reads of this thread, which are item drawing and view bounds. More...

#include <conn_text.h>

Public Member Functions

 RENDER_SCOPE ()
 
 ~RENDER_SCOPE ()
 
 RENDER_SCOPE (const RENDER_SCOPE &)=delete
 
RENDER_SCOPEoperator= (const RENDER_SCOPE &)=delete
 

Static Public Member Functions

static bool Active ()
 True inside a render scope, unless an INPUT_TEXT_SCOPE is also active.
 

Static Private Attributes

static thread_local unsigned s_depth = 0
 

Detailed Description

Marks the canvas reads of this thread, which are item drawing and view bounds.

Tools stage an item and redraw it before they push the commit. Staging changes the screen revision, so a strict read would draw net names, bus styling and netclass colors as unconnected until the next recalculation. Inside this scope, the facade still serves the last published row of an item on a changed screen, if the screen is alive and still holds the item. Engine input capture ignores the scope, and every read outside it stays strict.

Definition at line 60 of file conn_text.h.

Constructor & Destructor Documentation

◆ RENDER_SCOPE() [1/2]

SCH_CONNECTIVITY::RENDER_SCOPE::RENDER_SCOPE ( )
inline

Definition at line 63 of file conn_text.h.

References s_depth.

Referenced by operator=(), and RENDER_SCOPE().

◆ ~RENDER_SCOPE()

SCH_CONNECTIVITY::RENDER_SCOPE::~RENDER_SCOPE ( )
inline

Definition at line 64 of file conn_text.h.

References s_depth.

◆ RENDER_SCOPE() [2/2]

SCH_CONNECTIVITY::RENDER_SCOPE::RENDER_SCOPE ( const RENDER_SCOPE & )
delete

References RENDER_SCOPE().

Member Function Documentation

◆ Active()

static bool SCH_CONNECTIVITY::RENDER_SCOPE::Active ( )
inlinestatic

True inside a render scope, unless an INPUT_TEXT_SCOPE is also active.

Definition at line 69 of file conn_text.h.

References SCH_CONNECTIVITY::INPUT_TEXT_SCOPE::Active(), and s_depth.

Referenced by SCH_CONNECTIVITY::FACADE_STATE::Screen().

◆ operator=()

RENDER_SCOPE & SCH_CONNECTIVITY::RENDER_SCOPE::operator= ( const RENDER_SCOPE & )
delete

References RENDER_SCOPE().

Member Data Documentation

◆ s_depth

thread_local unsigned SCH_CONNECTIVITY::RENDER_SCOPE::s_depth = 0
inlinestaticprivate

Definition at line 72 of file conn_text.h.

Referenced by Active(), RENDER_SCOPE(), and ~RENDER_SCOPE().


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