KiCad PCB EDA Suite
Loading...
Searching...
No Matches
glyph.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) 2021 Ola Rinta-Koski
5
* Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6
*
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 2
10
* of the License, or (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19
*/
20
21
#pragma once
22
23
#include <wx/debug.h>
24
25
#include <
gal/gal.h
>
26
#include <
math/box2.h
>
27
28
29
namespace
KIFONT
30
{
31
32
33
class
GAL_API
GLYPH
34
{
35
public
:
36
virtual
~GLYPH
()
37
{}
38
39
virtual
bool
IsOutline
()
const
{
return
false
; }
40
virtual
bool
IsStroke
()
const
{
return
false
; }
41
42
virtual
BOX2D
BoundingBox
() = 0;
43
44
bool
IsHover
()
const
{
return
m_isHover
; }
45
void
SetIsHover
(
bool
aIsHover ) {
m_isHover
= aIsHover; }
46
47
private
:
48
bool
m_isHover
=
false
;
49
};
50
51
}
// namespace KIFONT
box2.h
BOX2D
BOX2< VECTOR2D > BOX2D
Definition
box2.h:915
KIFONT::GLYPH
Definition
glyph.h:34
KIFONT::GLYPH::BoundingBox
virtual BOX2D BoundingBox()=0
KIFONT::GLYPH::IsStroke
virtual bool IsStroke() const
Definition
glyph.h:40
KIFONT::GLYPH::IsOutline
virtual bool IsOutline() const
Definition
glyph.h:39
KIFONT::GLYPH::SetIsHover
void SetIsHover(bool aIsHover)
Definition
glyph.h:45
KIFONT::GLYPH::IsHover
bool IsHover() const
Definition
glyph.h:44
KIFONT::GLYPH::~GLYPH
virtual ~GLYPH()
Definition
glyph.h:36
KIFONT::GLYPH::m_isHover
bool m_isHover
Definition
glyph.h:48
gal.h
GAL_API
#define GAL_API
Definition
gal.h:27
KIFONT
Definition
target3001_fonts.h:32
src
include
font
glyph.h
Generated on Tue Oct 27 2026 00:06:27 for KiCad PCB EDA Suite by
1.13.2