Implements the ITextObject interface.
More...
|
| TextObject (string text, string fontName, Point< int > position=new Point< int >(), QFontAlignment alignment=QFontAlignment.Centre) |
|
| TextObject (string text, Font font, Point< int > position=new Point< int >(), QFontAlignment alignment=QFontAlignment.Centre) |
| Initializes a new TextObject instance. More...
|
|
void | Draw () |
| Draws this text object to screen with default parameters. More...
|
|
void | Draw (Point< int > position) |
| Draws this text object to a specific position on the screen specified by the supplied Point struct. More...
|
|
void | Draw (int x, int y) |
| Draws this text oject to screen at the specified X/Y position. More...
|
|
|
Font | Font [get, set] |
|
Color | Color [get, set] |
|
string | Text [get, set] |
|
Point< int > | Position [get, set] |
|
Rectangle | Bounds [get] |
|
QFontAlignment | Alignment [get, set] |
|
Font | Font [get] |
| Gets the Font font instance associated with this text object. More...
|
|
string | Text [get, set] |
| Gets or sets the text value of this text object. More...
|
|
Color | Color [get, set] |
| Gets or sets the color of the text. More...
|
|
Point< int > | Position [get, set] |
| Gets or sets the screen position of this text, in pixels. More...
|
|
Rectangle | Bounds [get] |
| Gets the bounds of this text object. More...
|
|
QFontAlignment | Alignment [get, set] |
| Gets or sets a QFontAlignment value to manage how this text is aligned on screen. More...
|
|
Implements the ITextObject interface.
TriDevs.TriEngine.Text.TextObject.TextObject |
( |
string |
text, |
|
|
string |
fontName, |
|
|
Point< int > |
position = new Point<int>() , |
|
|
QFontAlignment |
alignment = QFontAlignment.Centre |
|
) |
| |
73 :
this(text, Resources.ResourceManager.Get<
Font>(fontName), position, alignment)
TriDevs.TriEngine.Text.TextObject.TextObject |
( |
string |
text, |
|
|
Font |
font, |
|
|
Point< int > |
position = new Point<int>() , |
|
|
QFontAlignment |
alignment = QFontAlignment.Centre |
|
) |
| |
Initializes a new TextObject instance.
- Parameters
-
text | The initial text to set for this text object. |
font | The font to use for this text object. |
position | The intitial position of this text object. |
alignment | The intitial alignment of the text in this text object. |
89 throw new EngineException(
"Font supplied for TextObject is null!",
new ArgumentNullException(
"font"));
void TriDevs.TriEngine.Text.TextObject.Draw |
( |
| ) |
|
void TriDevs.TriEngine.Text.TextObject.Draw |
( |
Point< int > |
position | ) |
|
Draws this text object to a specific position on the screen specified by the supplied Point struct.
- Parameters
-
position | Point class with X/Y coordinates. |
Implements TriDevs.TriEngine.Text.ITextObject.
110 Draw(position.X, position.Y);
void TriDevs.TriEngine.Text.TextObject.Draw |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
QFontAlignment TriDevs.TriEngine.Text.TextObject.Alignment |
|
getset |
Rectangle TriDevs.TriEngine.Text.TextObject.Bounds |
|
get |
Color TriDevs.TriEngine.Text.TextObject.Color |
|
getset |
Font TriDevs.TriEngine.Text.TextObject.Font |
|
getset |
Point<int> TriDevs.TriEngine.Text.TextObject.Position |
|
getset |
string TriDevs.TriEngine.Text.TextObject.Text |
|
getset |
The documentation for this class was generated from the following file: