Blink.GUI.TextButton.TextButton C# (CSharp) Method

TextButton() public method

public TextButton ( String text, SpriteFont font, Vector2 pos, Microsoft.Xna.Framework.Graphics.Texture2D up, Microsoft.Xna.Framework.Graphics.Texture2D down, Vector2 center = default(Vector2) ) : System
text String
font Microsoft.Xna.Framework.Graphics.SpriteFont
pos Vector2
up Microsoft.Xna.Framework.Graphics.Texture2D
down Microsoft.Xna.Framework.Graphics.Texture2D
center Vector2
return System
        public TextButton(String text, SpriteFont font, Vector2 pos, Texture2D up, Texture2D down, Vector2 center = default(Vector2))
            : base(pos, new Vector2(0,0), up, down, center)
        {
            this.text = text;
            this.font = font;
            this.size = new Vector2(FONT_SIZE * text.Length + 2*MARGIN, 1.6f * FONT_SIZE + 2*MARGIN);
        }