aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index 2269a70..4956896 100644
--- a/README.md
+++ b/README.md
@@ -264,6 +264,9 @@ carries the primitives it should use rather than reaching for Cairo directly:
to a right edge.
- `notice(cr, inner, colors, title, note, hint)` draws the no-data face every
cached card shares when its sampler has not run.
+- `title(cr, x, y, icon, text, colors)` draws a card title: the icon in
+ `highlight`, the text in `label`. `title_str(icon, text)` returns the same run
+ as a string, for `fit_unit` to measure. The glyphs live in `card.ICON`.
- `measure(cr, s)` returns the **ink** size, what the glyphs actually cover. Use
it to centre or right-align.
- `advance(cr, s)` returns the **x_advance**, how far the cursor moves after