21 lines
1.1 KiB
C
Executable File
21 lines
1.1 KiB
C
Executable File
#ifndef UTILITY_FUNC_H
|
|
#define UTILITY_FUNC_H
|
|
|
|
#include "main.h"
|
|
|
|
lv_obj_t *createRoller(lv_obj_t *parent, char *options, int rows);
|
|
void createRollerOptions(int start, int finish, int step, uint8_t minWidth, char *dst, size_t len);
|
|
void createRollerOptionsPercent(int start, int finish, int step, uint8_t minWidth, char *dst, size_t len);
|
|
lv_obj_t *createSpinbox(lv_obj_t *parent, int min, int max, int step, int numDigits, int decimal);
|
|
lv_obj_t *createTempSetting(lv_obj_t *parent, char *label, lv_obj_t **tempLabel, lv_obj_t **spinbox);
|
|
lv_obj_t *createStateLine(lv_obj_t *parent, char *label, lv_obj_t **stateLabel);
|
|
void createPopup(lv_obj_t *parent, const char *text, bool addBtn, uint8_t id, PopupWindow_t *out);
|
|
void deletePopup(PopupWindow_t *popup);
|
|
void createSliderDescr(lv_obj_t *parent, char *text, lv_color_t color);
|
|
void createArrowDescr(lv_obj_t *parent, char *text, lv_color_t color, bool flip);
|
|
void createConditionerBtnMock(lv_obj_t *parent, char *text, lv_color_t color);
|
|
void createDateSetting(lv_obj_t *parent, const char *options, lv_obj_t **dd);
|
|
bool isLeapYear(uint16_t year);
|
|
|
|
#endif /* UTILITY_FUNC_H */
|