Example #1
0
 public Button(RadioGroup group, LayoutSpec spec = null) : base(spec)
 {
     group.Add(this);
     _group        = group;
     Color         = Vector4.One;
     this.IsToggle = true;
 }
Example #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;
		}
Example #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;
 }
Example #4
0
 public Label(string text, BitmapFont font, LayoutSpec spec = null) : base(spec)
 {
     _text = new TextBlock(font, 0f, text);
     this.VerticalAlignment = VerticalAlignment.Middle;
 }
Example #5
0
 public Button(LayoutSpec spec = null) : base(spec)
 {
     Color = Vector4.One;
 }
Example #6
0
 public CanvasView(LayoutSpec spec) : base(spec)
 {
 }
Example #7
0
		public Button (RadioGroup group, LayoutSpec spec = null) : base(spec) {
			group.Add (this);
			_group = group;
			Color = Vector4.One;
		}
Example #8
0
		public Button (LayoutSpec spec = null) : base(spec) {
			Color = Vector4.One;
		}
Example #9
0
		public ImageView (Sprite sprite, LayoutSpec spec = null) : base(spec) {
			this.Sprite = sprite;
			this.Color = Vector4.One;
		}
Example #10
0
 public ImageView(Sprite sprite, LayoutSpec spec = null, bool fill = true) : base(spec)
 {
     this.Sprite = sprite;
     this.Color  = Vector4.One;
     this.Fill   = fill;
 }
Example #11
0
		public Label (string text, BitmapFont font, LayoutSpec spec = null) : base(spec) {
			_text = new TextBlock (font, 0f, text);
			this.VerticalAlignment = VerticalAlignment.Middle;
		}