JUCE  v5.1.1-3-g1a0b28c73
JUCE API
DrawableText::ValueTreeWrapper Class Reference

Internally-used class for wrapping a DrawableText's state into a ValueTree. More...

#include <juce_DrawableText.h>

Inheritance diagram for DrawableText::ValueTreeWrapper:
Collaboration diagram for DrawableText::ValueTreeWrapper:

Public Member Functions

 ValueTreeWrapper (const ValueTree &state)
 
RelativeParallelogram getBoundingBox () const
 
Colour getColour () const
 
Font getFont () const
 
RelativeCoordinate getFontHeight () const
 
RelativeCoordinate getFontHorizontalScale () const
 
Value getFontValue (UndoManager *undoManager)
 
String getID () const
 
Justification getJustification () const
 
ValueTreegetState () noexcept
 
String getText () const
 
Value getTextValue (UndoManager *undoManager)
 
void setBoundingBox (const RelativeParallelogram &newBounds, UndoManager *undoManager)
 
void setColour (Colour newColour, UndoManager *undoManager)
 
void setFont (const Font &newFont, UndoManager *undoManager)
 
void setFontHeight (const RelativeCoordinate &newHeight, UndoManager *undoManager)
 
void setFontHorizontalScale (const RelativeCoordinate &newScale, UndoManager *undoManager)
 
void setID (const String &newID)
 
void setJustification (Justification newJustification, UndoManager *undoManager)
 
void setText (const String &newText, UndoManager *undoManager)
 

Public Attributes

ValueTree state
 

Static Public Attributes

static const Identifier bottomLeft
 
static const Identifier colour
 
static const Identifier font
 
static const Identifier fontHeight
 
static const Identifier fontHScale
 
static const Identifier justification
 
static const Identifier text
 
static const Identifier topLeft
 
static const Identifier topRight
 

Detailed Description

Internally-used class for wrapping a DrawableText's state into a ValueTree.

Constructor & Destructor Documentation

◆ ValueTreeWrapper()

DrawableText::ValueTreeWrapper::ValueTreeWrapper ( const ValueTree state)

Member Function Documentation

◆ getBoundingBox()

RelativeParallelogram DrawableText::ValueTreeWrapper::getBoundingBox ( ) const

◆ getColour()

Colour DrawableText::ValueTreeWrapper::getColour ( ) const

◆ getFont()

Font DrawableText::ValueTreeWrapper::getFont ( ) const

◆ getFontHeight()

RelativeCoordinate DrawableText::ValueTreeWrapper::getFontHeight ( ) const

◆ getFontHorizontalScale()

RelativeCoordinate DrawableText::ValueTreeWrapper::getFontHorizontalScale ( ) const

◆ getFontValue()

Value DrawableText::ValueTreeWrapper::getFontValue ( UndoManager undoManager)

◆ getID()

String Drawable::ValueTreeWrapperBase::getID ( ) const
inherited

◆ getJustification()

Justification DrawableText::ValueTreeWrapper::getJustification ( ) const

◆ getState()

ValueTree& Drawable::ValueTreeWrapperBase::getState ( )
inlinenoexceptinherited

◆ getText()

String DrawableText::ValueTreeWrapper::getText ( ) const

◆ getTextValue()

Value DrawableText::ValueTreeWrapper::getTextValue ( UndoManager undoManager)

◆ setBoundingBox()

void DrawableText::ValueTreeWrapper::setBoundingBox ( const RelativeParallelogram newBounds,
UndoManager undoManager 
)

◆ setColour()

void DrawableText::ValueTreeWrapper::setColour ( Colour  newColour,
UndoManager undoManager 
)

◆ setFont()

void DrawableText::ValueTreeWrapper::setFont ( const Font newFont,
UndoManager undoManager 
)

◆ setFontHeight()

void DrawableText::ValueTreeWrapper::setFontHeight ( const RelativeCoordinate newHeight,
UndoManager undoManager 
)

◆ setFontHorizontalScale()

void DrawableText::ValueTreeWrapper::setFontHorizontalScale ( const RelativeCoordinate newScale,
UndoManager undoManager 
)

◆ setID()

void Drawable::ValueTreeWrapperBase::setID ( const String newID)
inherited

◆ setJustification()

void DrawableText::ValueTreeWrapper::setJustification ( Justification  newJustification,
UndoManager undoManager 
)

◆ setText()

void DrawableText::ValueTreeWrapper::setText ( const String newText,
UndoManager undoManager 
)

Member Data Documentation

◆ bottomLeft

const Identifier DrawableText::ValueTreeWrapper::bottomLeft
static

◆ colour

const Identifier DrawableText::ValueTreeWrapper::colour
static

◆ font

const Identifier DrawableText::ValueTreeWrapper::font
static

◆ fontHeight

const Identifier DrawableText::ValueTreeWrapper::fontHeight
static

◆ fontHScale

const Identifier DrawableText::ValueTreeWrapper::fontHScale
static

◆ justification

const Identifier DrawableText::ValueTreeWrapper::justification
static

◆ state

ValueTree Drawable::ValueTreeWrapperBase::state
inherited

◆ text

const Identifier DrawableText::ValueTreeWrapper::text
static

◆ topLeft

const Identifier DrawableText::ValueTreeWrapper::topLeft
static

◆ topRight

const Identifier DrawableText::ValueTreeWrapper::topRight
static

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