Support Forum G3D Web Page |
Public Types | |
enum | NewlineStyle { NEWLINE_WINDOWS, NEWLINE_UNIX } |
Style of newline used by word wrapping and by (optional) conversion. More... | |
enum | WordWrapMode { WRAP_NONE, WRAP_WITHOUT_BREAKING, WRAP_ALWAYS } |
WRAP_NONE Word wrapping is disabled WRAP_WITHOUT_BREAKING Word-wrap, but don't break continuous lines that are longer than numColumns (default) WRAP_ALWAYS Wrap even if it means breaking a continuous line or a quoted string. More... | |
Public Member Functions | |
Settings () | |
Public Attributes | |
bool | allowWordWrapInsideDoubleQuotes |
Is word-wrapping allowed to insert newlines inside double quotes? Default: false. More... | |
bool | convertNewlines |
If true, all newlines are converted to NewlineStyle regardless of how they start out. More... | |
String | falseSymbol |
Used by writeBoolean. More... | |
NewlineStyle | newlineStyle |
int | numColumns |
Number of columns for word wrapping. More... | |
int | spacesPerIndent |
Number of spaces in each indent. More... | |
String | trueSymbol |
Used by writeBoolean. More... | |
WordWrapMode | wordWrap |
Defaults to WRAP_WITHOUT_BREAKING. More... | |
WRAP_NONE Word wrapping is disabled WRAP_WITHOUT_BREAKING Word-wrap, but don't break continuous lines that are longer than numColumns (default) WRAP_ALWAYS Wrap even if it means breaking a continuous line or a quoted string.
Word wrapping is only allowed at whitespaces ('\n', '\r', '\t', ' '); it will not occur after commas, punctuation, minus signs, or any other characters
Enumerator | |
---|---|
WRAP_NONE | |
WRAP_WITHOUT_BREAKING | |
WRAP_ALWAYS |
|
inline |
bool G3D::TextOutput::Settings::allowWordWrapInsideDoubleQuotes |
Is word-wrapping allowed to insert newlines inside double quotes? Default: false.
bool G3D::TextOutput::Settings::convertNewlines |
If true, all newlines are converted to NewlineStyle regardless of how they start out.
Default: true.
String G3D::TextOutput::Settings::falseSymbol |
Used by writeBoolean.
NewlineStyle G3D::TextOutput::Settings::newlineStyle |
Referenced by Settings().
int G3D::TextOutput::Settings::numColumns |
Number of columns for word wrapping.
Default: 8
int G3D::TextOutput::Settings::spacesPerIndent |
Number of spaces in each indent.
Default: 4
String G3D::TextOutput::Settings::trueSymbol |
Used by writeBoolean.
WordWrapMode G3D::TextOutput::Settings::wordWrap |
Defaults to WRAP_WITHOUT_BREAKING.