Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::RelativePoint Class Reference

#include <relative_point.hpp>

Public Member Functions

Point evaluate (const Rect &parent, const std::map< std::string, Rect > &named={}) const
 Evaluate both axes against the given environment.
const RelativeExpression & x () const noexcept
const RelativeExpression & y () const noexcept

Static Public Member Functions

static RelativePoint parse (const std::string &source)
 Parse a "x, y" expression.

Member Function Documentation

◆ evaluate()

Point pulp::view::RelativePoint::evaluate ( const Rect & parent,
const std::map< std::string, Rect > & named = {} ) const

Evaluate both axes against the given environment.

◆ parse()

RelativePoint pulp::view::RelativePoint::parse ( const std::string & source)
static

Parse a "x, y" expression.

Throws std::invalid_argument on syntax error.

◆ x()

const RelativeExpression & pulp::view::RelativePoint::x ( ) const
inlinenoexcept

◆ y()

const RelativeExpression & pulp::view::RelativePoint::y ( ) const
inlinenoexcept

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