KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KICAD_DIFF::DOCUMENT_SEGMENT Struct Reference

Stroked line segment from one of the source documents. More...

#include <diff_scene.h>

Public Attributes

VECTOR2I start
 
VECTOR2I end
 
int width = 0
 
KIGFX::COLOR4D color
 
LSET layers
 

Detailed Description

Stroked line segment from one of the source documents.

Width and color are carried so the renderer doesn't have to consult a theme per shape; the caller picks the color based on the side and any layer-specific tint it wants. Width 0 yields a one-device-pixel hairline in the GAL renderer; the plotter promotes it to a visible minimum.

Side membership is implied by whether the shape lives in DIFF_SCENE's referenceGeometry or comparisonGeometry — no separate field needed.

Definition at line 116 of file diff_scene.h.

Member Data Documentation

◆ color

KIGFX::COLOR4D KICAD_DIFF::DOCUMENT_SEGMENT::color

Definition at line 121 of file diff_scene.h.

◆ end

◆ layers

LSET KICAD_DIFF::DOCUMENT_SEGMENT::layers

◆ start

◆ width


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