#include <hikogui/text/text_style.hpp>
|
|
| text_style (text_style const &) noexcept=default |
|
| text_style (text_style &&) noexcept=default |
|
text_style & | operator= (text_style const &) noexcept=default |
|
text_style & | operator= (text_style &&) noexcept=default |
|
constexpr bool | empty () const noexcept |
|
constexpr bool | complete () const noexcept |
|
lean_vector< font_id > const & | font_chain () const |
| void | set_font_chain (lean_vector< font_id > font_chain, bool important=false) |
| | Set the font-chain for this text style.
|
|
constexpr hi::color | color () const |
|
constexpr void | set_color (hi::color color, bool important=false) |
|
constexpr unit::font_size_s | size () const |
|
constexpr void | set_size (unit::font_size_s size, bool important=false) |
|
constexpr float | line_spacing () const |
|
constexpr void | set_line_spacing (float line_spacing, bool important=false) |
|
constexpr float | paragraph_spacing () const |
|
constexpr void | set_paragraph_spacing (float paragraph_spacing, bool important=false) |
|
void | clear () noexcept |
| void | apply (text_style const &other) noexcept |
| | Apply the given text-style on top of this style.
|
|
|
bool | operator== (text_style const &, text_style const &) noexcept=default |
The text-style that a run-of-text must be displayed in.
◆ apply()
| void v1::text_style::apply |
( |
text_style const & | other | ) |
|
|
inlinenoexcept |
Apply the given text-style on top of this style.
◆ set_font_chain()
| void v1::text_style::set_font_chain |
( |
lean_vector< font_id > | font_chain, |
|
|
bool | important = false ) |
|
inline |
Set the font-chain for this text style.
The new chain is prepended in front of the current chain. Unless imporant is set, in which case the font-chain is replaced.
- Parameters
-
| font_chain | The chain of fonts to search glyphs in. |
The documentation for this class was generated from the following file: