yambar/particles
Daniel Eklöf 5a0d192ec1 particle/string: re-use glyphs calculated in begin_expose()
In begin_expose(), we call cairo_scaled_font_text_to_glyphs()
with (x,y) = (0,0), in order to calculate the glyph extents (needed
for width calculation).

Then, in expose(), we called it again, but with correct (x,y) offsets.

Simplify this, by caching the glyphs from begin_expose(). Then, in
expose(), simply adjust the glyph offsets before calling
cairo_show_text_glyphs().
2019-01-20 10:02:13 +01:00
..
CMakeLists.txt allow plugins to be compiled into the f00bar main binary 2019-01-14 20:57:03 +01:00
dynlist.c particle/dynlist: link particle-sdk PRIVATE:ly 2019-01-13 21:45:49 +01:00
dynlist.h particle/dynlist: link particle-sdk PRIVATE:ly 2019-01-13 21:45:49 +01:00
empty.c allow plugins to be compiled into the f00bar main binary 2019-01-14 20:57:03 +01:00
list.c particle/list: disable debug 2019-01-15 19:15:57 +01:00
map.c allow plugins to be compiled into the f00bar main binary 2019-01-14 20:57:03 +01:00
progress-bar.c allow plugins to be compiled into the f00bar main binary 2019-01-14 20:57:03 +01:00
ramp.c particle/ramp: value is *also* offsetted by the minimum value 2019-01-19 20:17:26 +01:00
string.c particle/string: re-use glyphs calculated in begin_expose() 2019-01-20 10:02:13 +01:00