#include <paragraph_component.h>
◆ FontStyle
| Enumerator |
|---|
| REGULAR | |
| BOLD | |
| ITALIC | |
| BOLD_ITALIC | |
◆ HorzAlignment
| Enumerator |
|---|
| LEFT | |
| CENTER | |
| RIGHT | |
◆ VertAlignment
| Enumerator |
|---|
| TOP | |
| MIDDLE | |
| BOTTOM | |
◆ Paragraph()
| ga::Paragraph::Paragraph |
( |
| ) |
|
◆ calculateTextFlow()
| void ga::Paragraph::calculateTextFlow |
( |
| ) |
|
|
inlineprotected |
◆ calcWordRect()
| void ga::Paragraph::calcWordRect |
( |
Word & |
word | ) |
|
|
protected |
◆ cleanLayout()
| void ga::Paragraph::cleanLayout |
( |
| ) |
|
◆ draw()
| void ga::Paragraph::draw |
( |
| ) |
|
|
virtual |
◆ drawParagraph()
| void ga::Paragraph::drawParagraph |
( |
bool |
forceRedraw = false | ) |
|
|
inlineprotected |
◆ fontForStyle()
| std::shared_ptr< Font > ga::Paragraph::fontForStyle |
( |
FontStyle |
style | ) |
|
|
inlineprotected |
◆ getBoldFont()
| std::shared_ptr< Font > ga::Paragraph::getBoldFont |
( |
| ) |
|
|
inline |
◆ getBoldItalicFont()
| std::shared_ptr< Font > ga::Paragraph::getBoldItalicFont |
( |
| ) |
|
|
inline |
◆ getFont()
| std::shared_ptr< Font > ga::Paragraph::getFont |
( |
| ) |
|
|
inline |
◆ getHorizontalAlignment()
◆ getIsFboCacheEnabled()
| bool ga::Paragraph::getIsFboCacheEnabled |
( |
| ) |
|
|
inline |
◆ getIsMarkdownText()
| bool ga::Paragraph::getIsMarkdownText |
( |
| ) |
const |
|
inline |
◆ getItalicFont()
| std::shared_ptr< Font > ga::Paragraph::getItalicFont |
( |
| ) |
|
|
inline |
◆ getLeading()
| float ga::Paragraph::getLeading |
( |
| ) |
|
|
inline |
◆ getNumberOfLines()
| int ga::Paragraph::getNumberOfLines |
( |
| ) |
|
◆ getParagraphBounds()
| ga::Rect ga::Paragraph::getParagraphBounds |
( |
| ) |
|
◆ getSize()
| ga::vec2 ga::Paragraph::getSize |
( |
| ) |
|
|
inline |
◆ getText()
| std::string ga::Paragraph::getText |
( |
| ) |
|
|
inline |
◆ getTextColor()
◆ getTextOffset()
| ga::vec3 ga::Paragraph::getTextOffset |
( |
| ) |
|
|
inline |
◆ getVerticalAlignment()
◆ getWordBounds()
| std::vector< ga::Rect > ga::Paragraph::getWordBounds |
( |
| ) |
|
◆ getWordSpacing()
| float ga::Paragraph::getWordSpacing |
( |
| ) |
|
|
inline |
◆ parseMarkdownStyles()
◆ setBoldFont()
| Paragraph & ga::Paragraph::setBoldFont |
( |
std::shared_ptr< Font > |
font | ) |
|
◆ setBoldItalicFont()
| Paragraph & ga::Paragraph::setBoldItalicFont |
( |
std::shared_ptr< Font > |
font | ) |
|
◆ setFboCacheEnabled()
| Paragraph & ga::Paragraph::setFboCacheEnabled |
( |
bool |
enable | ) |
|
◆ setFont()
| Paragraph & ga::Paragraph::setFont |
( |
std::shared_ptr< Font > |
font, |
|
|
bool |
resetLeadingAndSpacing = true |
|
) |
| |
◆ setHorizontalAlignment()
◆ setIsMarkdownText()
| Paragraph & ga::Paragraph::setIsMarkdownText |
( |
bool |
isMarkdown | ) |
|
◆ setItalicFont()
| Paragraph & ga::Paragraph::setItalicFont |
( |
std::shared_ptr< Font > |
font | ) |
|
◆ setLeading()
| Paragraph & ga::Paragraph::setLeading |
( |
float |
px | ) |
|
◆ setSize()
| Paragraph & ga::Paragraph::setSize |
( |
ga::vec2 |
size | ) |
|
◆ setText()
| Paragraph & ga::Paragraph::setText |
( |
std::string |
text | ) |
|
◆ setTextColor()
◆ setTextOffset() [1/2]
| Paragraph & ga::Paragraph::setTextOffset |
( |
ga::vec2 |
textOffset | ) |
|
|
inline |
◆ setTextOffset() [2/2]
| Paragraph & ga::Paragraph::setTextOffset |
( |
ga::vec3 |
textOffset | ) |
|
◆ setVerticalAlignment()
◆ setWordSpacing()
| Paragraph & ga::Paragraph::setWordSpacing |
( |
float |
px | ) |
|
◆ m_boldFont
| std::shared_ptr<Font> ga::Paragraph::m_boldFont |
|
protected |
◆ m_boldItalicFont
| std::shared_ptr<Font> ga::Paragraph::m_boldItalicFont |
|
protected |
◆ m_cacheToFbo
| bool ga::Paragraph::m_cacheToFbo = false |
|
protected |
◆ m_fbo
| ga::Fbo ga::Paragraph::m_fbo |
|
protected |
◆ m_fboRect
◆ m_font
| std::shared_ptr<Font> ga::Paragraph::m_font |
|
protected |
◆ m_hAlignment
◆ m_isLayoutDirty
| bool ga::Paragraph::m_isLayoutDirty = true |
|
protected |
◆ m_isMarkdownFormatted
| bool ga::Paragraph::m_isMarkdownFormatted |
|
protected |
◆ m_italicFont
| std::shared_ptr<Font> ga::Paragraph::m_italicFont |
|
protected |
◆ m_leading
| float ga::Paragraph::m_leading |
|
protected |
◆ m_lines
| std::vector<std::vector<Word*> > ga::Paragraph::m_lines |
|
protected |
◆ m_offset
| glm::vec3 ga::Paragraph::m_offset |
|
protected |
◆ m_size
| glm::vec2 ga::Paragraph::m_size |
|
protected |
◆ m_spacing
| float ga::Paragraph::m_spacing |
|
protected |
◆ m_styledText
◆ m_text
| std::string ga::Paragraph::m_text |
|
protected |
◆ m_textColor
◆ m_vAlignment
◆ m_words
| std::vector<Word> ga::Paragraph::m_words |
|
protected |
The documentation for this class was generated from the following files:
- C:/Users/beiji/Desktop/G&A/oF/of_v0.11.2_vs2017_release/addons/ofxGAKit/libs/gaKit/src/ga/graph/components/paragraph_component.h
- C:/Users/beiji/Desktop/G&A/oF/of_v0.11.2_vs2017_release/addons/ofxGAKit/libs/gaKit/src/ga/graph/components/paragraph_component.cpp