Add Widget_CheckStyleType() and Widget_CheckStyleValue()
@@ -173,8 +173,8 @@ typedef struct LCUI_SelectorRec_ {
} LCUI_SelectorRec, *LCUI_Selector;
-#define CheckStyleType(S, K, T) (S[K].is_valid && S[K].type == SVT_##T)
-#define CheckStyleValue(S, K, V) (S[K].is_valid && S[K].type == SV_##V)
+#define CheckStyleType(S, K, T) (S->sheet[K].is_valid && S->sheet[K].type == SVT_##T)
+#define CheckStyleValue(S, K, V) (S->sheet[K].is_valid && S->sheet[K].type == SV_##V)
#define SetStyle(S, NAME, VAL, TYPE) S->sheet[NAME].is_valid = TRUE, \
S->sheet[NAME].type = SVT_##TYPE, \
