Files
gio/ui
Elias Naur 86bc3e612d ui/text: use BlockOp as materials
Before this change, clients were expected to set up the current
material (color or image) before laying out Labels and Editors.
This was done to avoid garbage from a hypothetical material
interface covering both colors and images.

However, some widgets need more than one material: the Editor had
HintImage for the hint text material.

This change implements generalized materials through blocks:
anywhere a material is expected, a ui.BlockOp is is assumed to
contain the operation(s) needed for setting the desired material.

This way we avoid allocations (interfaces) and keep the
abstraction over material types.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-07-05 16:52:13 +02:00
..
2019-03-31 10:47:22 +02:00
2019-07-01 19:22:06 +02:00
2019-06-30 23:58:05 +02:00
2019-07-05 16:52:13 +02:00
2019-03-31 14:45:26 +02:00
2019-07-03 20:26:19 +02:00
2019-07-03 20:26:19 +02:00
2019-07-05 16:52:13 +02:00
2019-03-31 14:45:26 +02:00