From e7f80ab4988ae46e83484fe2a4e520b750349e06 Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Thu, 4 Jan 2024 16:34:42 +0100 Subject: [PATCH] docs: Add a few missing details --- chafa/chafa-canvas.c | 2 ++ chafa/chafa-common.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/chafa/chafa-canvas.c b/chafa/chafa-canvas.c index dd9ee3b..7e1df27 100644 --- a/chafa/chafa-canvas.c +++ b/chafa/chafa-canvas.c @@ -1636,6 +1636,8 @@ chafa_canvas_peek_config (ChafaCanvas *canvas) * * The canvas will keep a reference to the placement until it is replaced or the * canvas itself is freed. + * + * Since: 1.14 */ void chafa_canvas_set_placement (ChafaCanvas *canvas, ChafaPlacement *placement) diff --git a/chafa/chafa-common.h b/chafa/chafa-common.h index efb54ba..b8606e2 100644 --- a/chafa/chafa-common.h +++ b/chafa/chafa-common.h @@ -73,6 +73,7 @@ ChafaPixelType; * @CHAFA_ALIGN_START: Align flush with beginning of the area (top or left in LTR locales). * @CHAFA_ALIGN_END: Align flush with end of the area (bottom or right in LTR locales). * @CHAFA_ALIGN_CENTER: Align in the middle of the area. + * @CHAFA_ALIGN_MAX: Last supported alignment, plus one. * * Alignment options when placing an element within an area. * @@ -94,6 +95,7 @@ ChafaAlign; * @CHAFA_TUCK_STRETCH: Resize element to fit the area exactly, changing its aspect ratio. * @CHAFA_TUCK_FIT: Resize element to fit the area, preserving its aspect ratio by adding padding. * @CHAFA_TUCK_SHRINK_TO_FIT: Like @CHAFA_TUCK_FIT, but prohibit enlargement. + * @CHAFA_TUCK_MAX: Last supported tucking policy, plus one. * * Resizing options when placing an element within an area. Usually used in conjunction * with #ChafaAlign to control the padding.