summaryrefslogtreecommitdiff
path: root/gtk/gtkcssshadowsvalueprivate.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove GtkCssShadowsValueTimm Bäder2020-01-181-59/+0
| | | | | | | | | Previously, we wrapped all GtkCssShadowValues in a GtkCssShadowsValue, even if it was just one shadow. This causes an unnecessary bloat in css values. Make each GtkCssShadowValue able to handle multiple shadows instead, and use gtk_css_shadow_value* API everywhere.
* gtk: Don't include gtkstylecontext.h from gtkcsstypesprivate.hBenjamin Otte2019-03-191-0/+1
| | | | And make sure it's included everywhere it's needed.
* shadowvalue: Remove unused APITimm Bäder2019-01-101-3/+0
|
* render: Make gtk_render_background() use the snapshot APIBenjamin Otte2018-07-241-4/+0
| | | | This removes a lot of duplicated code.
* render: Make gtk_render_layout() use the snapshot APIBenjamin Otte2018-07-241-4/+0
| | | | This removes a lot of duplicated code.
* Avoid creating trivial shadow nodesMatthias Clasen2017-10-281-0/+2
| | | | | | The Vulkan renderer creates a fallback surface for each shadow node, even if we end up not rendering anything to it. Avoiding this is a nice optimization.
* cssshadowsvalue: Don't heap-allocate shadowsTimm Bäder2017-10-011-2/+4
| | | | | | | This showed up in profiles in certain scenarios, so export a _get_n_shadows getter instead and let callers provide a sufficiently large allocated array of GskShadows, which we can use with g_alloc/g_newa.
* gsk: Add GskShadowNodeBenjamin Otte2016-12-201-0/+3
| | | | | | | ... and make the icon rendering code use it. This requires moving even more shadow renering code into GSK, but so be it. At least the "shadows not implemented" warning is now gone!
* gtk: Remove GtkRoundedBox structBenjamin Otte2016-12-201-3/+3
| | | | Use GskRoundedRect instead.
* render: Propagate snapshot drawing to box shadowsBenjamin Otte2016-11-191-0/+6
| | | | | | | This decouples actual background drawing from shadow drawing in the snapshot case. We also now create seperate nodes for shadows vs for backgrounds.
* render: Remove spinner special-casesBenjamin Otte2015-01-201-4/+0
| | | | | | | | | The spinner is a regular builtin image now. There is no need to go through the shadows code manually anymore as regular items do get shadows automatically. This also allows simplifying the actual spinner drawing code so that it actually works.
* css: Parse text-shadow values properlyBenjamin Otte2014-06-101-1/+2
| | | | | | We used to accept the same syntax for text-shadow and icon-shadow as we accept for box-shadow. However, box-shadow does accept a spread and the inset keyword while the others should not.
* themingengine: Draw "icon-shadow" on iconsBenjamin Otte2014-05-141-0/+2
|
* cssshadow: add a method to get the size of a shadows valueCosimo Cecchi2013-04-221-0/+3
| | | | The method returns the size of each side of a GtkCssShadowsValue.
* cds: enable outset shadowsChris Cummins2013-04-091-1/+2
| | | | | | | | | | Adds conditional code paths to GdkCssShadowValue for painting outset shadows, and allows shadows to be applied in two passes (first outset then inset). This can be used to draw csd shadows in outer window borders. https://bugzilla.gnome.org/show_bug.cgi?id=695998 Signed-off-by: Rob Bradford <rob@linux.intel.com>
* css: Introduce _gtk_css_value_compute()Benjamin Otte2012-08-281-3/+0
| | | | | | | This commit is essentially a large reorganization. Instead of all value subtypes having their own compute function, there is the general _gtk_css_value_compute() function that then calls a vfunc on the subtype.
* cssvalue: Add GtkCssShadowsValueBenjamin Otte2012-04-171-0/+56
This is necessary because shadows get treated differently from other lists when transitioning.