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

#include <juce_AttributedString.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< intrange
 

Friends

class AttributedString
 

Detailed Description

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

Constructor & Destructor Documentation

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

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

See also
AttributedString::setColour()
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()
AttributedString::Attribute::Attribute ( const Attribute other)
AttributedString::Attribute::~Attribute ( )

Member Function Documentation

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

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

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

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

Friends And Related Function Documentation

friend class AttributedString
friend

Member Data Documentation

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