Beispiel #1
0
 public Button(RadioGroup group, LayoutSpec spec = null) : base(spec)
 {
     group.Add(this);
     _group        = group;
     Color         = Vector4.One;
     this.IsToggle = true;
 }
Beispiel #2
0
		public View (LayoutSpec spec) {
			_spec = spec ?? LayoutSpec.Empty;
			_children = new List<View>();
			this.Transform = Matrix4.Identity;
			this.Children = _children.AsReadOnly();
			this.ZDepth = 0.1f;
		}
Beispiel #3
0
 public View(LayoutSpec spec)
 {
     _spec          = spec ?? LayoutSpec.Empty;
     _children      = new List <View>();
     this.Transform = Matrix4.Identity;
     this.Children  = _children.AsReadOnly();
     this.ZDepth    = 0.1f;
 }
Beispiel #4
0
 public Label(string text, BitmapFont font, LayoutSpec spec = null) : base(spec)
 {
     _text = new TextBlock(font, 0f, text);
     this.VerticalAlignment = VerticalAlignment.Middle;
 }
Beispiel #5
0
 public Button(LayoutSpec spec = null) : base(spec)
 {
     Color = Vector4.One;
 }
Beispiel #6
0
 public CanvasView(LayoutSpec spec) : base(spec)
 {
 }
Beispiel #7
0
		public Button (RadioGroup group, LayoutSpec spec = null) : base(spec) {
			group.Add (this);
			_group = group;
			Color = Vector4.One;
		}
Beispiel #8
0
		public Button (LayoutSpec spec = null) : base(spec) {
			Color = Vector4.One;
		}
Beispiel #9
0
		public ImageView (Sprite sprite, LayoutSpec spec = null) : base(spec) {
			this.Sprite = sprite;
			this.Color = Vector4.One;
		}
Beispiel #10
0
 public ImageView(Sprite sprite, LayoutSpec spec = null, bool fill = true) : base(spec)
 {
     this.Sprite = sprite;
     this.Color  = Vector4.One;
     this.Fill   = fill;
 }
Beispiel #11
0
		public Label (string text, BitmapFont font, LayoutSpec spec = null) : base(spec) {
			_text = new TextBlock (font, 0f, text);
			this.VerticalAlignment = VerticalAlignment.Middle;
		}