attrtypes/rect.hpp

class gviz::attrtypes::Rect

Public Functions

inline constexpr Rect(double llx, double lly, double urx, double ury)
inline constexpr double llx() const noexcept
inline constexpr double lly() const noexcept
inline constexpr double urx() const noexcept
inline constexpr double ury() const noexcept
inline constexpr Rect &set_llx(double value)
inline constexpr Rect &set_lly(double value)
inline constexpr Rect &set_urx(double value)
inline constexpr Rect &set_ury(double value)
inline constexpr bool operator==(const Rect &other) const noexcept
inline constexpr bool operator!=(const Rect &other) const noexcept

Public Static Functions

static inline constexpr std::optional<Rect> make(double llx, double lly, double urx, double ury)

Private Functions

inline constexpr Rect()
inline constexpr Rect &safe_set(double &dest, double value)

Private Members

double llx_ = {}
double lly_ = {}
double urx_ = {}
double ury_ = {}

Friends

inline friend constexpr Rect operator+(const Rect &lhs, const Rect &rhs) noexcept
inline friend constexpr Rect operator-(const Rect &lhs, const Rect &rhs)
namespace gviz
namespace attrtypes
file rect.hpp
#include <>
#include <>
dir /home/cthulhu/projects/repos/libgvizard/include/gvizard/attrtypes
dir /home/cthulhu/projects/repos/libgvizard/include/gvizard
dir /home/cthulhu/projects/repos/libgvizard/include