GUI parts for DISCO-F746NG. GuiBase, Button, ButtonGroup, Label, BlinkLabel, NumericLabel, SeekBar, SeekbarGroup
Dependents: F746_SD_GraphicEqualizer_ren0620
Fork of F746_GUI by
Diff: Button.hpp
- Revision:
- 14:95544440b46c
- Parent:
- 0:a2686ef737c2
--- a/Button.hpp Sat Apr 30 06:33:32 2016 +0000 +++ b/Button.hpp Wed Jun 22 03:49:51 2016 +0000 @@ -17,7 +17,7 @@ public: // Constructor Button(uint16_t x, uint16_t y, - uint16_t width, uint16_t height, + uint16_t width, uint16_t height, uint16_t x_Expand, const string str = "", sFONT &fonts = Font12, uint32_t textColor = GuiBase::ENUM_TEXT, uint32_t backColor = GuiBase::ENUM_BACK, @@ -29,7 +29,7 @@ textColor, backColor, createdColor, touchedColor, inactiveColor, inactiveTextColor), - W_(width), H_(height), STR_(str), active_(true) + W_(width), H_(height), X_expend(x_Expand), STR_(str), active_(true) { Draw(); } // Draw button @@ -53,7 +53,7 @@ static void SetMultiTouch(bool tf) { multiTouch_ = tf; } private: - const uint16_t W_, H_; + const uint16_t W_, H_, X_expend; const string STR_; bool active_;