GUI parts for DISCO-F746NG. GuiBase, Button, ButtonGroup, Label, BlinkLabel, NumericLabel, SeekBar, SeekbarGroup
Dependents: F746_SD_GraphicEqualizer_ren0620
Fork of F746_GUI by
Diff: ButtonGroup.cpp
- Revision:
- 14:95544440b46c
- Parent:
- 3:fe6ff954824a
--- a/ButtonGroup.cpp Sat Apr 30 06:33:32 2016 +0000
+++ b/ButtonGroup.cpp Wed Jun 22 03:49:51 2016 +0000
@@ -15,6 +15,7 @@
uint16_t number, const string str[],
uint16_t spaceX, uint16_t spaceY,
uint16_t column, int touched,
+ bool expended,
sFONT &fonts,
uint32_t textColor, uint32_t backColor,
uint32_t createdColor, uint32_t touchedColor,
@@ -30,8 +31,9 @@
div_t u1 = div(n, column);
uint16_t x = x0 + u1.rem*(width + spaceX);
uint16_t y = y0 + u1.quot*(height + spaceY);
+ uint16_t xpend_detectArea = (expended? width*6 : 0);
buttons_[n] =
- new Button(x, y, width, height, str[n], fonts,
+ new Button(x, y, width, height, xpend_detectArea, str[n], fonts,
TEXT_COLOR_, BACK_COLOR_,
CREATED_COLOR_, TOUCHED_COLOR_,
INACTIVE_COLOR_, INACTIVE_TEXT_COLOR_);
