summaryrefslogtreecommitdiff
path: root/gtk/gtksnapshot.c
Commit message (Collapse)AuthorAgeFilesLines
* Tweak the wordingMatthias Clasen2023-04-151-1/+1
|
* gtk: Improve documentation on returned nodes for snapshotMarco Trevisan (Treviño)2023-04-141-1/+8
| | | | Closes: #5747
* Fix gtk_snapshot_append_scaled_textureMatthias Clasen2023-03-131-5/+2
| | | | This was doing the wrong thing with transforms.
* rendernodepaintable: Allow the node to be NULLBenjamin Otte2023-03-051-2/+7
| | | | | This can happen when creating paintables from GtkSnapshot when nothing was drawn.
* Make mask nodes more versatileMatthias Clasen2023-02-141-2/+8
| | | | | Add a GskMaskMode enumeration and implement it in the GL and cairo renderers.
* Add gtk_snapshot_push_maskMatthias Clasen2023-02-121-0/+76
|
* Add gtk_snapshot_append_scaled_textureMatthias Clasen2023-02-111-0/+42
| | | | | This is the snapshot api corresponding to gsk_texture_scale_node_new.
* Fix spelling errorsMatthias Clasen2022-11-171-1/+1
| | | | These were pointed out by codespell.
* stylecontext: Deprecate most apisMatthias Clasen2022-10-121-1/+0
| | | | | | | The notable exception here are the global provider apis, which are needed in some form and don't have a replacement yet. Move them to gtkstyleprovider.[hc], so we can wholly deprecated gtkstylecontext.[hc].
* Deprecate gtk_snapshot_render apisMatthias Clasen2022-10-121-147/+0
| | | | | | | | | | Move the implementations from gtksnapshot.c to gtk/deprecated/gtkrender.c and deprecated these functions. We want to get rid of them. These functions are still used in some of our widgetry, so use G_GNUC_BEGIN/END_IGNORE_DEPRECATIONS around them.
* gtk: Rename some private headersMatthias Clasen2022-10-051-1/+1
| | | | | Improve the consistency of our private header naming, by add 'private' to a bunch of them.
* snapshot: Don't critical on disposeBenjamin Otte2022-08-011-1/+4
| | | | When there's remaining state that draws nothing, it returns no rendernode. So do a NULL-check before unreffing it.
* Fix g_object_new(GTK_TYPE_SNAPSHOT)Benjamin Otte2022-08-011-21/+16
| | | GJS apparent likes g_object_new() over actual constructors, so make that work.
* g-i: mark GtkSnapshot to_(node|paintable) as nullable Bilal Elmoussaoui2022-01-231-4/+4
| | | Fixes an upstream issue reported at https://github.com/gtk-rs/gtk4-rs/issues/845
* docs: Improve docs for gtksnapshot.cMaximiliano Sandoval R2022-01-051-34/+29
|
* Merge branch 'wip/baedert/for-master' into 'master'Matthias Clasen2021-10-181-1/+4
|\ | | | | | | | | Some fixes, hmm yes See merge request GNOME/gtk!4068
| * Ensure blur nodes have a positive blur radiusTimm Bäder2021-10-171-1/+4
| |
* | docs: CosmeticsMatthias Clasen2021-10-181-1/+1
|/ | | | Do a round of "the the" removal.
* gtk: fix Snapshot.push_shadow annotationBilal Elmoussaoui2021-10-121-1/+1
|
* Revert "gtk: Pass font options along"Matthias Clasen2021-09-041-12/+10
| | | | This reverts commit 062a15310aefd7feac19a5b7d2c3257d317dfff9.
* gtk: Pass font options alongMatthias Clasen2021-09-031-10/+12
| | | | | Pass the widget's font options along when we are creating text nodes.
* Merge branch 'transparent-optimizations' into 'master'Matthias Clasen2021-07-151-1/+7
|\ | | | | | | | | snapshot: Handle transparent opacity nodes correctly See merge request GNOME/gtk!3754
| * snapshot: Handle transparent opacity nodes correctlyMatthias Clasen2021-07-151-1/+7
| | | | | | | | | | | | | | Eliding totally transparent content from the node tree is not 100% correct, since filters can make things visible, so we need to at least preserve the bounds. We can do that by creating a transparent color node.
* | snapshot: Only compute start and end point if we have toTimm Bäder2021-07-151-14/+18
| | | | | | | | | | If the linear gradient results in a color node, we don't need the start and end point. Only declare and compute it if we need to.
* | snapshot: Replace trivial gradients with color nodesTimm Bäder2021-07-151-35/+96
|/ | | | Extend this to all existing gradient types
* gtk: Clean up docs syntaxMatthias Clasen2021-05-221-3/+3
| | | | Replace leftover gtk-doc syntax (#Type) with backquotes.
* introspection: Stop using allow-noneMatthias Clasen2021-05-201-3/+3
| | | | | allow-none has been deprecated for a long time already. Instead use optional and nullable everywhere.
* Documentation fixesMatthias Clasen2021-05-201-5/+5
| | | | | Mostly fixing up indentation of continuation lines, and other small cleanups.
* snapshot: Move sanity checks to a better placeBenjamin Otte2021-04-011-18/+17
| | | | | | | Fixes cases where the sanity checks would reject valid code, like when using GL shaders on a scaled transform. Fixes #3819
* snapshot: scale border widths when appending border nodesBenjamin Otte2021-04-011-1/+8
| | | | | Found by Matthias on IRC while arguing about GtkSnapshot being too complicated.
* snapshot: Convert docsMatthias Clasen2021-03-111-164/+190
|
* Move gtk_rounded_rect_scale_affine to the right placeMatthias Clasen2021-03-071-27/+5
| | | | | This function should live with the rest of the GskRoundedRect code in gskroundedrect.c.
* snapshot: fix warning when asserts are disabledChristian Hergert2021-02-101-1/+1
|
* gdkarray: Add a "stolen" boolean to splice()Benjamin Otte2020-12-241-2/+2
| | | | | | | If set to TRUE, does not call the free func for the removed items. This can be used to move items between arrays without having to do the refcounting dance.
* snapshot: Add gsk_snapshot_append_conic_gradient()Benjamin Otte2020-12-031-0/+60
|
* Blend nodes might have NULL top/bottom nodesEmmanuele Bassi2020-11-261-2/+4
| | | | | | We have code in place to handle a NULL node in the state when dealing with blend nodes, but we don't always check for NULL, which leads to warnings in the CSS Blend modes demo.
* snapshot: Add cleanup function to snapshot stateBenjamin Otte2020-11-171-23/+89
| | | | Otherwise we're leaking data in error cases.
* rendernode: Rename all gsk_render_node_peek_*() functionsBenjamin Otte2020-11-171-3/+3
| | | | Those are getters, they should be gsk_render_node_get_*() functions.
* Merge branch 'snapshot-stack-optimize' into 'master'Matthias Clasen2020-09-291-0/+2
|\ | | | | | | | | Minor optimizations to GtkSnapshot state stack See merge request GNOME/gtk!2641
| * snapshot: Preallocate and don't memset the state stackAlexander Larsson2020-09-291-0/+2
| | | | | | | | | | | | Most of the time the snapshot is less than 16 levels deep (did some testing in gtk-demo), so lets pre-allocate 16 levels of state stack to avoid the extra allocation most of the time.
* | snapshot: Document radial gradient apisMatthias Clasen2020-09-291-0/+28
|/
* GtkSnapshot: Add gtk_snapshot_push_glshader()Alexander Larsson2020-09-291-0/+199
|
* Merge branch 'wip/otte/for-master' into 'master'Matthias Clasen2020-09-281-2/+15
|\ | | | | | | | | snapshot: Don't flip textures See merge request GNOME/gtk!2633
| * snapshot: Don't flip texturesBenjamin Otte2020-09-281-2/+15
| | | | | | | | | | | | | | | | ... or gradients or borders or shadows. Instead, ensure that affines have non-negative scale factors. Otherwise add a transform node. The only place where this check is not necessary is color nodes, but special casing them seems not worth it.
* | snapshot: switch to h/vradiusMatthias Clasen2020-09-181-8/+8
| |
* | snapshot: Add api for radial gradientsMatthias Clasen2020-09-181-0/+76
|/ | | | These are the equivalents of the linear gradient apis.
* Replace "gdouble" with "double"Benjamin Otte2020-07-251-14/+14
|
* snapshot: Use collect_default directoy in push_debug()Timm Bäder2020-07-171-10/+11
| | | | | Instead of going through collect_debug and then doing a collect_default anyway if the message is NULL.
* snapshot: Use GdkArray for the state stackBenjamin Otte2020-07-161-21/+32
|
* snapshot: Port node list to GdkArrayBenjamin Otte2020-07-161-13/+15
|