Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gskpathpoint.h
Go to the documentation of this file.
1/*
2 * Copyright © 2023 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.1 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 * Authors: Matthias Clasen <mclasen@redhat.com>
18 */
19
20#pragma once
21
22#if !defined (__GSK_H_INSIDE__) && !defined (GTK_COMPILATION)
23#error "Only <gsk/gsk.h> can be included directly."
24#endif
25
26
27#include <gsk/gsktypes.h>
28
30
31#define GSK_TYPE_PATH_POINT (gsk_path_point_get_type ())
32
34
36{
37 /*< private >*/
38 union {
39 struct {
42 float t;
43 };
46 };
47};
48
51
54
57
60 const GskPathPoint *point2) G_GNUC_PURE;
61
64 const GskPathPoint *point2) G_GNUC_PURE;
65
68 GskPath *path,
69 graphene_point_t *position);
70
73 GskPath *path,
74 GskPathDirection direction,
75 graphene_vec2_t *tangent);
76
79 GskPath *path,
80 GskPathDirection direction);
81
84 GskPath *path,
85 GskPathDirection direction,
86 graphene_point_t *center);
87
90 GskPathMeasure *measure);
91
#define GDK_AVAILABLE_IN_4_14
unsigned long gsize
Definition glibconfig.h:83
#define G_GNUC_EXTENSION
Definition gmacros.h:64
#define G_GNUC_PURE
Definition gmacros.h:287
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
GskPathDirection
Definition gskenums.h:366
GDK_AVAILABLE_IN_4_14 GskPathPoint * gsk_path_point_copy(GskPathPoint *point)
GDK_AVAILABLE_IN_4_14 void gsk_path_point_get_tangent(const GskPathPoint *point, GskPath *path, GskPathDirection direction, graphene_vec2_t *tangent)
GDK_AVAILABLE_IN_4_14 float gsk_path_point_get_rotation(const GskPathPoint *point, GskPath *path, GskPathDirection direction)
GDK_AVAILABLE_IN_4_14 void gsk_path_point_free(GskPathPoint *point)
GDK_AVAILABLE_IN_4_14 int gsk_path_point_compare(const GskPathPoint *point1, const GskPathPoint *point2) G_GNUC_PURE
GDK_AVAILABLE_IN_4_14 GType gsk_path_point_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_4_14 float gsk_path_point_get_curvature(const GskPathPoint *point, GskPath *path, GskPathDirection direction, graphene_point_t *center)
GDK_AVAILABLE_IN_4_14 void gsk_path_point_get_position(const GskPathPoint *point, GskPath *path, graphene_point_t *position)
GDK_AVAILABLE_IN_4_14 float gsk_path_point_get_distance(const GskPathPoint *point, GskPathMeasure *measure)
GDK_AVAILABLE_IN_4_14 gboolean gsk_path_point_equal(const GskPathPoint *point1, const GskPathPoint *point2) G_GNUC_PURE
struct _GskPathMeasure GskPathMeasure
Definition gsktypes.h:30
struct _GskPath GskPath
Definition gsktypes.h:28
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
void * gpointer
Definition gtypes.h:109
graphene_vec4_t alignment
gpointer padding[8]