예제 #1
0
        public ButtonWidget(IWidgetBuilder widgetBuilder, IMouse mouse)
        {
            this.mouse = mouse;
            var border = new Border(Color.FromArgb(217, 219, 219));

            this.boxWidget = widgetBuilder.BuildBox(0, border, 10);
            this.boxWidget.BackgroundColor   = Color.FromArgb(250, 251, 252);
            this.boxWidget.AdjustSizeToChild = true;
            this.mouseRegionWidget           = widgetBuilder.BuildMouseRegion(this.boxWidget);
            this.mouseRegionWidget.Opaque    = true;
            this.SubscribeToEvents();
        }
예제 #2
0
 public ModalWidget(IWidgetBuilder widgetBuilder)
 {
     this.BoxWidget = widgetBuilder.BuildBox(0, new Border(Color.Black, 1), 10);
 }