KiCad PCB EDA Suite
Loading...
Searching...
No Matches
fontinfo.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 (C) 2021-2022 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef FONT_FONTINFO_H
22#define FONT_FONTINFO_H
23
24#include <string>
25#include <vector>
26
27namespace fontconfig
28{
29
31{
32public:
33 FONTINFO( std::string aFile, std::string aStyle, std::string aFamily ) :
34 m_file( std::move( aFile ) ),
35 m_style( std::move( aStyle ) ),
36 m_family( std::move( aFamily ) )
37 {
38 }
39
40 const std::string& File() const { return m_file; }
41 const std::string& Style() const { return m_style; }
42 const std::string& Family() const { return m_family; }
43
44 std::vector<FONTINFO>& Children() { return m_children; }
45
46private:
47 std::string m_file;
48 std::string m_style;
49 std::string m_family;
50
51 std::vector<FONTINFO> m_children;
52};
53
54} // namespace fontconfig
55
56#endif //FONT_FONTINFO_H
const std::string & Style() const
Definition: fontinfo.h:41
FONTINFO(std::string aFile, std::string aStyle, std::string aFamily)
Definition: fontinfo.h:33
std::string m_family
Definition: fontinfo.h:49
std::vector< FONTINFO > & Children()
Definition: fontinfo.h:44
std::string m_file
Definition: fontinfo.h:47
const std::string & File() const
Definition: fontinfo.h:40
std::vector< FONTINFO > m_children
Definition: fontinfo.h:51
const std::string & Family() const
Definition: fontinfo.h:42
std::string m_style
Definition: fontinfo.h:48
STL namespace.