#include "Types.hpp" namespace cgeditor { bool Element::IsOver(const double &X, const double &Y) const { // Check if no overlap if(X(x+width) || Y(y+height)) return false; return true; } 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