Falco Engine 3.9.0.1 (beta)
Text.cs
Go to the documentation of this file.
1using System;
2using System.Runtime.CompilerServices;
3using System.Runtime.InteropServices;
4
5namespace FalcoEngine
6{
7 public class Text : UIElement
8 {
9 internal Text()
10 {
11
12 }
13
17 public enum TextHorizontalAlignment { Left, Center, Right };
18
22 public enum TextVerticalAlignment { Top, Middle, Bottom };
23
27 public string text { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }
28
32 public Font font { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }
33
37 public float fontSize { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }
38
43 {
44 get
45 {
46 return (TextHorizontalAlignment)INTERNAL_get_textHorizontalAlignment();
47 }
48 set
49 {
50 INTERNAL_set_textHorizontalAlignment((int)value);
51 }
52 }
53
58 {
59 get
60 {
61 return (TextVerticalAlignment)INTERNAL_get_textVerticalAlignment();
62 }
63 set
64 {
65 INTERNAL_set_textVerticalAlignment((int)value);
66 }
67 }
68
69 /*----------- INTERNAL CALLS ------------*/
70
71 [MethodImpl(MethodImplOptions.InternalCall)]
72 private extern int INTERNAL_get_textHorizontalAlignment();
73
74 [MethodImpl(MethodImplOptions.InternalCall)]
75 private extern void INTERNAL_set_textHorizontalAlignment(int value);
76
77 [MethodImpl(MethodImplOptions.InternalCall)]
78 private extern int INTERNAL_get_textVerticalAlignment();
79
80 [MethodImpl(MethodImplOptions.InternalCall)]
81 private extern void INTERNAL_set_textVerticalAlignment(int value);
82 }
83}
Font font
Get or set the font
Definition: Text.cs:32
float fontSize
Get or set the font size
Definition: Text.cs:37
TextVerticalAlignment
TextVerticalAlignment enum
Definition: Text.cs:22
TextHorizontalAlignment
TextHorizontalAlignment enum
Definition: Text.cs:17
TextVerticalAlignment textVerticalAlignment
Get or set text vertical alignment
Definition: Text.cs:58
string text
Get or set the text
Definition: Text.cs:27
TextHorizontalAlignment textHorizontalAlignment
Get or set text horizontal alignment
Definition: Text.cs:43