更新数据类型

This commit is contained in:
Liu Chao
2014-03-01 18:16:20 +08:00
parent 2a10b20a3d
commit 615f7cd43d
2 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -23,8 +23,7 @@ typedef enum font_decoration {
};
typedef struct _LCUI_TextStyle
{
typedef struct _LCUI_TextStyle {
LCUI_BOOL _family:1;
LCUI_BOOL _style:1;
LCUI_BOOL _weight:1;
+3 -3
View File
@@ -104,21 +104,21 @@ TextStyle_FontBackColor( LCUI_TextStyle *style, LCUI_RGB color )
/* 设置字体样式 */
LCUI_API void
TextStyle_FontStyle( LCUI_TextStyle *style, enum_font_style fontstyle )
TextStyle_FontStyle( LCUI_TextStyle *style, enum font_style fontstyle )
{
style->style = fontstyle;
style->_style = TRUE;
}
LCUI_API void
TextStyle_FontWeight( LCUI_TextStyle *style, enum_font_weight fontweight )
TextStyle_FontWeight( LCUI_TextStyle *style, enum font_weight fontweight )
{
style->weight = fontweight;
style->_weight = TRUE;
}
LCUI_API void
TextStyle_FontDecoration( LCUI_TextStyle *style, enum_font_decoration decoration )
TextStyle_FontDecoration( LCUI_TextStyle *style, enum font_decoration decoration )
/* 设置字体下划线 */
{
style->decoration = decoration;