ColorDb.h
/*
* $Id: String.h 2839 2009-09-28 11:36:20Z karijes $
*
* X11 color database reader
* Copyright (c) 2005-2011 edelib authors
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __EDELIB_COLORDB_H__
#define __EDELIB_COLORDB_H__
#include "edelib-global.h"
EDELIB_NS_BEGIN
struct ColorDb_P;
class EDELIB_API ColorDb {
private:
ColorDb_P *priv;
E_DISABLE_CLASS_COPY(ColorDb)
public:
ColorDb();
~ColorDb();
bool load(void);
bool load(const char *file);
bool find(const char *name, unsigned char &r, unsigned char &g, unsigned char &b);
};
EDELIB_NS_END
#endif
E_DISABLE_CLASS_COPY
#define E_DISABLE_CLASS_COPY(klass)
Definition: edelib-global.h:161
edelib::ColorDb
X11 color database.
Definition: ColorDb.h:37