mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-13 20:30:11 +00:00
aa746bc0c8
This is mostly an empty shell for now. We only have static instances for srgb and srgb-linear, which we will use as markers during our node processing. In the future, this object may grow more instances, as well as the ability to create them from and save them to icc profiles or cicp data. And a color conversion API.
51 lines
1.6 KiB
C
51 lines
1.6 KiB
C
/* gdkcolorstate.h
|
|
*
|
|
* Copyright 2024 Red Hat, Inc.
|
|
*
|
|
* 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/>.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
|
#error "Only <gdk/gdk.h> can be included directly."
|
|
#endif
|
|
|
|
#include <gdk/gdktypes.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define GDK_TYPE_COLOR_STATE (gdk_color_state_get_type ())
|
|
|
|
GDK_AVAILABLE_IN_4_16
|
|
GType gdk_color_state_get_type (void) G_GNUC_CONST;
|
|
|
|
GDK_AVAILABLE_IN_4_16
|
|
GdkColorState * gdk_color_state_ref (GdkColorState *self);
|
|
|
|
GDK_AVAILABLE_IN_4_16
|
|
void gdk_color_state_unref (GdkColorState *self);
|
|
|
|
GDK_AVAILABLE_IN_4_16
|
|
GdkColorState * gdk_color_state_get_srgb (void);
|
|
|
|
GDK_AVAILABLE_IN_4_16
|
|
GdkColorState * gdk_color_state_get_srgb_linear (void);
|
|
|
|
GDK_AVAILABLE_IN_4_16
|
|
gboolean gdk_color_state_equal (GdkColorState *self,
|
|
GdkColorState *other);
|
|
|
|
G_END_DECLS
|