Lines Matching refs:txt
26 static lv_slider_orientation_t orentation_text_to_enum_value(const char * txt);
27 static lv_slider_mode_t mode_text_to_enum_value(const char * txt);
79 static lv_slider_orientation_t orentation_text_to_enum_value(const char * txt) in orentation_text_to_enum_value() argument
81 if(lv_streq("auto", txt)) return LV_SLIDER_ORIENTATION_AUTO; in orentation_text_to_enum_value()
82 if(lv_streq("horizontal", txt)) return LV_SLIDER_ORIENTATION_HORIZONTAL; in orentation_text_to_enum_value()
83 if(lv_streq("vertical", txt)) return LV_SLIDER_ORIENTATION_VERTICAL; in orentation_text_to_enum_value()
85 LV_LOG_WARN("%s is an unknown value for slider's orientation", txt); in orentation_text_to_enum_value()
89 static lv_slider_mode_t mode_text_to_enum_value(const char * txt) in mode_text_to_enum_value() argument
91 if(lv_streq("normal", txt)) return LV_SLIDER_MODE_NORMAL; in mode_text_to_enum_value()
92 if(lv_streq("range", txt)) return LV_SLIDER_MODE_RANGE; in mode_text_to_enum_value()
93 if(lv_streq("symmetrical", txt)) return LV_SLIDER_MODE_SYMMETRICAL; in mode_text_to_enum_value()
95 LV_LOG_WARN("%s is an unknown value for slider's mode", txt); in mode_text_to_enum_value()