コード例 #1
0
 public ImagePanel(string name, Docking dock, TextureImage image, WidgetStyle style)
     : base(name, dock, style)
 {
     SizeMode           = ImageSizeModes.ShrinkToFit;
     VAlign             = Alignment.Center;
     HAlign             = Alignment.Center;
     Image              = image;
     ShouldDisposeImage = false;
 }
コード例 #2
0
 public ImagePanel(string name, Docking dock, string filePath, WidgetStyle style)
     : base(name, dock, style)
 {
     SizeMode           = ImageSizeModes.ShrinkToFit;
     VAlign             = Alignment.Center;
     HAlign             = Alignment.Center;
     FilePath           = filePath;
     ShouldDisposeImage = true;
 }
コード例 #3
0
        public CircleButton(string name, Docking dock, string text, ImageList imageList, string imageKey, WidgetStyle style)
            : base(name, dock, text, imageList, imageKey, style)
        {
            if ((style as CircleWidgetStyle) == null)
            {
                this.LogWarning("Style should be of type CircleWidgetStyle");;
            }

            Image.VAlign = Alignment.Near;
            Padding      = Padding.Empty;
        }
コード例 #4
0
 public ImagePanel(string name, Docking dock, ImageList imageList, string imageKey, WidgetStyle style)
     : base(name, dock, style)
 {
     SizeMode           = ImageSizeModes.ShrinkToFit;
     VAlign             = Alignment.Center;
     HAlign             = Alignment.Center;
     m_ImageList        = imageList;
     ImageKey           = imageKey;
     ShouldDisposeImage = false;
 }