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

Specifies the position and size of a field overlaid on a constraint bitmap. More...

#include <drc_re_overlay_types.h>

Public Member Functions

 DRC_RE_FIELD_POSITION ()
 
 DRC_RE_FIELD_POSITION (int aXStart, int aXEnd, int aYTop, int aTabOrder, const wxString &aLabelText=wxEmptyString, LABEL_POSITION aLabelPos=LABEL_POSITION::NONE)
 

Public Attributes

int xStart
 Left edge X coordinate where the field starts.
 
int xEnd
 Right edge X coordinate where the field ends.
 
int yTop
 Top edge Y coordinate of the field.
 
int tabOrder
 Tab navigation order (1-based, lower numbers receive focus first)
 
wxString labelText
 Optional label text (empty for no label)
 
LABEL_POSITION labelPosition
 Position of label relative to field.
 

Detailed Description

Specifies the position and size of a field overlaid on a constraint bitmap.

All coordinates are in 1x bitmap pixels. When the system selects a higher-resolution bitmap (1.5x or 2x), these values are automatically scaled at runtime.

Definition at line 49 of file drc_re_overlay_types.h.

Constructor & Destructor Documentation

◆ DRC_RE_FIELD_POSITION() [1/2]

DRC_RE_FIELD_POSITION::DRC_RE_FIELD_POSITION ( )
inline

Definition at line 59 of file drc_re_overlay_types.h.

References labelPosition, labelText, NONE, tabOrder, xEnd, xStart, and yTop.

◆ DRC_RE_FIELD_POSITION() [2/2]

DRC_RE_FIELD_POSITION::DRC_RE_FIELD_POSITION ( int aXStart,
int aXEnd,
int aYTop,
int aTabOrder,
const wxString & aLabelText = wxEmptyString,
LABEL_POSITION aLabelPos = LABEL_POSITION::NONE )
inline

Definition at line 69 of file drc_re_overlay_types.h.

References labelPosition, labelText, NONE, tabOrder, xEnd, xStart, and yTop.

Member Data Documentation

◆ labelPosition

LABEL_POSITION DRC_RE_FIELD_POSITION::labelPosition

Position of label relative to field.

Definition at line 57 of file drc_re_overlay_types.h.

Referenced by DRC_RE_FIELD_POSITION(), DRC_RE_FIELD_POSITION(), and DRC_RE_BITMAP_OVERLAY_PANEL::PositionLabel().

◆ labelText

wxString DRC_RE_FIELD_POSITION::labelText

Optional label text (empty for no label)

Definition at line 56 of file drc_re_overlay_types.h.

Referenced by DRC_RE_FIELD_POSITION(), and DRC_RE_FIELD_POSITION().

◆ tabOrder

int DRC_RE_FIELD_POSITION::tabOrder

Tab navigation order (1-based, lower numbers receive focus first)

Definition at line 54 of file drc_re_overlay_types.h.

Referenced by DRC_RE_FIELD_POSITION(), and DRC_RE_FIELD_POSITION().

◆ xEnd

int DRC_RE_FIELD_POSITION::xEnd

◆ xStart

int DRC_RE_FIELD_POSITION::xStart

◆ yTop


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