Ardour
9.0-pre0-582-g084a23a80d
libs/widgets/widgets/ui_config.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2017 Robin Gareus <robin@gareus.org>
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License along
15
* with this program; if not, write to the Free Software Foundation, Inc.,
16
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
*/
18
19
#ifndef _WIDGETS_UI_BASE_H_
20
#define _WIDGETS_UI_BASE_H_
21
22
#include <cassert>
23
24
#include <pangomm/fontdescription.h>
25
26
#include "
pbd/configuration.h
"
27
#include "
gtkmm2ext/colors.h
"
28
29
#include "
widgets/visibility.h
"
30
31
namespace
ArdourWidgets
{
32
33
class
LIBWIDGETS_API
UIConfigurationBase
:
public
PBD::Configuration
34
{
35
protected
:
36
virtual
~UIConfigurationBase
() { _instance = 0; }
37
static
UIConfigurationBase
*
_instance
;
38
39
public
:
40
static
UIConfigurationBase
&
instance
() {
return
*_instance; }
41
42
sigc::signal<void>
DPIReset
;
43
sigc::signal<void>
ColorsChanged
;
44
45
virtual
float
get_ui_scale
() = 0;
46
virtual
bool
get_all_floating_windows_are_dialogs
()
const
= 0;
47
virtual
bool
get_widget_prelight
()
const
= 0;
48
virtual
Gtkmm2ext::Color
color
(
const
std::string&,
bool
* failed = 0)
const
= 0;
49
50
virtual
Pango::FontDescription
get_NormalFont
()
const
= 0;
51
virtual
Pango::FontDescription
get_SmallFont
()
const
= 0;
52
virtual
Pango::FontDescription
get_NormalMonospaceFont
()
const
= 0;
53
virtual
Pango::FontDescription
get_SmallMonospaceFont
()
const
= 0;
54
virtual
Pango::FontDescription
get_ArdourSmallFont
()
const
= 0;
55
};
56
57
}
58
#endif
ArdourWidgets::UIConfigurationBase
Definition:
libs/widgets/widgets/ui_config.h:34
ArdourWidgets::UIConfigurationBase::get_all_floating_windows_are_dialogs
virtual bool get_all_floating_windows_are_dialogs() const =0
ArdourWidgets::UIConfigurationBase::get_SmallMonospaceFont
virtual Pango::FontDescription get_SmallMonospaceFont() const =0
ArdourWidgets::UIConfigurationBase::ColorsChanged
sigc::signal< void > ColorsChanged
Definition:
libs/widgets/widgets/ui_config.h:43
ArdourWidgets::UIConfigurationBase::get_widget_prelight
virtual bool get_widget_prelight() const =0
ArdourWidgets::UIConfigurationBase::_instance
static UIConfigurationBase * _instance
Definition:
libs/widgets/widgets/ui_config.h:37
ArdourWidgets::UIConfigurationBase::instance
static UIConfigurationBase & instance()
Definition:
libs/widgets/widgets/ui_config.h:40
ArdourWidgets::UIConfigurationBase::get_NormalMonospaceFont
virtual Pango::FontDescription get_NormalMonospaceFont() const =0
ArdourWidgets::UIConfigurationBase::DPIReset
sigc::signal< void > DPIReset
Definition:
libs/widgets/widgets/ui_config.h:42
ArdourWidgets::UIConfigurationBase::get_ui_scale
virtual float get_ui_scale()=0
ArdourWidgets::UIConfigurationBase::color
virtual Gtkmm2ext::Color color(const std::string &, bool *failed=0) const =0
ArdourWidgets::UIConfigurationBase::get_NormalFont
virtual Pango::FontDescription get_NormalFont() const =0
ArdourWidgets::UIConfigurationBase::get_ArdourSmallFont
virtual Pango::FontDescription get_ArdourSmallFont() const =0
ArdourWidgets::UIConfigurationBase::get_SmallFont
virtual Pango::FontDescription get_SmallFont() const =0
ArdourWidgets::UIConfigurationBase::~UIConfigurationBase
virtual ~UIConfigurationBase()
Definition:
libs/widgets/widgets/ui_config.h:36
PBD::Configuration
Definition:
configuration.h:35
colors.h
configuration.h
ArdourWidgets
Definition:
ardour_ui.h:192
Gtkmm2ext::Color
uint32_t Color
Definition:
colors.h:33
visibility.h
LIBWIDGETS_API
#define LIBWIDGETS_API
Definition:
widgets/widgets/visibility.h:39
libs
widgets
widgets
ui_config.h
Generated on Wed Dec 25 2024 05:44:56 for Ardour by
1.9.1