ERIS CORE

◆ render()

void ControlSlider::render ( )
inlineoverrideprotectedvirtual

render loop

Reimplemented from AppBaseClass.

Definition at line 42 of file ControlSlider.h.

42  {
43  is_dirty = true;
44  if (is_dirty){
45  int16_t marker = w*((float)value/100.0);
46  draw->fillRoundRect(x+1, y, marker+2, h/2 + 4,4, am->data->read("UI_SLIDER_FILL_COLOR"));
47  draw->fillRoundRect(x+1, y+ h/2, marker+2, h/2,4, am->data->read("UI_SLIDER_SHADE_COLOR"));
48  draw->drawRoundRect(x,y,w,h,4,am->data->read("UI_SLIDER_BORDER_COLOR"));
49  draw->setTextColor(am->data->read("UI_SLIDER_TEXT_COLOR"));
50  draw->setCursor(x+(w/2),y+(h/2),true);
51  draw->print(text);
52  is_dirty = false;
53  }
54  };
AppManager * am
Definition: AppBaseClass.h:38
ILI9341_t3_ERIS * draw
Definition: AppBaseClass.h:41
SvcDataDictionary * data
Definition: AppManager.h:63
char text[MAX_TEXT_LENGTH]
Definition: ControlSlider.h:36
int32_t read(const char *key)
returns the int32_t value of the record

References AppBaseClass::am, AppManager::data, AppBaseClass::draw, AppBaseClass::h, is_dirty, SvcDataDictionary::read(), text, value, AppBaseClass::w, AppBaseClass::x, and AppBaseClass::y.

+ Here is the call graph for this function: