Skip to content

Commit

Permalink
docs(others):update obj_property
Browse files Browse the repository at this point in the history
  • Loading branch information
MengYJ-M committed Jun 3, 2024
1 parent fed2b3f commit 05f3b51
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/others/obj_property.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ Two APIs are provided to get/set widget properties. It can be enabled by setting
int32_t num; /**< Number integer number (opacity, enums, booleans or "normal" numbers)*/
const void * ptr; /**< Constant pointers (font, cone text, etc)*/
lv_color_t color; /**< Colors*/
lv_style_value_t _style; /**< A place holder for style value which is same as property value.*/
lv_value_precise_t precise; /**< float or int for precise value*/
struct {
lv_style_value_t style; /**< Make sure it's the first element in struct. */
uint32_t selector; /**< Style selector, lv_part_t | lv_state_t */
};
};
} lv_property_t;
Expand All @@ -68,7 +72,11 @@ Two APIs are provided to get/set widget properties. It can be enabled by setting
int32_t num; /**< 整数数字(不透明度,枚举,布尔值或“正常”数字)*/
const void * ptr; /**< 常量指针(字体,文本等)*/
lv_color_t color; /**< 颜色*/
lv_style_value_t _style; /**< 样式值的占位符,与属性值相同。*/
lv_value_precise_t precise; /**< float或int表示精确值*/
struct {
lv_style_value_t style; /**< 确保它是结构中的第一个元素。 */
uint32_t selector; /**< 样式选择器, lv_part_t | lv_state_t */
};
};
} lv_property_t;
Expand Down

0 comments on commit 05f3b51

Please sign in to comment.