1 /** 2 * @file lv_xml_button_parser.c 3 * 4 */ 5 6 /********************* 7 * INCLUDES 8 *********************/ 9 10 #include "lv_xml_button_parser.h" 11 #if LV_USE_XML 12 #include "../../../lvgl.h" 13 #include "../../../lvgl_private.h" 14 15 16 /********************* 17 * DEFINES 18 *********************/ 19 20 /********************** 21 * TYPEDEFS 22 **********************/ 23 24 /********************** 25 * STATIC PROTOTYPES 26 **********************/ 27 28 /********************** 29 * STATIC VARIABLES 30 **********************/ 31 32 /********************** 33 * MACROS 34 **********************/ 35 36 /********************** 37 * GLOBAL FUNCTIONS 38 **********************/ 39 lv_xml_button_create(lv_xml_parser_state_t * state,const char ** attrs)40void * lv_xml_button_create(lv_xml_parser_state_t * state, const char ** attrs) 41 { 42 LV_UNUSED(attrs); 43 44 void * item = lv_button_create(lv_xml_state_get_parent(state)); 45 46 return item; 47 } 48 lv_xml_button_apply(lv_xml_parser_state_t * state,const char ** attrs)49void lv_xml_button_apply(lv_xml_parser_state_t * state, const char ** attrs) 50 { 51 /*Apply the common properties, e.g. width, height, styles flags etc*/ 52 lv_xml_obj_apply(state, attrs); 53 } 54 55 /********************** 56 * STATIC FUNCTIONS 57 **********************/ 58 59 #endif /* LV_USE_XML */ 60