summaryrefslogtreecommitdiff
path: root/gtk/gtkcssdimensionvalue.c
Commit message (Collapse)AuthorAgeFilesLines
* css: Introduce the idea of dynamic valuesBenjamin Otte2018-03-161-0/+2
| | | | | | | Dynamic values are values that change their contents with the current (monotonic) time. This just introduces the GtkCssValue API for it.
* css: Merge GtkStyleProviderPrivate into GtkStyleProviderBenjamin Otte2017-10-311-9/+9
| | | | | | | | This is just lots of renaming. The interface remains private, so the public API does not change, apart from removing the definition of the Interface object to avoid subclassing.
* css: always get default font size in pixelsMatt Watson2016-04-121-12/+12
| | | | | | | | | | | | | | | Fixes a couple bugs... - Pixel font sizes in css would render as point sizes. - For em font sizes, where the parent size was set and not default, we would incorrectly convert a pixel value from points to pixels. We'll always grab the default font size in pixels so we don't keep confusing things. Worth noting that gtk css font-size will still behave differently than the web. Pango interprets font-size differently.
* css: Implement transitions for numbers of different unitsBenjamin Otte2016-02-131-16/+1
| | | | | | | We now can transition from 10px to 100%. Note that this requires a teensy tiny hack in gtk_css_value_transition(), but so be it.
* css: Add API to handle order when printing calc()Benjamin Otte2016-02-131-1/+29
| | | | | Also, add some tests and update old ones to print calc() statements correctly.
* css: Add support for sums to calc()Benjamin Otte2016-02-131-1/+20
| | | | | | | | | | This requires adding code to do math on number values: gtk_css_number_value_multiply() and gtk_css_number_value_try_add() were added to achieve that. Some tests are included.
* css: Turn number values into a virtual typeBenjamin Otte2016-02-131-0/+293
GtkCssNumberValue is now a base class for numbers. Actual numbers are now implemented in GtkCssDimensionValue. The name is borrowed from the CSS spec, so there.