mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-12-01 16:56:34 +01:00
更新数据类型
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user