TextOverlayData
TextOverlayData
Serializable text overlay data. More…
#include <MediaWidgetStateData.hpp>
Public Attributes
| Name | |
|---|---|
| int | id Unique identifier (-1 = not assigned). |
| std::string | text Text content to display. |
| TextOverlayOrientation | orientation Text orientation. |
| float | x_position Relative X position (0.0 - 1.0). |
| float | y_position Relative Y position (0.0 - 1.0). |
| std::string | color Text color in hex format. |
| int | font_size Font size in points. |
| bool | enabled Whether overlay is visible. |
Detailed Description
struct TextOverlayData;Serializable text overlay data.
This mirrors the TextOverlay struct in MediaText_Widget.hpp but uses std::string instead of QString/QColor for serialization.
Public Attributes Documentation
variable id
int id = -1;Unique identifier (-1 = not assigned).
variable text
std::string text;Text content to display.
variable orientation
TextOverlayOrientation orientation = TextOverlayOrientation::Horizontal;Text orientation.
variable x_position
float x_position = 0.5f;Relative X position (0.0 - 1.0).
variable y_position
float y_position = 0.5f;Relative Y position (0.0 - 1.0).
variable color
std::string color = "#ffffff";Text color in hex format.
variable font_size
int font_size = 12;Font size in points.
variable enabled
bool enabled = true;Whether overlay is visible.
Updated on 2026-11-13 at 20:25:39 +0000