29namespace RelativePointHelpers
33 s.incrementToEndOfWhitespace();
65 RelativePointHelpers::skipComma (text);
74bool RelativePoint::operator!= (
const RelativePoint&
other)
const noexcept
76 return ! operator== (
other);
Wraps a pointer to a null-terminated UTF-8 character string, and provides various methods to operate ...
When evaluating an Expression object, this class is used to resolve symbols and perform functions tha...
static Expression parse(String::CharPointerType &stringToParse, String &parseError)
Returns an Expression which parses a string from a character pointer, and updates the pointer to indi...
A pair of (x, y) coordinates.
Expresses a coordinate as a dynamically evaluated expression.
void moveToAbsolute(double absoluteTargetPosition, const Expression::Scope *evaluationScope)
Changes the value of this coord to make it resolve to the specified position.
bool isDynamic() const
Returns true if this coordinate depends on any other coordinates for its position.
String toString() const
Returns a string which represents this coordinate.
double resolve(const Expression::Scope *evaluationScope) const
Calculates the absolute position of this coordinate.
An X-Y position stored as a pair of RelativeCoordinate values.
RelativePoint()
Creates a point at the origin.
void moveToAbsolute(Point< float > newPos, const Expression::Scope *evaluationContext)
Changes the values of this point's coordinates to make it resolve to the specified position.
Point< float > resolve(const Expression::Scope *evaluationContext) const
Calculates the absolute position of this point.
bool isDynamic() const
Returns true if this point depends on any other coordinates for its position.
String toString() const
Returns a string which represents this point.
CharPointerType getCharPointer() const noexcept
Returns the character pointer currently being used to store this string.
CharPointer_UTF8 CharPointerType
This is the character encoding type used internally to store the string.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...