#include "Types.hpp" namespace cgeditor { bool Element::IsOver(const double &X, const double &Y) const { if (width < 0) { return (x >= x && Y >= y && Y <= (y + height)); } return ((X >= x && X <= (x + width) && Y >= y && Y <= (y + height))); } Property operator|(Property lhs, Property rhs) { return static_cast( static_cast>(lhs) | static_cast>(rhs)); } bool operator&(Property lhs, Property rhs) { return (static_cast>(lhs) & static_cast>(rhs)); } Property &operator|=(Property &lhs, Property rhs) { return lhs = static_cast( static_cast>(lhs) | static_cast>(rhs)); } } // namespace cgeditor