mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
5a4ade857a
The port to use ClutterPaintNodes basically mirrors what it currently does, with the major benefit of not depending on cogl_get_draw_framebuffer() anymore. There are various factors that influence the number of subnodes: * The background color adds a color subnode; * The selection adds a clip subnode, and a color subnode, or a color and a text subnode; The simplest case is when the text does not overflow and has no background color nor selection. In that case, the render tree is simply: [ Dummy ] ↓ [ Text ] In contrast, the most complex case is when drawing the text with selection, in which case the render tree looks like: [ Dummy ] ↓ [ Clip ] ↓ [ Text ] → [ Clip ] ↓ [ Color ] → [ Text ] Since the selection may have another text color, the selected text must be rendered again, but clipped to only cover the selection rectangle. This is suboptimal, but it's what the current code already does anyway. |
||
---|---|---|
.. | ||
build | ||
clutter | ||
examples | ||
tests | ||
.gitignore | ||
configure.ac | ||
Makefile.am |