public static cave.ui.CanvasWidget forColor(cave.GuiApplicationContext context, cave.Color color) { var v = new cave.ui.CanvasWidget(context); v.setWidgetColor(color); return(v); }
public void setActionBarBackgroundColor(cave.Color color) { if (canvas != null) { canvas.setWidgetColor(color); } }
public MyRadioButtonWidget(cave.GuiApplicationContext context) : base(context) { var thisWidget = (dynamic)this; setWidgetSpacing(context.getHeightValue("2000um")); var widget = new cave.ui.AlignWidget(context); var widget2 = new cave.ui.LayerWidget(context); widget2.setWidgetHeightRequest(context.getHeightValue("4000um")); widget2.setWidgetWidthRequest(context.getHeightValue("4000um")); outline = new cave.ui.CanvasWidget(context); outline.setWidgetColor(cave.Color.black()); outline.setWidgetRoundingRadius((double)context.getHeightValue("2000um")); widget2.addWidget((Windows.UI.Xaml.UIElement)outline); var widget3 = new cave.ui.LayerWidget(context); widget3.setWidgetMargin(context.getHeightValue("500um")); canvas = new cave.ui.CanvasWidget(context); widget3.addWidget((Windows.UI.Xaml.UIElement)canvas); widget2.addWidget((Windows.UI.Xaml.UIElement)widget3); widget.addWidget((Windows.UI.Xaml.UIElement)widget2); addWidget((Windows.UI.Xaml.UIElement)widget); label = new cave.ui.LabelWidget(context); addWidget((Windows.UI.Xaml.UIElement)label, 1.00); }
public CellWidget(cave.GuiApplicationContext context) : base(context) { var thisWidget = (dynamic)this; cellBackground = new cave.ui.CanvasWidget(context); cellBackground.setWidgetColor(cave.Color.white()); addWidget((Windows.UI.Xaml.UIElement)cellBackground); cellTextCon = new cave.ui.LayerWidget(context); addWidget((Windows.UI.Xaml.UIElement)cellTextCon); }
public MenuBarWidget(cave.GuiApplicationContext context) : base(context) { var thisWidget = (dynamic)this; var widget = new cave.ui.CanvasWidget(context); widget.setWidgetColor(cave.Color.forString("#BBBBBB")); addWidget((Windows.UI.Xaml.UIElement)widget); box = new cave.ui.HorizontalBoxWidget(context); box.setWidgetSpacing(context.getWidthValue("300um")); box.setWidgetMargin(context.getWidthValue("300um")); addWidget((Windows.UI.Xaml.UIElement)box); }
public TabWidget(cave.GuiApplicationContext context) : base(context) { var thisWidget = (dynamic)this; var widget = new cave.ui.VerticalBoxWidget(context); tabHeaders = new cave.ui.HorizontalBoxWidget(context); widget.addWidget((Windows.UI.Xaml.UIElement)tabHeaders); var widget2 = new cave.ui.LayerWidget(context); background = new cave.ui.CanvasWidget(context); background.setWidgetColor(cave.Color.white()); widget2.addWidget((Windows.UI.Xaml.UIElement)background); content = new cave.ui.LayerWidget(context); widget2.addWidget((Windows.UI.Xaml.UIElement)content); widget.addWidget((Windows.UI.Xaml.UIElement)widget2, 1.00); addWidget((Windows.UI.Xaml.UIElement)widget); }
public void setWidgetGridColor(cave.Color color) { widgetGridBackground.setWidgetColor(color); }