KiCad PCB EDA Suite
Loading...
Searching...
No Matches
CONSTRAINT_BADGE Struct Reference

An on-canvas constraint badge. More...

#include <constraint_overlay.h>

Public Attributes

VECTOR2I pos
 
KIID constraint
 
PCB_CONSTRAINT_TYPE type
 
KIGFX::COLOR4D color
 
std::vector< SEGavoid
 

Detailed Description

An on-canvas constraint badge.

Holds its anchor (the world point it labels), the constraint type (which picks the icon) and colour to draw, and which constraint it represents for hit-testing. The on-screen draw position is computed at draw time by CONSTRAINT_OVERLAY::LayoutBadges.

Definition at line 51 of file constraint_overlay.h.

Member Data Documentation

◆ avoid

std::vector<SEG> CONSTRAINT_BADGE::avoid

Definition at line 57 of file constraint_overlay.h.

◆ color

KIGFX::COLOR4D CONSTRAINT_BADGE::color

Definition at line 56 of file constraint_overlay.h.

Referenced by CONSTRAINT_BADGE_ITEM::ViewDraw().

◆ constraint

KIID CONSTRAINT_BADGE::constraint

Definition at line 54 of file constraint_overlay.h.

Referenced by CONSTRAINT_BADGE_ITEM::ViewDraw().

◆ pos

VECTOR2I CONSTRAINT_BADGE::pos

Definition at line 53 of file constraint_overlay.h.

◆ type

PCB_CONSTRAINT_TYPE CONSTRAINT_BADGE::type

Definition at line 55 of file constraint_overlay.h.

Referenced by CONSTRAINT_BADGE_ITEM::ViewDraw().


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