Esempio n. 1
0
 public IStyleRule CreateRule(IStyleSelector selector, IPredefinedStyleBuilder style)
 {
     return(new StyleRule(selector, style.Style));
 }
Esempio n. 2
0
 public static IPredefinedStyleBuilder WithValue <T>(this IPredefinedStyleBuilder style, IStyleKey <T> key, T value)
 {
     style.SetValue(key, value);
     return(style);
 }
Esempio n. 3
0
 public static IPredefinedStyleBuilder WithBox(this IPredefinedStyleBuilder style, IStyleKey <IBoxTexture> key, string value, Insets insets, Insets margin)
 {
     style.SetValue(key, style.ContentLoader.LoadTexture(value, insets, margin));
     return(style);
 }
Esempio n. 4
0
 public static IPredefinedStyleBuilder WithTexture(this IPredefinedStyleBuilder style, IStyleKey <IUITexture> key, string value)
 {
     style.SetValue(key, style.ContentLoader.LoadTexture(value));
     return(style);
 }
Esempio n. 5
0
 public static IPredefinedStyleBuilder WithBox(this IPredefinedStyleBuilder style, IStyleKey <IBoxTexture> key, string value, Insets insets)
 {
     return(WithBox(style, key, value, insets, Insets.Zero));
 }