TextBox_Text( LCUI_Widget *widget, char *utf8_text ) { wchar_t *unicode_text; LCUICharset_UTF8ToUnicode( utf8_text, &unicode_text ); TextBox_TextW( widget, unicode_text ); free( unicode_text ); }
TextLayer_Text( LCUI_TextLayer *layer, const char *utf8_text ) { wchar_t *unicode_text; LCUICharset_UTF8ToUnicode( utf8_text, &unicode_text ); TextLayer_TextW( layer, unicode_text ); free( unicode_text ); }
TextLayer_Text_Add( LCUI_TextLayer *layer, char *utf8_text ) { wchar_t *unicode_text; LCUICharset_UTF8ToUnicode( utf8_text, &unicode_text ); TextLayer_Text_AddW( layer, unicode_text ); free( unicode_text ); return 0; }
TextBox_Text_SetPlaceHolder( LCUI_Widget *widget, LCUI_TextStyle *style, const char *str ) { wchar_t *unicode_str; LCUICharset_UTF8ToUnicode( str, &unicode_str ); TextBox_Text_SetPlaceHolderW( widget, style, unicode_str ); free( unicode_str ); }