KiCad PCB EDA Suite
Loading...
Searching...
No Matches
drc_re_overlay_types.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2024 KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#ifndef DRC_RE_OVERLAY_TYPES_H
21#define DRC_RE_OVERLAY_TYPES_H
22
23#include <wx/string.h>
24
25
37
38
48{
49 int xStart;
50 int xEnd;
51 int yCenter;
52
53 wxString labelText;
55 wxString prefixText;
56
58 xStart( 0 ),
59 xEnd( 0 ),
60 yCenter( 0 ),
61 labelText(),
64 {
65 }
66
67 DRC_RE_FIELD_POSITION( int aXStart, int aXEnd, int aYCenter,
68 const wxString& aLabelText = wxEmptyString,
70 const wxString& aPrefixText = wxEmptyString ) :
71 xStart( aXStart ),
72 xEnd( aXEnd ),
73 yCenter( aYCenter ),
74 labelText( aLabelText ),
75 labelPosition( aLabelPos ),
76 prefixText( aPrefixText )
77 {
78 }
79};
80
81#endif // DRC_RE_OVERLAY_TYPES_H
LABEL_POSITION
Specifies the position of a label relative to its associated field.
@ NONE
Definition eda_shape.h:72
LABEL_POSITION labelPosition
Position of label relative to field.
wxString prefixText
Optional text placed on the left.
int xEnd
Right edge X coordinate where the field ends.
int xStart
Left edge X coordinate where the field starts.
wxString labelText
Optional label text (empty for no label)
int yCenter
Vertical center Y coordinate of the field.
DRC_RE_FIELD_POSITION(int aXStart, int aXEnd, int aYCenter, const wxString &aLabelText=wxEmptyString, LABEL_POSITION aLabelPos=LABEL_POSITION::NONE, const wxString &aPrefixText=wxEmptyString)