QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskTextOptions Class Reference

Detailed Description

Definition at line 16 of file QskTextOptions.h.

Public Types

enum  FontSizeMode : quint8 { FixedSize , HorizontalFit , VerticalFit , Fit }
 
enum  WrapMode : quint8 { NoWrap = QTextOption::NoWrap , WordWrap = QTextOption::WordWrap , WrapAnywhere = QTextOption::WrapAnywhere , Wrap = QTextOption::WrapAtWordBoundaryOrAnywhere }
 
enum  TextFormat : quint8 {
  PlainText = Qt::PlainText , RichText = Qt::RichText , AutoText = Qt::AutoText , MarkdownText = Qt::MarkdownText ,
  StyledText = 4
}
 

Public Member Functions

void setFormat (TextFormat) noexcept
 
TextFormat effectiveFormat (const QString &text) const
 
constexpr Qt::TextElideMode elideMode () const noexcept
 
void setElideMode (Qt::TextElideMode) noexcept
 
constexpr Qt::TextElideMode effectiveElideMode () const noexcept
 
constexpr FontSizeMode fontSizeMode () const noexcept
 
void setFontSizeMode (FontSizeMode) noexcept
 
constexpr WrapMode wrapMode () const noexcept
 
void setWrapMode (WrapMode) noexcept
 
constexpr int maximumLineCount () const noexcept
 
void setMaximumLineCount (int) noexcept
 
constexpr bool operator== (const QskTextOptions &other) const noexcept
 
constexpr bool operator!= (const QskTextOptions &other) const noexcept
 
QskHashValue hash (QskHashValue seed) const noexcept
 
int textFlags () const noexcept
 

Public Attributes

constexpr TextFormat const noexcept
 

Properties

TextFormat format
 
Qt::TextElideMode elideMode
 
WrapMode wrapMode
 
FontSizeMode fontSizeMode
 
int maximumLineCount
 

Member Enumeration Documentation

◆ FontSizeMode

enum QskTextOptions::FontSizeMode : quint8

Definition at line 27 of file QskTextOptions.h.

◆ TextFormat

enum QskTextOptions::TextFormat : quint8

Definition at line 45 of file QskTextOptions.h.

◆ WrapMode

enum QskTextOptions::WrapMode : quint8

Definition at line 36 of file QskTextOptions.h.

Constructor & Destructor Documentation

◆ QskTextOptions()

constexpr QskTextOptions::QskTextOptions ( )
inlineconstexprnoexcept

Definition at line 91 of file QskTextOptions.h.

Member Function Documentation

◆ effectiveElideMode()

constexpr Qt::TextElideMode QskTextOptions::effectiveElideMode ( ) const
inlineconstexprnoexcept

Definition at line 120 of file QskTextOptions.h.

◆ effectiveFormat()

QskTextOptions::TextFormat QskTextOptions::effectiveFormat ( const QString &  text) const

Definition at line 53 of file QskTextOptions.cpp.

◆ elideMode()

constexpr Qt::TextElideMode QskTextOptions::elideMode ( ) const
inlineconstexprnoexcept

Definition at line 115 of file QskTextOptions.h.

◆ fontSizeMode()

constexpr QskTextOptions::FontSizeMode QskTextOptions::fontSizeMode ( ) const
inlineconstexprnoexcept

Definition at line 141 of file QskTextOptions.h.

◆ hash()

QskHashValue QskTextOptions::hash ( QskHashValue  seed) const
noexcept

Definition at line 64 of file QskTextOptions.cpp.

◆ maximumLineCount()

constexpr int QskTextOptions::maximumLineCount ( ) const
inlineconstexprnoexcept

Definition at line 151 of file QskTextOptions.h.

◆ operator!=()

constexpr bool QskTextOptions::operator!= ( const QskTextOptions other) const
inlineconstexprnoexcept

Definition at line 166 of file QskTextOptions.h.

◆ operator==()

constexpr bool QskTextOptions::operator== ( const QskTextOptions other) const
inlineconstexprnoexcept

Definition at line 156 of file QskTextOptions.h.

◆ setElideMode()

void QskTextOptions::setElideMode ( Qt::TextElideMode  elideMode)
inlinenoexcept

Definition at line 110 of file QskTextOptions.h.

◆ setFontSizeMode()

void QskTextOptions::setFontSizeMode ( FontSizeMode  fontSizeMode)
inlinenoexcept

Definition at line 136 of file QskTextOptions.h.

◆ setFormat()

void QskTextOptions::setFormat ( TextFormat  format)
inlinenoexcept

Definition at line 100 of file QskTextOptions.h.

◆ setMaximumLineCount()

void QskTextOptions::setMaximumLineCount ( int  lineCount)
inlinenoexcept

Definition at line 146 of file QskTextOptions.h.

◆ setWrapMode()

void QskTextOptions::setWrapMode ( WrapMode  wrapMode)
inlinenoexcept

Definition at line 126 of file QskTextOptions.h.

◆ textFlags()

int QskTextOptions::textFlags ( ) const
noexcept

Definition at line 20 of file QskTextOptions.cpp.

◆ wrapMode()

constexpr QskTextOptions::WrapMode QskTextOptions::wrapMode ( ) const
inlineconstexprnoexcept

Definition at line 131 of file QskTextOptions.h.

Member Data Documentation

◆ noexcept

constexpr TextFormat const QskTextOptions::noexcept
constexpr

Definition at line 57 of file QskTextOptions.h.

Property Documentation

◆ elideMode

Qt::TextElideMode QskTextOptions::elideMode
readwrite

Definition at line 21 of file QskTextOptions.h.

◆ fontSizeMode

FontSizeMode QskTextOptions::fontSizeMode
readwrite

Definition at line 23 of file QskTextOptions.h.

◆ format

TextFormat QskTextOptions::format
readwrite

Definition at line 20 of file QskTextOptions.h.

◆ maximumLineCount

int QskTextOptions::maximumLineCount
readwrite

Definition at line 24 of file QskTextOptions.h.

◆ wrapMode

WrapMode QskTextOptions::wrapMode
readwrite

Definition at line 22 of file QskTextOptions.h.