Beispiel #1
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     PrimitiveHandler primitive = new PrimitiveHandler(spriteBatch.GraphicsDevice);
     primitive.CreateSquare(Position, Position + Size );
     primitive.fThickness = Border.Thickness;
     primitive.Color = Border.Color;
     primitive.RenderPolygonPrimitive(spriteBatch);
 }
Beispiel #2
0
 public VisualNode(GraphicsDevice device, LogicalNode lnode)
 {
     this.LogicalNode             = lnode;
     this.graphicsDevice          = device;
     this.BackgroundColor         = Color.Transparent;
     this.ForegroundColor         = Color.Transparent;
     this.BorderColor             = Color.Transparent;
     this.fontSize                = 0;
     this.borderSize              = 0;
     this.text                    = "";
     this.VerticalTextAlignment   = VerticalAlignment.Top;
     this.HorizontalTextAlignment = HorizontalAlignment.Left;
     this.Primitive               = PrimitiveHandler.GetRectangle(device);
 }