Benjamin Otte
75f50dd939
path: Add gsk_path_measure_is_closed ()
2020-12-19 18:35:12 +01:00
Benjamin Otte
4708d17cb8
path: Add gsk_path_measure_restrict_to_contour()
2020-12-19 18:35:12 +01:00
Matthias Clasen
6e9bb79aa1
Add gsk_path_measure_get_{path,tolerance}
...
These are just nice apis to have and avoid having to carry
these around as extra arguments in many places.
This was showing up as inconvenience in writing tests
for the measure apis.
2020-12-19 18:35:12 +01:00
Matthias Clasen
de6c996b0b
Add gsk_path_get_stroke_bounds
...
A relatively cheap way to get bounds for the area
that would be affected by stroking a path.
2020-12-19 18:35:12 +01:00
Benjamin Otte
042d87ea7f
WIP: pathbuilder: Add gsk_path_builder_add_rounded_rect()
...
It works, but does not use a custom contour yet.
2020-12-19 18:34:42 +01:00
Benjamin Otte
ccbff7d27d
path: Add conic curves
...
So far this just adds the API, if you use it, you'll get lots of
g_warnings().
This will be fixed in future commits.
2020-12-19 18:34:42 +01:00
Benjamin Otte
410753353e
path: Rename to gtk_path_builder_add_segment()
...
It's about bulding paths, not about measuring them.
2020-12-19 18:34:42 +01:00
Benjamin Otte
1290639650
stroke: Add support for dashes
...
... and hook it up in the node parser and for Cairo rendering.
2020-12-19 18:34:42 +01:00
Benjamin Otte
8539f177b4
path: Add flags to gsk_path_foreach()
...
This way we can default to the siplest possible foreach() output - like
cairo_copy_path_flat() decomposing everything into lines - and add flags
to get more and more fancy.
This will be useful to have conics automatically decomposed for Cairo
drawing or if we want to add more line types in the future.
2020-12-19 18:34:42 +01:00
Matthias Clasen
b01e1a2ee8
Implement gsk_path_measure_in_fill
...
Implement this in the obvious way, using the decomposed form
of standard contours. Since the decomposed form is part of the
measure object, this api moves from gsk_path_in_fill to
gsk_path_measure_in_fill.
2020-12-19 18:34:42 +01:00
Matthias Clasen
81a23a0bbd
path: Implement gsk_path_parse
...
Implement the SVG path syntax to read back the strings
that we generate when serializing paths. The tests for
this code are taken from librsvg.
This includes an elliptical arc implementation according
to the SVG spec. The code is mostly taken from librsvg,
but pretty directly follows the SVG spec implementation
notes. We don't export this, since the parametrization
is inconvenient. We do want an arc_to API, but
these are not the arcs we are looking for.
2020-12-19 18:34:42 +01:00
Matthias Clasen
7da5e494e4
stroke: Add miter limit
...
Add a miter limit to GskStroke. This will be needed to
fully implement line joins.
Also introduce the GSK_LINE_JOIN_MITER_CLIP value,
following SVG 2.0. cairo does not have it, so translate
it to plain miter when using cairo.
2020-12-19 18:34:42 +01:00
Benjamin Otte
b4982b6cf3
pathbuilder: Add relative path commands
...
And gsk_path_builder_get_current_point().
They will be needed by the string parser.
2020-12-19 18:34:42 +01:00
Benjamin Otte
afa8cfa44c
path: Add gsk_path_measure_get_closest_point()
...
... and gsk_path_measure_get_closest_point_full().
Those 2 functions allow finding the closest point on a path to a given
point.
2020-12-19 06:41:22 +01:00
Benjamin Otte
a300002431
path: Add gsk_path_measure_get_point()
...
Allows querying the coordinates and direction of any specific point on a
path.
2020-12-19 06:41:21 +01:00
Matthias Clasen
86617e0eb7
path: Add gsk_path_add_circle()
...
Adds a circle contour, too.
2020-12-19 06:41:21 +01:00
Benjamin Otte
f607314bb4
pathmeasure: Implement support for beziers
...
Instead of treating bezier curves as lines, we properly decompose them
into line segments now so that we can treat those as lines.
2020-12-19 06:41:21 +01:00
Benjamin Otte
66f1774c56
path: Add gsk_path_foreach()
2020-12-19 06:41:21 +01:00
Benjamin Otte
57a2b23025
pathmeasure: Add gsk_path_measure_add_segment()
...
This allows chunking paths, weeee.
2020-12-19 06:41:21 +01:00
Benjamin Otte
9c316dd7e4
path: Add gsk_path_builder_add_path()
2020-12-19 06:41:21 +01:00
Benjamin Otte
836b78e543
gsk: Add GskPathMeasure
...
An object to do measuring operations on paths - determining their
length, cutting off subpaths, things like that.
2020-12-19 06:41:21 +01:00
Benjamin Otte
a49ca1209e
snapshot: Add gtk_snapshot_push_stroke()
2020-12-19 06:41:21 +01:00
Benjamin Otte
5244b51457
gsk: Add GskStroke
...
It's unused in this commit. This just prepares the new object.
2020-12-19 06:41:21 +01:00
Benjamin Otte
f15c9d134e
snapshot: Add gtk_snapshot_push_fill()
2020-12-19 06:41:21 +01:00
Benjamin Otte
c3166d8a49
gsk: Add GskFillNode
...
Take a rendernode as source and a GskPath and fill the region in the
path just like cairo_fill() would.
2020-12-19 06:41:21 +01:00
Benjamin Otte
6f453d6229
gsk: Add GskPath
2020-12-19 06:41:21 +01:00
Benjamin Otte
7fbaa41281
docs: Put render nodes in their own sections
2020-12-19 06:41:21 +01:00
Sebastian Keller
02f0681344
settings: Change gtk-cursor-aspect-ratio from float to double
...
Float properties can not be read from keyfiles. This was causing changes
to this property in settings.ini to be ignored. Fix this by changing it
to a double.
Technically this change could be considered an API break, but there are
no users of this property as float yet and it is early enough to expect
there to never be any.
Also document this change in the 3 to 4 migration guide since in gtk 3
this setting will be kept a float.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3441
2020-12-16 22:35:36 +01:00
Emmanuele Bassi
9fa4c2f5b8
docs: Ignore gtkspinbuttonprivate.h
2020-12-16 16:29:01 +00:00
Emmanuele Bassi
73dda96711
docs: Add missing stanzas for gtk_test_accessible API
2020-12-16 16:29:01 +00:00
Emmanuele Bassi
d711acc954
docs: Ignore gtksorterprivate.h
2020-12-16 16:29:01 +00:00
Emmanuele Bassi
f24429e84a
docs: Remove private symbols
2020-12-16 16:29:00 +00:00
Emmanuele Bassi
fc4402b456
docs: Ignore gtkpasswordentryprivate.h
2020-12-16 16:29:00 +00:00
Emmanuele Bassi
344eb21bee
docs: Complete symbol coverage for GSK
...
100% symbol docs coverage.
241 symbols documented.
0 symbols incomplete.
0 not documented.
2020-12-16 16:29:00 +00:00
Emmanuele Bassi
4fb55b3270
docs: Complete symbol coverage for GDK
...
100% symbol docs coverage.
833 symbols documented.
0 symbols incomplete.
0 not documented.
What's left are just type system macros and windowing system opaque
structures.
2020-12-16 16:28:58 +00:00
Emmanuele Bassi
5d2278a5ca
docs: Add public symbols to the GTK reference
2020-12-15 16:21:20 +00:00
Emmanuele Bassi
ea5e186bb8
Hide GtkTextAttributes functions
...
The type is private, so making functions operating on it public is
pointless.
2020-12-15 16:20:21 +00:00
Emmanuele Bassi
3132b10bc0
docs: Add more private headers
2020-12-15 15:55:06 +00:00
Emmanuele Bassi
91bba794a6
docs: Add missing symbols to the GTK reference
2020-12-15 14:30:32 +00:00
Emmanuele Bassi
a6bd0c7eed
Remove stray mentions of GdkConfigureEvent
...
The event was removed, but some traces of it linger.
2020-12-15 13:58:52 +00:00
Emmanuele Bassi
ff351721b2
docs: Add missing symbols to the GDK reference
2020-12-15 13:47:40 +00:00
Emmanuele Bassi
f546e03d31
docs: Add missing symbols to the GSK reference
2020-12-15 13:35:19 +00:00
Emmanuele Bassi
bdbea0d037
docs: Add more ignored header for GSK
2020-12-15 13:31:02 +00:00
Emmanuele Bassi
99e0929d6c
build: Use a consistent style for Meson files
2020-12-15 12:46:59 +00:00
Emmanuele Bassi
08d52bee14
docs: Add note for the removal of GtkFileChooserButton
...
Point developers in the direction of GtkButton and GtkFileChooserNative.
2020-12-14 16:55:15 +00:00
Emmanuele Bassi
3c9a13e6cf
Update CODEOWNERS
...
Add me as the reference for the accessibility bits of the code base.
2020-12-11 23:42:25 +00:00
Emmanuele Bassi
b8a651df47
Share the popcount() fallback for MSVC
...
We use __builtin_popcount() in a couple of places, so it makes sense to
have it in one header.
2020-12-09 16:06:52 +00:00
Matthias Clasen
1f141c1953
Merge branch 'wip/surface-state-rework' into 'master'
...
Rework surface state and geometry computation
See merge request GNOME/gtk!2885
2020-12-08 15:38:36 +00:00
Matthias Clasen
3b69facf0b
Mention window sizes in the migration guide
2020-12-07 20:37:30 +01:00
Matthias Clasen
a6bc4c95b1
docs: Add gtk_window_is_fullscreen
2020-12-07 20:37:30 +01:00