Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gskstroke.h
Go to the documentation of this file.
1/*
2 * Copyright © 2020 Benjamin Otte
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: Benjamin Otte <otte@gnome.org>
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_STROKE (gsk_stroke_get_type ())
32
36GskStroke * gsk_stroke_new (float line_width);
41
44 gconstpointer stroke2);
45
48 float line_width);
53 GskLineCap line_cap);
58 GskLineJoin line_join);
61
64 float limit);
67
70 const float *dash,
71 gsize n_dash);
73const float * gsk_stroke_get_dash (const GskStroke *self,
74 gsize *n_dash);
75
78 float offset);
81
84 cairo_t *cr);
85
87
struct _cairo cairo_t
Definition cairo.h:135
#define GDK_AVAILABLE_IN_4_14
unsigned long gsize
Definition glibconfig.h:83
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
#define G_DEFINE_AUTOPTR_CLEANUP_FUNC(TypeName, func)
Definition gmacros.h:1400
GskLineJoin
Definition gskenums.h:303
GskLineCap
Definition gskenums.h:273
GDK_AVAILABLE_IN_4_14 void gsk_stroke_set_line_width(GskStroke *self, float line_width)
GDK_AVAILABLE_IN_4_14 void gsk_stroke_set_miter_limit(GskStroke *self, float limit)
GDK_AVAILABLE_IN_4_14 void gsk_stroke_free(GskStroke *self)
GDK_AVAILABLE_IN_4_14 void gsk_stroke_set_dash(GskStroke *self, const float *dash, gsize n_dash)
GDK_AVAILABLE_IN_4_14 GskLineCap gsk_stroke_get_line_cap(const GskStroke *self)
GDK_AVAILABLE_IN_4_14 float gsk_stroke_get_dash_offset(const GskStroke *self)
GDK_AVAILABLE_IN_4_14 void gsk_stroke_set_line_join(GskStroke *self, GskLineJoin line_join)
GDK_AVAILABLE_IN_4_14 void gsk_stroke_set_line_cap(GskStroke *self, GskLineCap line_cap)
GDK_AVAILABLE_IN_4_14 GskStroke * gsk_stroke_copy(const GskStroke *other)
GDK_AVAILABLE_IN_4_14 void gsk_stroke_set_dash_offset(GskStroke *self, float offset)
GDK_AVAILABLE_IN_4_14 gboolean gsk_stroke_equal(gconstpointer stroke1, gconstpointer stroke2)
GDK_AVAILABLE_IN_4_14 GType gsk_stroke_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_4_14 GskLineJoin gsk_stroke_get_line_join(const GskStroke *self)
GDK_AVAILABLE_IN_4_14 float gsk_stroke_get_line_width(const GskStroke *self)
GDK_AVAILABLE_IN_4_14 GskStroke * gsk_stroke_new(float line_width)
GDK_AVAILABLE_IN_4_14 float gsk_stroke_get_miter_limit(const GskStroke *self)
GDK_AVAILABLE_IN_4_14 const float * gsk_stroke_get_dash(const GskStroke *self, gsize *n_dash)
GDK_AVAILABLE_IN_4_14 void gsk_stroke_to_cairo(const GskStroke *self, cairo_t *cr)
struct _GskStroke GskStroke
Definition gsktypes.h:35
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
const void * gconstpointer
Definition gtypes.h:110