blob: e5f8203770898d89eb6995aed9f584841d2c1607 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace V3.Widgets
{
/// <summary>
/// A widget that contains some text.
/// </summary>
public interface ITextWidget : IWidget
{
/// <summary>
/// The text of this widget.
/// </summary>
string Text { get; set; }
/// <summary>
/// The space that is added before and after the text in the
/// horizontal direction.
/// </summary>
float PaddingX { get; set; }
/// <summary>
/// The space that is added before and after the text in the
/// vertical direction.
/// </summary>
float PaddingY { get; set; }
/// <summary>
/// The horizontal orientation of the text within the size.
/// </summary>
HorizontalOrientation HorizontalOrientation { get; set; }
/// <summary>
/// The default color of the text.
/// </summary>
Color Color { get; set; }
/// <summary>
/// The font for text rendering.
/// </summary>
SpriteFont Font { get; set; }
}
}
|