Public Member Functions | Public Attributes | List of all members
AttributedString::Attribute Class Reference

An attribute that has been applied to a range of characters in an AttributedString. More...

Public Member Functions

 Attribute ()=default
 
 Attribute (const Attribute &)=default
 
Attributeoperator= (const Attribute &)=default
 
 Attribute (Attribute &&) noexcept=default
 
Attributeoperator= (Attribute &&) noexcept=default
 
 Attribute (Range< int > range, const Font &font, Colour colour) noexcept
 Creates an attribute that specifies the font and colour for a range of characters. More...
 

Public Attributes

Range< intrange
 The range of characters to which this attribute will be applied. More...
 
Font font
 The font for this range of characters. More...
 
Colour colour { 0xff000000 }
 The colour for this range of characters. More...
 

Detailed Description

An attribute that has been applied to a range of characters in an AttributedString.

Constructor & Destructor Documentation

◆ Attribute() [1/4]

AttributedString::Attribute::Attribute ( )
default

◆ Attribute() [2/4]

AttributedString::Attribute::Attribute ( const Attribute )
default

◆ Attribute() [3/4]

AttributedString::Attribute::Attribute ( Attribute &&  )
defaultnoexcept

◆ Attribute() [4/4]

AttributedString::Attribute::Attribute ( Range< int range,
const Font font,
Colour  colour 
)
noexcept

Creates an attribute that specifies the font and colour for a range of characters.

Member Function Documentation

◆ operator=() [1/2]

Attribute& AttributedString::Attribute::operator= ( const Attribute )
default

◆ operator=() [2/2]

Attribute& AttributedString::Attribute::operator= ( Attribute &&  )
defaultnoexcept

Member Data Documentation

◆ range

Range<int> AttributedString::Attribute::range

The range of characters to which this attribute will be applied.

◆ font

Font AttributedString::Attribute::font

The font for this range of characters.

◆ colour

Colour AttributedString::Attribute::colour { 0xff000000 }

The colour for this range of characters.


The documentation for this class was generated from the following file: