lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
include
FontHelper.h
Go to the documentation of this file.
1
/*
2
* FontHelper.h - Header function to help with fonts
3
*
4
* Copyright (c) 2005-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
5
*
6
* This file is part of LMMS - https://lmms.io
7
*
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU General Public
10
* License as published by the Free Software Foundation; either
11
* version 2 of the License, or (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public
19
* License along with this program (see COPYING); if not, write to the
20
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21
* Boston, MA 02110-1301 USA.
22
*
23
*/
24
25
#ifndef LMMS_GUI_FONT_HELPER_H
26
#define LMMS_GUI_FONT_HELPER_H
27
28
#include <QApplication>
29
#include <QFont>
30
31
constexpr
int
DEFAULT_FONT_SIZE
= 12;
32
constexpr
int
SMALL_FONT_SIZE
= 10;
33
constexpr
int
LARGE_FONT_SIZE
= 14;
34
35
namespace
lmms::gui
36
{
37
38
// Convenience method to set the font size in pixels
39
inline
QFont
adjustedToPixelSize
(QFont font,
int
size)
40
{
41
font.setPixelSize(size);
42
return
font;
43
}
44
45
}
// namespace lmms::gui
46
47
#endif
// LMMS_GUI_FONT_HELPER_H
SMALL_FONT_SIZE
constexpr int SMALL_FONT_SIZE
Definition
FontHelper.h:32
LARGE_FONT_SIZE
constexpr int LARGE_FONT_SIZE
Definition
FontHelper.h:33
DEFAULT_FONT_SIZE
constexpr int DEFAULT_FONT_SIZE
Definition
FontHelper.h:31
lmms::gui
Definition
AudioPortAudio.cpp:209
lmms::gui::adjustedToPixelSize
QFont adjustedToPixelSize(QFont font, int size)
Definition
FontHelper.h:39
Generated on
for lmms by
1.18.0