JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::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 juce::AttributedString::Attribute:

Public Member Functions

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

Public Attributes

Colour colour { 0xff000000 }
 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]

juce::AttributedString::Attribute::Attribute ( )
default

◆ Attribute() [2/4]

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

◆ Attribute() [3/4]

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

◆ Attribute() [4/4]

juce::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& juce::AttributedString::Attribute::operator= ( Attribute &&  )
defaultnoexcept

◆ operator=() [2/2]

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

Member Data Documentation

◆ colour

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

The colour for this range of characters.

◆ font

Font juce::AttributedString::Attribute::font

The font for this range of characters.

◆ range

Range<int> juce::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: