|
MochiEngine
|
Options used by the graphical GUI specifically for texts. This contains all the minimal data to show text, besides the actual text. Optional elements of the struct will be defaulted by the GUI implementation if not defined. More...
#include <GUICommon.hpp>
Public Attributes | |
| std::optional< Rectf > | ParentRect |
| The space occupied by the GUI element that you want to contain this element. This is useful for putting a text in the center of a button, for example. | |
| std::optional< Rectf > | DstRect |
| Destination rect, or where the GUI element will be placed according to the anchor and pivot. | |
| Vector2f | ScreenAnchor |
| Where the origin (0,0) will be when deciding where to place the text. Goes from -1,-1 to 1,1. | |
| Vector2f | TextPivot |
| Defines the pivot, which will act as the origin of the text when placing it in the screen. Goes from -1,-1 to 1,1. | |
| float | TextSize |
| Height of the text in pixels. | |
| std::optional< Color > | Color |
| Color of the text. | |
Options used by the graphical GUI specifically for texts. This contains all the minimal data to show text, besides the actual text. Optional elements of the struct will be defaulted by the GUI implementation if not defined.