Move ScaleAwareText to render_text.hpp
This commit is contained in:
@@ -29,11 +29,6 @@ public:
|
||||
rectangle getEnclosingRect();
|
||||
};
|
||||
|
||||
struct ScaleAwareText {
|
||||
sf::Text text;
|
||||
rectangle clip_rect;
|
||||
};
|
||||
|
||||
void fill_rect(sf::RenderTarget& target, rectangle rect, sf::Color colour);
|
||||
void fill_circle(sf::RenderTarget& target, rectangle rect, sf::Color colour);
|
||||
void fill_roundrect(sf::RenderTarget& target, rectangle rect, int rad, sf::Color colour);
|
||||
|
@@ -40,6 +40,11 @@ struct TextStyle {
|
||||
mutable std::map<std::string, location> measurementCache;
|
||||
};
|
||||
|
||||
struct ScaleAwareText {
|
||||
sf::Text text;
|
||||
rectangle clip_rect;
|
||||
};
|
||||
|
||||
// elements: std::make_tuple(last_line_break, last_word_break, line_width)
|
||||
typedef std::vector<std::tuple<unsigned short, unsigned short, unsigned short>> break_info_t;
|
||||
|
||||
|
Reference in New Issue
Block a user