Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdkpango.h
Go to the documentation of this file.
1/* GDK - The GIMP Drawing Kit
2 * Copyright (C) 2000 Red Hat, Inc.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#pragma once
19
20#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
21#error "Only <gdk/gdk.h> can be included directly."
22#endif
23
24#include <gdk/gdktypes.h>
25
27
28/* Get a clip region to draw only part of a layout or
29 * line. index_ranges contains alternating range starts/stops. The
30 * region is the region which contains the given ranges, i.e. if you
31 * draw with the region as clip, only the given ranges are drawn.
32 */
33
36 int x_origin,
37 int y_origin,
38 const int *index_ranges,
39 int n_ranges);
42 int x_origin,
43 int y_origin,
44 const int *index_ranges,
45 int n_ranges);
46
48
struct _cairo_region cairo_region_t
Definition cairo.h:3244
#define GDK_AVAILABLE_IN_ALL
GDK_AVAILABLE_IN_ALL cairo_region_t * gdk_pango_layout_get_clip_region(PangoLayout *layout, int x_origin, int y_origin, const int *index_ranges, int n_ranges)
G_BEGIN_DECLS GDK_AVAILABLE_IN_ALL cairo_region_t * gdk_pango_layout_line_get_clip_region(PangoLayoutLine *line, int x_origin, int y_origin, const int *index_ranges, int n_ranges)
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
typedefG_BEGIN_DECLS struct _PangoLayout PangoLayout