aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/gwin_label.h
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@seriouslyembedded.com>2015-11-07 00:51:23 +0100
committerJoel Bodenmann <joel@seriouslyembedded.com>2015-11-07 00:51:23 +0100
commit5d81aa2487f8a41d64ad49bd04f29850b2371dd0 (patch)
treebd187c7df2086b332b6a66a87559ac518a466cfe /src/gwin/gwin_label.h
parentea4cadec78ba4e559f7fa1049f7d202e9e316fb7 (diff)
downloaduGFX-5d81aa2487f8a41d64ad49bd04f29850b2371dd0.tar.gz
uGFX-5d81aa2487f8a41d64ad49bd04f29850b2371dd0.tar.bz2
uGFX-5d81aa2487f8a41d64ad49bd04f29850b2371dd0.zip
Adding rendering functions to label widget to control text justification
Diffstat (limited to 'src/gwin/gwin_label.h')
-rw-r--r--src/gwin/gwin_label.h26
1 files changed, 24 insertions, 2 deletions
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);
/** @} */