GUI parts for DISCO-F746NG. GuiBase, Button, ButtonGroup, Label, BlinkLabel, NumericLabel, SeekBar, SeekbarGroup
Dependents: F746_SD_GraphicEqualizer_ren0620
Fork of F746_GUI by
Diff: Label.hpp
- Revision:
- 1:d1655f3c8717
- Parent:
- 0:a2686ef737c2
- Child:
- 2:d2f882d98f0a
--- a/Label.hpp Thu Mar 31 07:28:42 2016 +0000
+++ b/Label.hpp Sun Apr 03 10:36:27 2016 +0000
@@ -1,7 +1,7 @@
//-----------------------------------------------------------
// Label class -- Header
//
-// 2016/03/28, Copyright (c) 2016 MIKAMI, Naoki
+// 2016/04/03, Copyright (c) 2016 MIKAMI, Naoki
//-----------------------------------------------------------
#ifndef F746_LABEL_HPP
@@ -22,11 +22,19 @@
uint32_t textColor = GuiBase::ENUM_TEXT,
uint32_t backColor = GuiBase::ENUM_BACK);
- void Draw(const string str);
+ void Draw()
+ { Draw(STR_, GuiBase::ENUM_TEXT); }
+
+ void Draw(uint32_t textColor)
+ { Draw(STR_, textColor); }
+
+ void Draw(const string str,
+ uint32_t textColor = GuiBase::ENUM_TEXT);
private:
const TextAlignMode MODE_;
-
+ const string STR_;
+
uint8_t length_;
uint16_t PosX(uint16_t x)
