From 87f7861ca111b1dabc8e4d4634337e13847c54ea Mon Sep 17 00:00:00 2001 From: Liu Chao Date: Mon, 28 Oct 2013 22:45:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=87=BD=E6=95=B0=E5=A3=B0?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/LCUI/font/textlayer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/LCUI/font/textlayer.h b/include/LCUI/font/textlayer.h index 12233f61..057bd953 100755 --- a/include/LCUI/font/textlayer.h +++ b/include/LCUI/font/textlayer.h @@ -81,6 +81,7 @@ typedef struct _LCUI_TextLayer LCUI_BOOL enable_word_wrap :1; /* 指示是否自动换行 */ LCUI_BOOL enable_multiline :1; /* 指示是否为多行文本图层部件 */ LCUI_BOOL need_scroll_layer :1; /* 指示是否需要滚动图层 */ + LCUI_BOOL auto_wrap :1; /* 指示是否自动换行 */ LCUI_BOOL have_select :1; /* 标记,指示是否在文本图层中选择了文本 */ uint32_t start, end; /* 被选中的文本的范围 */ @@ -181,10 +182,6 @@ TextLayer_Text_Process( LCUI_TextLayer *layer, int pos_type, wchar_t *new_text ); -LCUI_API void -TextLayer_Text_GenerateBMP( LCUI_TextLayer *layer ); -/* 为文本图层中的文本生成位图,已存在位图的文字将不重新生成 */ - LCUI_API void TextLayer_PrintInfo( LCUI_TextLayer *layer ); /* 打印文本图层信息 */ @@ -288,6 +285,9 @@ LCUI_API void TextLayer_SetMultiline( LCUI_TextLayer *layer, LCUI_BOOL flag ); /* 指定文本图层是否启用多行文本显示 */ +/** 设置文本图层中的文本是否自动换行 */ +LCUI_API void TextLayer_SetAutoWrap( LCUI_TextLayer *layer, LCUI_BOOL flag ); + LCUI_END_HEADER #endif