edelib 1.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List

ColorDb.h
1 /*
2 * $Id: String.h 2839 2009-09-28 11:36:20Z karijes $
3 *
4 * X11 color database reader
5 * Copyright (c) 2005-2011 edelib authors
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this library. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef __EDELIB_COLORDB_H__
22 #define __EDELIB_COLORDB_H__
23
24 #include "edelib-global.h"
25
26 EDELIB_NS_BEGIN
27
28 struct ColorDb_P;
29
37 class EDELIB_API ColorDb {
38 private:
39 ColorDb_P *priv;
40 E_DISABLE_CLASS_COPY(ColorDb)
41 public:
43 ColorDb();
44
46 ~ColorDb();
47
52 bool load(void);
53
57 bool load(const char *file);
58
62 bool find(const char *name, unsigned char &r, unsigned char &g, unsigned char &b);
63 };
64
65 EDELIB_NS_END
66 #endif
67