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 tooltipText;
56 wxString prefixText;
57
59 xStart( 0 ),
60 xEnd( 0 ),
61 yCenter( 0 ),
62 labelText(),
66 {
67 }
68
69 DRC_RE_FIELD_POSITION( int aXStart, int aXEnd, int aYCenter, const wxString& aLabelText = wxEmptyString,
71 const wxString& aTooltipText = wxEmptyString, const wxString& aPrefixText = wxEmptyString ) :
72 xStart( aXStart ),
73 xEnd( aXEnd ),
74 yCenter( aYCenter ),
75 labelText( aLabelText ),
76 labelPosition( aLabelPos ),
77 tooltipText( aTooltipText ),
78 prefixText( aPrefixText )
79 {
80 }
81};
82
83#endif // DRC_RE_OVERLAY_TYPES_H
LABEL_POSITION
Specifies the position of a label relative to its associated field.
@ NONE
Definition eda_fill.h:42
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.
DRC_RE_FIELD_POSITION(int aXStart, int aXEnd, int aYCenter, const wxString &aLabelText=wxEmptyString, LABEL_POSITION aLabelPos=LABEL_POSITION::NONE, const wxString &aTooltipText=wxEmptyString, const wxString &aPrefixText=wxEmptyString)
wxString labelText
Optional label text (empty for no label)
int yCenter
Vertical center Y coordinate of the field.
wxString tooltipText
Optional tooltip shown on the control.