|
Packit |
5e0819 |
/*
|
|
Packit |
5e0819 |
* Copyright (C) 2001 Havoc Pennington
|
|
Packit |
5e0819 |
* Copyright (C) 2016 Alberts Muktupāvels
|
|
Packit |
5e0819 |
*
|
|
Packit |
5e0819 |
* This program is free software: you can redistribute it and/or modify
|
|
Packit |
5e0819 |
* it under the terms of the GNU General Public License as published by
|
|
Packit |
5e0819 |
* the Free Software Foundation, either version 2 of the License, or
|
|
Packit |
5e0819 |
* (at your option) any later version.
|
|
Packit |
5e0819 |
*
|
|
Packit |
5e0819 |
* This program is distributed in the hope that it will be useful,
|
|
Packit |
5e0819 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
5e0819 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
5e0819 |
* GNU General Public License for more details.
|
|
Packit |
5e0819 |
*
|
|
Packit |
5e0819 |
* You should have received a copy of the GNU General Public License
|
|
Packit |
5e0819 |
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
5e0819 |
*/
|
|
Packit |
5e0819 |
|
|
Packit |
5e0819 |
#ifndef META_COLOR_SPEC_PRIVATE_H
|
|
Packit |
5e0819 |
#define META_COLOR_SPEC_PRIVATE_H
|
|
Packit |
5e0819 |
|
|
Packit |
5e0819 |
#include <gtk/gtk.h>
|
|
Packit |
5e0819 |
|
|
Packit |
5e0819 |
G_BEGIN_DECLS
|
|
Packit |
5e0819 |
|
|
Packit |
5e0819 |
typedef enum _MetaColorSpecType MetaColorSpecType;
|
|
Packit |
5e0819 |
typedef enum _MetaGtkColorComponent MetaGtkColorComponent;
|
|
Packit |
5e0819 |
typedef struct _MetaColorSpec MetaColorSpec;
|
|
Packit |
5e0819 |
|
|
Packit |
5e0819 |
G_GNUC_INTERNAL
|
|
Packit |
5e0819 |
MetaColorSpec *meta_color_spec_new (MetaColorSpecType type);
|
|
Packit |
5e0819 |
|
|
Packit |
5e0819 |
G_GNUC_INTERNAL
|
|
Packit |
5e0819 |
MetaColorSpec *meta_color_spec_new_from_string (const gchar *str,
|
|
Packit |
5e0819 |
GError **error);
|
|
Packit |
5e0819 |
|
|
Packit |
5e0819 |
G_GNUC_INTERNAL
|
|
Packit |
5e0819 |
MetaColorSpec *meta_color_spec_new_gtk (MetaGtkColorComponent component,
|
|
Packit |
5e0819 |
GtkStateFlags state);
|
|
Packit |
5e0819 |
|
|
Packit |
5e0819 |
G_GNUC_INTERNAL
|
|
Packit |
5e0819 |
void meta_color_spec_free (MetaColorSpec *spec);
|
|
Packit |
5e0819 |
|
|
Packit |
5e0819 |
G_GNUC_INTERNAL
|
|
Packit |
5e0819 |
void meta_color_spec_render (MetaColorSpec *spec,
|
|
Packit |
5e0819 |
GtkStyleContext *context,
|
|
Packit |
5e0819 |
GdkRGBA *color);
|
|
Packit |
5e0819 |
|
|
Packit |
5e0819 |
G_GNUC_INTERNAL
|
|
Packit |
5e0819 |
gboolean meta_gtk_state_from_string (const gchar *str,
|
|
Packit |
5e0819 |
GtkStateFlags *state);
|
|
Packit |
5e0819 |
|
|
Packit |
5e0819 |
G_END_DECLS
|
|
Packit |
5e0819 |
|
|
Packit |
5e0819 |
#endif
|