From 5d81aa2487f8a41d64ad49bd04f29850b2371dd0 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sat, 7 Nov 2015 00:51:23 +0100 Subject: Adding rendering functions to label widget to control text justification --- src/gwin/gwin_label.h | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'src/gwin/gwin_label.h') diff --git a/src/gwin/gwin_label.h b/src/gwin/gwin_label.h index aaacd253..d9abe0e0 100644 --- a/src/gwin/gwin_label.h +++ b/src/gwin/gwin_label.h @@ -117,14 +117,36 @@ void gwinLabelSetBorder(GHandle gh, bool_t border); */ /** - * @brief The default rendering function for the label widget + * @brief Renders a label with the text left jestified. + * + * @note This is the default rendering function. + * + * @param[in] gw The widget object (must be a label object) + * @param[in] param A parameter passed in from the user. Ignored by this function. + * + * @api + */ +void gwinLabelDrawJustifiedLeft(GWidgetObject *gw, void *param); + +/** + * @brief Renders a label with the text right jestified. + * + * @param[in] gw The widget object (must be a label object) + * @param[in] param A parameter passed in from the user. Ignored by this function. + * + * @api + */ +void gwinLabelDrawJustifiedRight(GWidgetObject *gw, void *param); + +/** + * @brief Renders a label with the text center jestified. * * @param[in] gw The widget object (must be a label object) * @param[in] param A parameter passed in from the user. Ignored by this function. * * @api */ -void gwinLabelDefaultDraw(GWidgetObject *gw, void *param); +void gwinLabelDrawJustifiedCenter(GWidgetObject *gw, void *param); /** @} */ -- cgit v1.2.3