openshot-audio  0.1.6
Public Member Functions | Public Attributes | Friends | List of all members
juce::AttributedString::Attribute Class Reference

#include <juce_graphics.h>

Public Member Functions

 Attribute (Range< int > range, Colour colour)
 
 Attribute (Range< int > range, const Font &font)
 
 Attribute (const Attribute &)
 
 ~Attribute ()
 
const FontgetFont () const noexcept
 
const ColourgetColour () const noexcept
 

Public Attributes

const Range< int > range
 

Friends

class AttributedString
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Attribute() [1/3]

AttributedString::Attribute::Attribute ( Range< int >  range,
Colour  colour 
)

Creates an attribute that changes the colour for a range of characters.

See also
AttributedString::setColour()

◆ Attribute() [2/3]

AttributedString::Attribute::Attribute ( Range< int >  range,
const Font font 
)

Creates an attribute that changes the font for a range of characters.

See also
AttributedString::setFont()

◆ Attribute() [3/3]

AttributedString::Attribute::Attribute ( const Attribute other)

◆ ~Attribute()

AttributedString::Attribute::~Attribute ( )

Member Function Documentation

◆ getColour()

const Colour* juce::AttributedString::Attribute::getColour ( ) const
inlinenoexcept

If this attribute specifies a colour, this returns it; otherwise it returns nullptr.

◆ getFont()

const Font* juce::AttributedString::Attribute::getFont ( ) const
inlinenoexcept

If this attribute specifies a font, this returns it; otherwise it returns nullptr.

Friends And Related Function Documentation

◆ AttributedString

friend class AttributedString
friend

Member Data Documentation

◆ range

const 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 files: