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 { FixedSize , HorizontalFit , VerticalFit , Fit }
 
enum  WrapMode { NoWrap = QTextOption::NoWrap , WordWrap = QTextOption::WordWrap , WrapAnywhere = QTextOption::WrapAnywhere , Wrap = QTextOption::WrapAtWordBoundaryOrAnywhere }
 
enum  TextFormat { PlainText = Qt::PlainText , RichText = Qt::RichText , AutoText = Qt::AutoText , StyledText = 4 }
 

Properties

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

Public Attributes

constexpr TextFormat const noexcept
 

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
 

Member Enumeration Documentation

◆ FontSizeMode

enum QskTextOptions::FontSizeMode

Definition at line 27 of file QskTextOptions.h.

◆ TextFormat

enum QskTextOptions::TextFormat

Definition at line 45 of file QskTextOptions.h.

◆ WrapMode

enum QskTextOptions::WrapMode

Definition at line 36 of file QskTextOptions.h.

Constructor & Destructor Documentation

◆ QskTextOptions()

constexpr QskTextOptions::QskTextOptions ( )
inlineconstexprnoexcept

Definition at line 90 of file QskTextOptions.h.

Member Function Documentation

◆ effectiveElideMode()

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

Definition at line 119 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 114 of file QskTextOptions.h.

◆ fontSizeMode()

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

Definition at line 139 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 149 of file QskTextOptions.h.

◆ operator!=()

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

Definition at line 164 of file QskTextOptions.h.

◆ operator==()

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

Definition at line 154 of file QskTextOptions.h.

◆ setElideMode()

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

Definition at line 109 of file QskTextOptions.h.

◆ setFontSizeMode()

void QskTextOptions::setFontSizeMode ( FontSizeMode  fontSizeMode)
inlinenoexcept

Definition at line 134 of file QskTextOptions.h.

◆ setFormat()

void QskTextOptions::setFormat ( TextFormat  format)
inlinenoexcept

Definition at line 99 of file QskTextOptions.h.

◆ setMaximumLineCount()

void QskTextOptions::setMaximumLineCount ( int  lineCount)
inlinenoexcept

Definition at line 144 of file QskTextOptions.h.

◆ setWrapMode()

void QskTextOptions::setWrapMode ( WrapMode  wrapMode)
inlinenoexcept

Definition at line 124 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 129 of file QskTextOptions.h.

Member Data Documentation

◆ noexcept

constexpr TextFormat const QskTextOptions::noexcept
constexpr

Definition at line 56 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.