libAlgAudio  v1.99-440-g08538e5-dirty
The development library for AlgAudio framework.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Theme.hpp
Go to the documentation of this file.
1 #ifndef THEME_HPP
2 #define THEME_HPP
3 /*
4 This file is part of AlgAudio.
5 
6 AlgAudio, Copyright (C) 2015 CeTA - Audiovisual Technology Center
7 
8 AlgAudio is free software: you can redistribute it and/or modify
9 it under the terms of the GNU Lesser General Public License as
10 published by the Free Software Foundation, either version 3 of the
11 License, or (at your option) any later version.
12 
13 AlgAudio 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
16 GNU Lesser General Public License for more details.
17 
18 You should have received a copy of the GNU Lesser General Public License
19 along with AlgAudio. If not, see <http://www.gnu.org/licenses/>.
20 */
21 #include "Color.hpp"
22 #include <map>
23 
24 namespace AlgAudio{
25 
26 class Theme{
27 public:
28  static void Init();
29  static const Color& Get(const std::string&);
30 private:
31  static std::map<std::string, Color> thememap;
32 };
33 
34 } // namespace AlgAudio
35 
36 #endif // THEME_HPP
Definition: Color.hpp:28
static void Init()
Definition: Theme.hpp:26
Definition: Alertable.hpp:26
static const Color & Get(const std::string &)