Rendering Engine 0.2.9
Modular Graphics Rendering Engine | v0.2.9
rendering_engine::TextBlock2D::Properties Struct Reference

#include <text_block_2d.hpp>

Public Member Functions

 Properties ()
 

Public Attributes

std::string fontName
 Font family name. More...
 
float fontSize = 10
 Font size in pixels. More...
 
TextAlign textAlign = TextAlign::Left
 Horizontal text alignment. More...
 
float maxLineLength = 0.0f
 Maximum line length for layout; zero disables wrapping. More...
 
bool textShapeEnabled = false
 Enables text shaping during layout. More...
 
float outlineThicknessPx = 0.0f
 Outline thickness in pixels. More...
 
float lineSpacingScale = 1.0f
 Line height multiplier. More...
 

Detailed Description

Definition at line 59 of file text_block_2d.hpp.

Constructor & Destructor Documentation

◆ Properties()

rendering_engine::TextBlock2D::Properties::Properties ( )
inline

Definition at line 76 of file text_block_2d.hpp.

Member Data Documentation

◆ fontName

std::string rendering_engine::TextBlock2D::Properties::fontName

Font family name.

Definition at line 62 of file text_block_2d.hpp.

◆ fontSize

float rendering_engine::TextBlock2D::Properties::fontSize = 10

Font size in pixels.

Definition at line 64 of file text_block_2d.hpp.

◆ lineSpacingScale

float rendering_engine::TextBlock2D::Properties::lineSpacingScale = 1.0f

Line height multiplier.

Definition at line 74 of file text_block_2d.hpp.

◆ maxLineLength

float rendering_engine::TextBlock2D::Properties::maxLineLength = 0.0f

Maximum line length for layout; zero disables wrapping.

Definition at line 68 of file text_block_2d.hpp.

◆ outlineThicknessPx

float rendering_engine::TextBlock2D::Properties::outlineThicknessPx = 0.0f

Outline thickness in pixels.

Definition at line 72 of file text_block_2d.hpp.

◆ textAlign

TextAlign rendering_engine::TextBlock2D::Properties::textAlign = TextAlign::Left

Horizontal text alignment.

Definition at line 66 of file text_block_2d.hpp.

◆ textShapeEnabled

bool rendering_engine::TextBlock2D::Properties::textShapeEnabled = false

Enables text shaping during layout.

Definition at line 70 of file text_block_2d.hpp.


The documentation for this struct was generated from the following file: