public IStyleRule CreateRule(IStyleSelector selector, IPredefinedStyleBuilder style) { return(new StyleRule(selector, style.Style)); }
public static IPredefinedStyleBuilder WithValue <T>(this IPredefinedStyleBuilder style, IStyleKey <T> key, T value) { style.SetValue(key, value); return(style); }
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); }
public static IPredefinedStyleBuilder WithTexture(this IPredefinedStyleBuilder style, IStyleKey <IUITexture> key, string value) { style.SetValue(key, style.ContentLoader.LoadTexture(value)); return(style); }
public static IPredefinedStyleBuilder WithBox(this IPredefinedStyleBuilder style, IStyleKey <IBoxTexture> key, string value, Insets insets) { return(WithBox(style, key, value, insets, Insets.Zero)); }