Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::text_style Struct Reference

#include <text_component.h>

Public Member Functions

void set_opacity (float opacity)
 
auto get_opacity () const -> float
 
void set_text_color (math::color color)
 
auto get_text_color () const -> math::color
 
void set_background_color (math::color color)
 
auto get_background_color () const -> math::color
 
void set_foreground_color (math::color color)
 
auto get_foreground_color () const -> math::color
 
void set_overline_color (math::color color)
 
auto get_overline_color () const -> math::color
 
void set_underline_color (math::color color)
 
auto get_underline_color () const -> math::color
 
void set_strike_color (math::color color)
 
auto get_strike_color () const -> math::color
 
void set_outline_color (math::color color)
 
auto get_outline_color () const -> math::color
 
void set_shadow_color (math::color color)
 
auto get_shadow_color () const -> math::color
 
void set_style_flags (text_style_flags flags)
 
auto get_style_flags () const -> text_style_flags
 
auto operator== (const text_style &other) const -> bool
 

Public Attributes

float opacity = 1.0f
 
uint32_t text_color = math::color::white()
 
uint32_t background_color = math::color::transparent()
 
uint32_t foreground_color = math::color::transparent()
 
uint32_t overline_color = math::color::white()
 
uint32_t underline_color = math::color::white()
 
uint32_t strike_color = math::color::white()
 
uint32_t outline_color = math::color::black()
 
float outline_width = 0.0f
 
math::vec2 shadow_offsets {0.0f, 0.0f}
 
uint32_t shadow_color = math::color::black()
 
float shadow_softener = 1.0f
 
uint32_t style_flags = gfx::style_normal
 

Detailed Description

Definition at line 50 of file text_component.h.

Member Function Documentation

◆ get_background_color()

auto unravel::text_style::get_background_color ( ) const -> math::color
inline

Definition at line 73 of file text_component.h.

◆ get_foreground_color()

auto unravel::text_style::get_foreground_color ( ) const -> math::color
inline

Definition at line 76 of file text_component.h.

◆ get_opacity()

auto unravel::text_style::get_opacity ( ) const -> float
inline

Definition at line 67 of file text_component.h.

◆ get_outline_color()

auto unravel::text_style::get_outline_color ( ) const -> math::color
inline

Definition at line 88 of file text_component.h.

◆ get_overline_color()

auto unravel::text_style::get_overline_color ( ) const -> math::color
inline

Definition at line 79 of file text_component.h.

◆ get_shadow_color()

auto unravel::text_style::get_shadow_color ( ) const -> math::color
inline

Definition at line 91 of file text_component.h.

◆ get_strike_color()

auto unravel::text_style::get_strike_color ( ) const -> math::color
inline

Definition at line 85 of file text_component.h.

◆ get_style_flags()

auto unravel::text_style::get_style_flags ( ) const -> text_style_flags
inline

Definition at line 94 of file text_component.h.

◆ get_text_color()

auto unravel::text_style::get_text_color ( ) const -> math::color
inline

Definition at line 70 of file text_component.h.

◆ get_underline_color()

auto unravel::text_style::get_underline_color ( ) const -> math::color
inline

Definition at line 82 of file text_component.h.

◆ operator==()

auto unravel::text_style::operator== ( const text_style & other) const -> bool
inline

Definition at line 96 of file text_component.h.

◆ set_background_color()

void unravel::text_style::set_background_color ( math::color color)
inline

Definition at line 72 of file text_component.h.

◆ set_foreground_color()

void unravel::text_style::set_foreground_color ( math::color color)
inline

Definition at line 75 of file text_component.h.

◆ set_opacity()

void unravel::text_style::set_opacity ( float opacity)
inline

Definition at line 66 of file text_component.h.

◆ set_outline_color()

void unravel::text_style::set_outline_color ( math::color color)
inline

Definition at line 87 of file text_component.h.

◆ set_overline_color()

void unravel::text_style::set_overline_color ( math::color color)
inline

Definition at line 78 of file text_component.h.

◆ set_shadow_color()

void unravel::text_style::set_shadow_color ( math::color color)
inline

Definition at line 90 of file text_component.h.

◆ set_strike_color()

void unravel::text_style::set_strike_color ( math::color color)
inline

Definition at line 84 of file text_component.h.

◆ set_style_flags()

void unravel::text_style::set_style_flags ( text_style_flags flags)
inline

Definition at line 93 of file text_component.h.

◆ set_text_color()

void unravel::text_style::set_text_color ( math::color color)
inline

Definition at line 69 of file text_component.h.

◆ set_underline_color()

void unravel::text_style::set_underline_color ( math::color color)
inline

Definition at line 81 of file text_component.h.

Member Data Documentation

◆ background_color

uint32_t unravel::text_style::background_color = math::color::transparent()

Definition at line 54 of file text_component.h.

◆ foreground_color

uint32_t unravel::text_style::foreground_color = math::color::transparent()

Definition at line 55 of file text_component.h.

◆ opacity

float unravel::text_style::opacity = 1.0f

Definition at line 52 of file text_component.h.

◆ outline_color

uint32_t unravel::text_style::outline_color = math::color::black()

Definition at line 59 of file text_component.h.

◆ outline_width

float unravel::text_style::outline_width = 0.0f

Definition at line 60 of file text_component.h.

◆ overline_color

uint32_t unravel::text_style::overline_color = math::color::white()

Definition at line 56 of file text_component.h.

◆ shadow_color

uint32_t unravel::text_style::shadow_color = math::color::black()

Definition at line 62 of file text_component.h.

◆ shadow_offsets

math::vec2 unravel::text_style::shadow_offsets {0.0f, 0.0f}

Definition at line 61 of file text_component.h.

◆ shadow_softener

float unravel::text_style::shadow_softener = 1.0f

Definition at line 63 of file text_component.h.

◆ strike_color

uint32_t unravel::text_style::strike_color = math::color::white()

Definition at line 58 of file text_component.h.

◆ style_flags

uint32_t unravel::text_style::style_flags = gfx::style_normal

Definition at line 64 of file text_component.h.

◆ text_color

uint32_t unravel::text_style::text_color = math::color::white()

Definition at line 53 of file text_component.h.

◆ underline_color

uint32_t unravel::text_style::underline_color = math::color::white()

Definition at line 57 of file text_component.h.


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