built-in style configurations
This commit is contained in:
@@ -25,15 +25,15 @@
|
||||
|
||||
typedef enum
|
||||
{
|
||||
LV_LAYOUT_OFF = 0,
|
||||
LV_LAYOUT_COL_L,
|
||||
LV_LAYOUT_COL_M,
|
||||
LV_LAYOUT_COL_R,
|
||||
LV_LAYOUT_ROW_T,
|
||||
LV_LAYOUT_ROW_M,
|
||||
LV_LAYOUT_ROW_B,
|
||||
LV_LAYOUT_CENTER,
|
||||
}lv_layout_t;
|
||||
LV_RECT_LAYOUT_OFF = 0,
|
||||
LV_RECT_LAYOUT_CENTER,
|
||||
LV_RECT_LAYOUT_COL_L, /*Column left align*/
|
||||
LV_RECT_LAYOUT_COL_M, /*Column middle align*/
|
||||
LV_RECT_LAYOUT_COL_R, /*Column right align*/
|
||||
LV_RECT_LAYOUT_ROW_T, /*Row row left align*/
|
||||
LV_RECT_LAYOUT_ROW_M, /*Row row middle align*/
|
||||
LV_RECT_LAYOUT_ROW_B, /*Row row right align*/
|
||||
}lv_rect_layout_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@@ -41,10 +41,10 @@ typedef struct
|
||||
color_t gcolor;
|
||||
color_t bcolor;
|
||||
uint16_t bwidth;
|
||||
uint16_t round;
|
||||
cord_t hpad;
|
||||
cord_t vpad;
|
||||
cord_t opad;
|
||||
uint16_t round;
|
||||
uint8_t bopa;
|
||||
uint8_t empty :1;
|
||||
}lv_rects_t;
|
||||
@@ -52,9 +52,9 @@ typedef struct
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint8_t hfit_en:1;
|
||||
uint8_t vfit_en:1;
|
||||
lv_layout_t layout;
|
||||
uint8_t layout :5;
|
||||
uint8_t hfit_en :1;
|
||||
uint8_t vfit_en :1;
|
||||
}lv_rect_ext_t;
|
||||
|
||||
typedef enum
|
||||
@@ -72,11 +72,11 @@ lv_obj_t* lv_rect_create(lv_obj_t* par_dp, lv_obj_t * copy_dp);
|
||||
bool lv_rect_signal(lv_obj_t* obj_dp, lv_signal_t sign, void * param);
|
||||
|
||||
void lv_rect_set_fit(lv_obj_t * obj_dp, bool hor_en, bool ver_en);
|
||||
void lv_rect_set_layout(lv_obj_t * obj_dp, lv_layout_t layout);
|
||||
void lv_rect_set_layout(lv_obj_t * obj_dp, lv_rect_layout_t layout);
|
||||
|
||||
lv_layout_t lv_rect_get_layout(lv_obj_t * obj_dp);
|
||||
bool lv_rect_get_hpad_en(lv_obj_t * obj_dp);
|
||||
bool lv_rect_get_vpad_en(lv_obj_t * obj_dp);
|
||||
lv_rect_layout_t lv_rect_get_layout(lv_obj_t * obj_dp);
|
||||
bool lv_rect_get_hfit(lv_obj_t * obj_dp);
|
||||
bool lv_rect_get_vfit(lv_obj_t * obj_dp);
|
||||
|
||||
lv_rects_t * lv_rects_get(lv_rects_builtin_t style, lv_rects_t * copy_p);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user