Lines Matching refs:p
368 def obj_style_get(p): argument
369 if 'section' in p: return
371 cast = style_get_cast(p['style_type'], p['var_type'])
372 …print("static inline " + p['var_type'] + " lv_obj_get_style_" + p['name'].lower() +"(const struct …
374 print(" lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_" + p['name'] + ");")
375 print(" return " + cast + "v." + p['style_type'] + ";")
379 if 'filtered' in p and p['filtered']:
380 …print("static inline " + p['var_type'] + " lv_obj_get_style_" + p['name'].lower() +"_filtered(cons…
382 …tyle_apply_color_filter(obj, part, lv_obj_get_style_prop(obj, part, LV_STYLE_" + p['name'] + "));")
383 print(" return " + cast + "v." + p['style_type'] + ";")
396 def style_set_c(p): argument
397 if 'section' in p: return
399 cast = style_set_cast(p['style_type'])
401 print("void lv_style_set_" + p['name'].lower() +"(lv_style_t * style, "+ p['var_type'] +" value)")
404 print(" ." + p['style_type'] +" = " + cast + "value")
406 print(" lv_style_set_prop(style, LV_STYLE_" + p['name'] +", v);")
410 def style_set_h(p): argument
411 if 'section' in p: return
413 …print("void lv_style_set_" + p['name'].lower() +"(lv_style_t * style, "+ p['var_type'] +" value);")
416 def local_style_set_c(p): argument
417 if 'section' in p: return
419 cast = style_set_cast(p['style_type'])
421 …print("void lv_obj_set_style_" + p['name'].lower() + "(struct _lv_obj_t * obj, " + p['var_type'] +…
424 print(" ." + p['style_type'] +" = " + cast + "value")
426 print(" lv_obj_set_local_style_prop(obj, LV_STYLE_" + p['name'] +", v, selector);")
430 def local_style_set_h(p): argument
431 if 'section' in p: return
432 …print("void lv_obj_set_style_" + p['name'].lower() + "(struct _lv_obj_t * obj, " + p['var_type'] +…
435 def style_const_set(p): argument
436 if 'section' in p: return
438 cast = style_set_cast(p['style_type'])
440 print("#define LV_STYLE_CONST_" + p['name'] + "(val) \\")
442 …print(" .prop = LV_STYLE_" + p['name'] + ", .value = { ." + p['style_type'] +" = " + cast +…
446 def docs(p): argument
447 if "section" in p:
449 print("## " + p['section'])
450 print(p['dsc'])
453 if "default" not in p: return
455 d = str(p["default"])
458 if p["inherited"]: i = "Yes"
461 if p["layout"]: l = "Yes"
464 if p["ext_draw"]: e = "Yes"
468 dsc = p['dsc']
471 print("### " + p["name"].lower())
485 for p in props:
486 obj_style_get(p)
488 for p in props:
489 local_style_set_h(p)
494 for p in props:
495 local_style_set_c(p)
500 for p in props:
501 style_set_c(p)
505 for p in props:
506 style_set_h(p)
508 for p in props:
509 style_const_set(p)
514 for p in props:
515 docs(p)