Ardour  9.0-pre0-582-g084a23a80d
cairo_theme.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2011-2016 Paul Davis <paul@linuxaudiosystems.com>
3  * Copyright (C) 2021 Robin Gareus <robin@gareus.org>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #ifndef _libgtkmm2ext_cairo_theme_h_
21 #define _libgtkmm2ext_cairo_theme_h_
22 
23 #include "gtkmm2ext/visibility.h"
24 
25 namespace Gtkmm2ext
26 {
27 
29 {
30 public:
31  static void set_flat_buttons (bool yn);
32  static void set_boxy_buttons (bool yn);
33  static void set_widget_prelight (bool yn);
34 
35  static bool flat_buttons ()
36  {
37  return _flat_buttons;
38  }
39 
40  static bool boxy_buttons ()
41  {
42  return _boxy_buttons;
43  }
44 
45  static bool widget_prelight ()
46  {
47  return _widget_prelight;
48  }
49 
50 private:
51  static bool _flat_buttons;
52  static bool _boxy_buttons;
53  static bool _widget_prelight;
54 };
55 
56 } // namespace Gtkmm2ext
57 #endif
static void set_widget_prelight(bool yn)
static void set_boxy_buttons(bool yn)
static void set_flat_buttons(bool yn)
static bool flat_buttons()
Definition: cairo_theme.h:35
static bool boxy_buttons()
Definition: cairo_theme.h:40
static bool _flat_buttons
Definition: cairo_theme.h:51
static bool _boxy_buttons
Definition: cairo_theme.h:52
static bool _widget_prelight
Definition: cairo_theme.h:53
static bool widget_prelight()
Definition: cairo_theme.h:45
#define LIBGTKMM2EXT_API