JUCE  v5.1.1-3-g1a0b28c73
JUCE API
AttributedString::Attribute Class Reference

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

#include <juce_AttributedString.h>

Collaboration diagram for AttributedString::Attribute:

Public Member Functions

 Attribute () noexcept
 
 Attribute (const Attribute &) noexcept
 
 Attribute (Attribute &&) noexcept
 
 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...
 
 ~Attribute () noexcept
 
Attributeoperator= (const Attribute &) noexcept
 
Attributeoperator= (Attribute &&) noexcept
 

Public Attributes

Colour colour
 The colour for this range of characters. More...
 
Font font
 The font for this range of characters. More...
 
Range< intrange
 The range of characters to which this attribute will be applied. 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 ( )
noexcept

◆ ~Attribute()

AttributedString::Attribute::~Attribute ( )
noexcept

◆ Attribute() [2/4]

AttributedString::Attribute::Attribute ( const Attribute )
noexcept

◆ Attribute() [3/4]

AttributedString::Attribute::Attribute ( Attribute &&  )
noexcept

◆ 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 )
noexcept

◆ operator=() [2/2]

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

Member Data Documentation

◆ colour

Colour AttributedString::Attribute::colour

The colour for this range of characters.

◆ font

Font AttributedString::Attribute::font

The font for this range of characters.

◆ range

Range<int> AttributedString::Attribute::range

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


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