Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
pango-color.h
Go to the documentation of this file.
1/* Pango
2 * pango-color.h: A color struct
3 *
4 * Copyright (C) 2000 Red Hat Software
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
20 */
21
22#ifndef __PANGO_COLOR_H__
23#define __PANGO_COLOR_H__
24
25#include <pango/pango-types.h>
26#include <glib-object.h>
27
29
30
31typedef struct _PangoColor PangoColor;
32
33/**
34 * PangoColor:
35 * @red: value of red component
36 * @green: value of green component
37 * @blue: value of blue component
38 *
39 * The `PangoColor` structure is used to
40 * represent a color in an uncalibrated RGB color-space.
41 */
48
49#define PANGO_TYPE_COLOR (pango_color_get_type ())
50
53
56
59
62 const char *spec);
63
66 guint16 *alpha,
67 const char *spec);
68
70char *pango_color_to_string (const PangoColor *color);
71
72
74
75#endif /* __PANGO_COLOR_H__ */
unsigned short guint16
Definition glibconfig.h:49
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
PANGO_AVAILABLE_IN_1_16 char * pango_color_to_string(const PangoColor *color)
PANGO_AVAILABLE_IN_ALL PangoColor * pango_color_copy(const PangoColor *src)
PANGO_AVAILABLE_IN_ALL GType pango_color_get_type(void) G_GNUC_CONST
typedefG_BEGIN_DECLS struct _PangoColor PangoColor
Definition pango-color.h:31
PANGO_AVAILABLE_IN_1_46 gboolean pango_color_parse_with_alpha(PangoColor *color, guint16 *alpha, const char *spec)
PANGO_AVAILABLE_IN_ALL void pango_color_free(PangoColor *color)
PANGO_AVAILABLE_IN_ALL gboolean pango_color_parse(PangoColor *color, const char *spec)
#define PANGO_AVAILABLE_IN_1_16
#define PANGO_AVAILABLE_IN_1_46
#define PANGO_AVAILABLE_IN_ALL
guint16 red
Definition pango-color.h:44
guint16 blue
Definition pango-color.h:46
guint16 green
Definition pango-color.h:45