lvgl无法加载自定义字体,提示lv_draw_label.c.o:(.literal.lv_draw_label_dsc_init+0x0): undefined 切记,使用https://lvgl.io/tools/fontconverter生成字体时,字体名一定不能用数字结尾。 可以叫HarmonyOS30_Sans_SC_Medium,但一定不能叫HarmonyOS_Sans_SC_Medium30。
void(*draw_letter)(struct_lv_draw_ctx_t*draw_ctx,constlv_draw_label_dsc_t*dsc,constlv_point_t*pos_p, uint32_tletter); void(*draw_line)(struct_lv_draw_ctx_t*draw_ctx,constlv_draw_line_dsc_t*dsc,constlv_point_t*point1, constlv_point_t*point2); void(*draw_polygon)(struct_lv...
WHITEelselv.area_align(indic_area, txt_area, lv.ALIGN_OUT_RIGHT_MID,10,0)label_dsc.color=lv.COLOR_WHITEendvarlayer=event.get_layer()lv.draw_label(layer, label_dsc, txt_area)endbar.add_event_cb(bar_event, lv.EVENT_DRAW_MAIN_END,0)bar.set_value(20, lv.ANIM_OFF)...
static be_define_ctypes_class(lv_draw_label_dsc, &be_lv_draw_label_dsc, &be_class_ctypes_bytes, "lv_draw_label_dsc"); static be_define_ctypes_class(lv_draw_line_dsc, &be_lv_draw_line_dsc, &be_class_ctypes_bytes, "lv_draw_line_dsc"); static be_define_ctypes_class(lv_draw_rec...
lv_label_get_text_selection_end(ta->label) == LV_DRAW_LABEL_NO_TXT_SEL)) { return true; } else { return false; } #else (void)obj; /*Unused*/ return false; #endif } bool lv_textarea_get_text_selection(lv_obj_t * obj) ...
lv_draw_rect_dsc_init(&draw_dsc); draw_dsc.bg_color.full = debug_color.full; draw_dsc.bg_opa = LV_OPA_20; draw_dsc.border_width = 1; draw_dsc.border_opa = LV_OPA_30; draw_dsc.border_color = debug_color; lv_draw_rect(draw_ctx, &draw_dsc, &obj_coords_ext); ...
lv_canvas_draw_arc(canvas, x, y, radius, start_angle, end_angle, &draw_dsc) draw_dscis alv_draw_rect/label/img/line/arc_dsc_tvariable which should be first initialized with one oflv_draw_rect/label/img/line/arc_dsc_init()and then modified with the desired colors and other values....
/* Enable VG-Lite custom external 'gpu_init()' function */ #define LV_VG_LITE_USE_GPU_INIT 0 /* Enable VG-Lite assert. */ #define LV_VG_LITE_USE_ASSERT 0 /* VG-Lite flush commit trigger threshold. GPU will try to batch these many draw tasks. */ #define LV_VG_LITE_...
/* Draw using cached SDL textures*/ #define LV_USE_DRAW_SDL 0 /* Use VG-Lite GPU. */ #define LV_USE_DRAW_VG_LITE 0 #if LV_USE_DRAW_VG_LITE /* Enable VG-Lite custom external 'gpu_init()' function */ #define LV_VG_LITE_USE_GPU_INIT 0 /* Enable VG-Lite assert...
Set osoapClient = CreateObject("MSSOAP.SoapClient") osoapClient.mssoapinit "https://localhost/MyDataService/Service1.asmx?wsdl", "Service1", "Service1Soap" 'DOM object to load the results. Dim oXMLDoc As New MSXML2.DOMDocument Dim strdirname As String 'File to store ...