diff options
author | Joel Bodenmann <joel@seriouslyembedded.com> | 2015-11-06 22:52:50 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@seriouslyembedded.com> | 2015-11-06 22:52:50 +0100 |
commit | 98f360947014dd3ba562190cd654919034f9f176 (patch) | |
tree | 6369f2aa0a33c9538301c9044a60f17930316ebb /src/gwin/gwin_label.c | |
parent | e8a769c3823eef72a9e064d3bf992152ed261ad2 (diff) | |
download | uGFX-98f360947014dd3ba562190cd654919034f9f176.tar.gz uGFX-98f360947014dd3ba562190cd654919034f9f176.tar.bz2 uGFX-98f360947014dd3ba562190cd654919034f9f176.zip |
Adding gwinLabelSetJustification() as it costs basically nothing
Diffstat (limited to 'src/gwin/gwin_label.c')
-rw-r--r-- | src/gwin/gwin_label.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gwin/gwin_label.c b/src/gwin/gwin_label.c index c8a9a0f0..f979bdd8 100644 --- a/src/gwin/gwin_label.c +++ b/src/gwin/gwin_label.c @@ -112,6 +112,15 @@ GHandle gwinGLabelCreate(GDisplay *g, GLabelObject *widget, GWidgetInit *pInit, return (GHandle)widget; } +void gwinLabelSetJustification(GHandle gh, justify_t justify) +{ + // is it a valid handle? + if (gh->vmt != (gwinVMT *)&labelVMT) + return; + + gh2obj->justify = justify; +} + void gwinLabelSetBorder(GHandle gh, bool_t border) { // is it a valid handle? if (gh->vmt != (gwinVMT *)&labelVMT) |