Move R2D/precharge bar to custom container
This commit is contained in:
@ -0,0 +1,53 @@
|
||||
/*********************************************************************************/
|
||||
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
|
||||
/*********************************************************************************/
|
||||
#include <gui_generated/containers/ProgressBarBase.hpp>
|
||||
#include <texts/TextKeysAndLanguages.hpp>
|
||||
#include <touchgfx/Color.hpp>
|
||||
#include <images/BitmapDatabase.hpp>
|
||||
|
||||
ProgressBarBase::ProgressBarBase()
|
||||
{
|
||||
setWidth(456);
|
||||
setHeight(33);
|
||||
r2dProgressLabel.setPosition(168, -2, 219, 37);
|
||||
r2dProgressLabel.setColor(touchgfx::Color::getColorFromRGB(255, 255, 255));
|
||||
r2dProgressLabel.setLinespacing(0);
|
||||
r2dProgressLabel.setTypedText(touchgfx::TypedText(T___SINGLEUSE_6EXA));
|
||||
r2dProgressLabel.setVisible(false);
|
||||
add(r2dProgressLabel);
|
||||
|
||||
r2dLabel.setPosition(70, -2, 317, 37);
|
||||
r2dLabel.setColor(touchgfx::Color::getColorFromRGB(255, 255, 255));
|
||||
r2dLabel.setLinespacing(0);
|
||||
r2dLabel.setTypedText(touchgfx::TypedText(T___SINGLEUSE_570K));
|
||||
r2dLabel.setVisible(false);
|
||||
add(r2dLabel);
|
||||
|
||||
prechargeLabel.setXY(95, -2);
|
||||
prechargeLabel.setColor(touchgfx::Color::getColorFromRGB(255, 255, 255));
|
||||
prechargeLabel.setLinespacing(0);
|
||||
prechargeLabel.setTypedText(touchgfx::TypedText(T___SINGLEUSE_G2S2));
|
||||
prechargeLabel.setVisible(false);
|
||||
add(prechargeLabel);
|
||||
|
||||
progressBar.setXY(0, 0);
|
||||
progressBar.setProgressIndicatorPosition(0, 0, 480, 55);
|
||||
progressBar.setRange(0, 100);
|
||||
progressBar.setDirection(touchgfx::AbstractDirectionProgress::RIGHT);
|
||||
progressBar.setBackground(touchgfx::Bitmap(BITMAP_PROG_HORIZ_BG_ID));
|
||||
progressBar.setColor(touchgfx::Color::getColorFromRGB(99, 186, 0));
|
||||
progressBar.setValue(0);
|
||||
progressBar.setVisible(false);
|
||||
add(progressBar);
|
||||
}
|
||||
|
||||
ProgressBarBase::~ProgressBarBase()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void ProgressBarBase::initialize()
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user