public Spinner ( BitGetters.BitPixels?pixelsSize = null, BitGetters.BitColor?color = null, BitGetters.BitPixels?thickness = null, bool isStatic = true, BitGetters.BitIsVisible?isVisible = null, BitGetters.BitDisplay?display = null, BitGetters.BitData?data = null, BitGetters.BitTooltip?tooltip = null ) { Spec = new BitSpec { IsStatic = isStatic, IsVisible = isVisible, Display = display, Data = data, Tooltip = tooltip, }; _pixelsSize = pixelsSize; _color = color; _thickness = thickness; ConstantClasses = new ClassSet( "Integrant.Element.Bit", "Integrant.Element.Bit." + nameof(Spinner) ); Cache(); }
public Space ( BitGetters.BitPixels?pixelsWidth = null, bool isStatic = true, BitGetters.BitIsVisible?isVisible = null, BitGetters.BitDisplay?display = null, BitGetters.BitData?data = null ) { Spec = new BitSpec { IsStatic = isStatic, IsVisible = isVisible, PixelsWidth = pixelsWidth, Display = display, Data = data, }; ConstantClasses = new ClassSet( "Integrant.Element.Bit", "Integrant.Element.Bit." + nameof(Space) ); Cache(); }
public Button ( BitGetters.BitContent content, Func <ClickArgs, Task> onClick, ColorGetter?color = null, bool isStatic = false, BitGetters.BitIsVisible?isVisible = null, BitGetters.BitIsDisabled?isDisabled = null, BitGetters.BitClasses?classes = null, BitGetters.BitSize?margin = null, BitGetters.BitSize?padding = null, BitGetters.BitColor?foregroundColor = null, BitGetters.BitColor?backgroundColor = null, BitGetters.BitPixels?pixelsHeight = null, BitGetters.BitPixels?pixelsWidth = null, BitGetters.BitREM?fontSize = null, BitGetters.BitWeight?fontWeight = null, BitGetters.BitDisplay?display = null, BitGetters.BitIsHighlighted?isHighlighted = null, BitGetters.BitData?data = null, BitGetters.BitTooltip?tooltip = null ) { Spec = new BitSpec { Content = content, IsStatic = isStatic, IsVisible = isVisible, IsDisabled = isDisabled, Classes = classes, Margin = margin, Padding = padding, ForegroundColor = foregroundColor, BackgroundColor = backgroundColor, PixelsHeight = pixelsHeight, PixelsWidth = pixelsWidth, FontSize = fontSize, FontWeight = fontWeight, Display = display, IsHighlighted = isHighlighted, Data = data, Tooltip = tooltip, }; _onClick = onClick; _color = color ?? DefaultColorGetter; ConstantClasses = new ClassSet( "Integrant.Element.Override.Button", "Integrant.Element.Bit", "Integrant.Element.Bit." + nameof(Button) ); // ConstantClasses.Add("Integrant.Element.Override.Button:" + color.inv); Cache(additionalClasses: LocalClasses()); }
public Checkbox ( Func <bool, Task> onToggle, BitGetters.BitIsChecked?isChecked = null, BitGetters.BitIsDisabled?isDisabled = null, BitGetters.BitIsRequired?isRequired = null, bool isStatic = true, BitGetters.BitIsVisible?isVisible = null, BitGetters.BitClasses?classes = null, BitGetters.BitSize?margin = null, BitGetters.BitSize?padding = null, BitGetters.BitColor?backgroundColor = null, BitGetters.BitColor?foregroundColor = null, BitGetters.BitPixels?pixelsHeight = null, BitGetters.BitPixels?pixelsWidth = null, BitGetters.BitREM?fontSize = null, BitGetters.BitWeight?fontWeight = null, BitGetters.BitDisplay?display = null, BitGetters.BitData?data = null, BitGetters.BitTooltip?tooltip = null ) { Spec = new BitSpec { IsChecked = isChecked, IsDisabled = isDisabled, IsRequired = isRequired, IsStatic = isStatic, IsVisible = isVisible, Classes = classes, Margin = margin, Padding = padding, BackgroundColor = backgroundColor, ForegroundColor = foregroundColor, PixelsHeight = pixelsHeight, PixelsWidth = pixelsWidth, FontSize = fontSize, FontWeight = fontWeight, Display = display, Data = data, Tooltip = tooltip, }; ConstantClasses = new ClassSet( "Integrant.Element.Bit", "Integrant.Element.Bit." + nameof(Checkbox) ); Cache(null, AdditionalClasses()); _onToggle = onToggle; Checked = isChecked?.Invoke() ?? false; }
public Title ( BitGetters.BitContent content, BitGetters.BitURL?url = null, bool isStatic = true, BitGetters.BitIsVisible?isVisible = null, BitGetters.BitClasses?classes = null, BitGetters.BitSize?margin = null, BitGetters.BitSize?padding = null, BitGetters.BitColor?backgroundColor = null, BitGetters.BitColor?foregroundColor = null, BitGetters.BitPixels?pixelsHeight = null, BitGetters.BitPixels?pixelsWidth = null, BitGetters.BitREM?fontSize = null, BitGetters.BitWeight?fontWeight = null, BitGetters.BitDisplay?display = null, BitGetters.BitData?data = null, BitGetters.BitTooltip?tooltip = null ) { Spec = new BitSpec { Content = content, URL = url, IsStatic = isStatic, IsVisible = isVisible, Classes = classes, Margin = margin, Padding = padding, BackgroundColor = backgroundColor, ForegroundColor = foregroundColor, PixelsHeight = pixelsHeight, PixelsWidth = pixelsWidth, FontSize = fontSize, FontWeight = fontWeight, Display = display, Data = data, Tooltip = tooltip, }; ConstantClasses = new ClassSet( "Integrant.Element.Bit", "Integrant.Element.Bit." + nameof(Title) ); if (url != null) { ConstantClasses.Add("Integrant.Element.Bit." + nameof(Title) + ":Linked"); } Cache(); }
// public event Action? OnClick; public Link ( BitGetters.BitContent content, BitGetters.BitURL url, bool isStatic = true, BitGetters.BitIsVisible?isVisible = null, BitGetters.BitClasses?classes = null, BitGetters.BitSize?margin = null, BitGetters.BitSize?padding = null, BitGetters.BitColor?backgroundColor = null, BitGetters.BitColor?foregroundColor = null, BitGetters.BitPixels?pixelsHeight = null, BitGetters.BitPixels?pixelsWidth = null, BitGetters.BitREM?fontSize = null, BitGetters.BitWeight?fontWeight = null, BitGetters.BitDisplay?display = null, BitGetters.BitIsHighlighted?isHighlighted = null, BitGetters.BitData?data = null, BitGetters.BitTooltip?tooltip = null ) { Spec = new BitSpec { Content = content, URL = url, IsStatic = isStatic, IsVisible = isVisible, Classes = classes, Margin = margin, Padding = padding, BackgroundColor = backgroundColor, ForegroundColor = foregroundColor, PixelsHeight = pixelsHeight, PixelsWidth = pixelsWidth, FontSize = fontSize, FontWeight = fontWeight, Display = display, IsHighlighted = isHighlighted, Data = data, Tooltip = tooltip, }; ConstantClasses = new ClassSet( "Integrant.Element.Bit", "Integrant.Element.Bit." + nameof(Link) ); Cache(additionalClasses: LocalClasses()); }
public Heading ( BitGetters.BitContent content, Size size = Size.H1, bool isStatic = true, BitGetters.BitIsVisible?isVisible = null, BitGetters.BitClasses?classes = null, BitGetters.BitSize?margin = null, BitGetters.BitSize?padding = null, BitGetters.BitColor?backgroundColor = null, BitGetters.BitColor?foregroundColor = null, BitGetters.BitPixels?pixelsHeight = null, BitGetters.BitPixels?pixelsWidth = null, BitGetters.BitREM?fontSize = null, BitGetters.BitWeight?fontWeight = null, BitGetters.BitDisplay?display = null, BitGetters.BitData?data = null, BitGetters.BitTooltip?tooltip = null ) { Spec = new BitSpec { Content = content, IsStatic = isStatic, IsVisible = isVisible, Classes = classes, Margin = margin, Padding = padding, BackgroundColor = backgroundColor, ForegroundColor = foregroundColor, PixelsHeight = pixelsHeight, PixelsWidth = pixelsWidth, FontSize = fontSize, FontWeight = fontWeight, Display = display, Data = data, Tooltip = tooltip, }; _element = ("h" + (int)size); ConstantClasses = new ClassSet( "Integrant.Element.Bit", "Integrant.Element.Bit." + nameof(Heading) ); Cache(); }
public Image ( BitGetters.BitURL url, bool isStatic = true, BitGetters.BitIsVisible?isVisible = null, BitGetters.BitClasses?classes = null, BitGetters.BitSize?margin = null, BitGetters.BitSize?padding = null, BitGetters.BitColor?backgroundColor = null, BitGetters.BitColor?foregroundColor = null, BitGetters.BitPixels?pixelsHeight = null, BitGetters.BitPixels?pixelsWidth = null, BitGetters.BitREM?fontSize = null, BitGetters.BitWeight?fontWeight = null, BitGetters.BitDisplay?display = null, BitGetters.BitData?data = null, BitGetters.BitTooltip?tooltip = null ) { Spec = new BitSpec { URL = url, IsStatic = isStatic, IsVisible = isVisible, Classes = classes, Margin = margin, Padding = padding, BackgroundColor = backgroundColor, ForegroundColor = foregroundColor, // PixelsHeight = pixelsHeight, // PixelsWidth = pixelsWidth, FontSize = fontSize, FontWeight = fontWeight, Display = display, Data = data, Tooltip = tooltip, }; _pixelsHeight = pixelsHeight; _pixelsWidth = pixelsWidth; ConstantClasses = new ClassSet( "Integrant.Element.Bit", "Integrant.Element.Bit." + nameof(Image) ); Cache(); }
public Filler ( bool isStatic = true, BitGetters.BitIsVisible?isVisible = null ) { Spec = new BitSpec { IsStatic = isStatic, IsVisible = isVisible, }; ConstantClasses = new ClassSet( "Integrant.Element.Bit", "Integrant.Element.Bit." + nameof(Filler) ); Cache(); }
public Separator ( bool isStatic = true, BitGetters.BitPixels?pixelsThickness = null, BitGetters.BitColor?color = null, BitGetters.BitIsVisible?isVisible = null, BitGetters.BitClasses?classes = null, BitGetters.BitSize?margin = null, BitGetters.BitSize?padding = null, BitGetters.BitPixels?pixelsHeight = null, BitGetters.BitDisplay?display = null, BitGetters.BitData?data = null, BitGetters.BitTooltip?tooltip = null // byte pxHeight = 16, byte pxWidth = 5, byte pxThickness = 1, string color = Colors.HeaderVerticalLine ) { _pixelsThickness = pixelsThickness; _color = color; Spec = new BitSpec { IsStatic = isStatic, IsVisible = isVisible, Classes = classes, Margin = margin, Padding = padding, PixelsHeight = pixelsHeight, Display = display, Data = data, Tooltip = tooltip, }; ConstantClasses = new ClassSet( "Integrant.Element.Bit", "Integrant.Element.Bit." + nameof(Separator) ); Cache(LocalStyle()); }