#include <sstream>
#include "anchor_point.hpp"
#include "math/rect.hpp"
+#include "msg.hpp"
std::string anchor_point_to_string(AnchorPoint point)
{
#ifdef DEBUG
throw new std::runtime_error("Invalid anchor point found");
#endif
- printf("Invalid anchor point found");
+ msg_warning("Invalid anchor point found");
result.x = rect.get_left();
break;
}
#ifdef DEBUG
throw new std::runtime_error("Invalid anchor point found");
#endif
- printf("Invalid anchor point found");
+ msg_warning("Invalid anchor point found");
result.y = rect.get_top();
break;
}
#ifdef DEBUG
throw new std::runtime_error("Invalid anchor point found");
#endif
- printf("Invalid anchor point found");
+ msg_warning("Invalid anchor point found");
result.x = destrect.get_left();
break;
}
#ifdef DEBUG
throw new std::runtime_error("Invalid anchor point found");
#endif
- printf("Invalid anchor point found");
+ msg_warning("Invalid anchor point found");
result.y = destrect.get_top();
break;
}