2020-01-18 12:17:52 -05:00
|
|
|
#include <cstdio>
|
|
|
|
#include <libs/date/includes/date/date.h>
|
|
|
|
#include <Components/DateTime/DateTimeController.h>
|
|
|
|
#include <Version.h>
|
2020-02-08 12:01:02 -05:00
|
|
|
#include <libs/lvgl/src/lv_core/lv_obj.h>
|
|
|
|
#include <libs/lvgl/lvgl.h>
|
2020-01-18 12:17:52 -05:00
|
|
|
#include "Message.h"
|
|
|
|
|
|
|
|
using namespace Pinetime::Applications::Screens;
|
|
|
|
|
2020-02-08 12:01:02 -05:00
|
|
|
lv_obj_t * label;
|
2020-01-18 12:17:52 -05:00
|
|
|
void Message::Refresh(bool fullRefresh) {
|
|
|
|
if(fullRefresh) {
|
2020-02-08 12:01:02 -05:00
|
|
|
lv_obj_t * btn = lv_btn_create(lv_scr_act(), NULL); /*Add a button the current screen*/
|
|
|
|
lv_obj_set_pos(btn, 10, 10); /*Set its position*/
|
|
|
|
lv_obj_set_size(btn, 100, 50); /*Set its size*/
|
|
|
|
label = lv_label_create(btn, NULL); /*Add a label to the button*/
|
|
|
|
lv_label_set_text(label, "Button"); /*Set the labels text*/
|
2020-01-18 12:17:52 -05:00
|
|
|
}
|
2020-02-08 12:01:02 -05:00
|
|
|
|
2020-01-18 12:17:52 -05:00
|
|
|
}
|