Smolgui
Immediate gui library based on SFML
Loading...
Searching...
No Matches
sgui::TextOptions Struct Reference

Store text options : boxSize, centered, type, etc. More...

#include <Options.h>

Public Member Functions

 TextOptions ()=default
 TextOptions (const VerticalAlignment alignment)
 TextOptions (const HorizontalAlignment alignment)
 TextOptions (const sf::Vector2f &size)

Public Attributes

VerticalAlignment vertical = VerticalAlignment::None
 vertical alignment
HorizontalAlignment horizontal = HorizontalAlignment::None
 horizontal alignment
TextType type = TextType::Normal
 type of text
sf::Vector2f boxSize = {}
 box that contains text, no box = no limit

Detailed Description

Store text options : boxSize, centered, type, etc.

Constructor & Destructor Documentation

◆ TextOptions() [1/4]

sgui::TextOptions::TextOptions ( )
default

◆ TextOptions() [2/4]

sgui::TextOptions::TextOptions ( const VerticalAlignment alignment)
inline

◆ TextOptions() [3/4]

sgui::TextOptions::TextOptions ( const HorizontalAlignment alignment)
inline

◆ TextOptions() [4/4]

sgui::TextOptions::TextOptions ( const sf::Vector2f & size)
inline

Member Data Documentation

◆ boxSize

sf::Vector2f sgui::TextOptions::boxSize = {}

box that contains text, no box = no limit

◆ horizontal

HorizontalAlignment sgui::TextOptions::horizontal = HorizontalAlignment::None

horizontal alignment

◆ type

TextType sgui::TextOptions::type = TextType::Normal

type of text

◆ vertical

VerticalAlignment sgui::TextOptions::vertical = VerticalAlignment::None

vertical alignment


The documentation for this struct was generated from the following file:
  • /github/workspace/src/sgui/Widgets/Options.h