Commit 915f015e authored by twanvl's avatar twanvl

Removed TextBackground, it never worked anyway

parent 2de5ea24
......@@ -81,12 +81,6 @@ void TextStyle::markDependencyMember(const String& name, const Dependency& dep)
}
}
IMPLEMENT_REFLECTION(TextBackground) {
REFLECT(image);
REFLECT_N("displacement_x", displacement.width);
REFLECT_N("displacement_y", displacement.height);
}
template <typename T> void reflect_content(T& tag, const TextStyle& ts) {}
template <> void reflect_content(GetMember& tag, const TextStyle& ts) {
REFLECT_N("content_width", ts.content_width);
......@@ -115,9 +109,6 @@ IMPLEMENT_REFLECTION(TextStyle) {
REFLECT(line_height_line);
REFLECT_N("mask", mask_filename);
REFLECT(direction);
REFLECT(text_background);
REFLECT(text_background_left);
REFLECT(text_background_right);
reflect_content(tag, *this);
}
......
......@@ -47,15 +47,6 @@ class TextField : public Field {
// ----------------------------------------------------------------------------- : TextStyle
/// Background behind text
class TextBackground : public IntrusivePtrBase<TextBackground> {
public:
ScriptableImage image; ///< background image, stretched to text size
RealSize displacement;
private:
DECLARE_REFLECTION();
};
/// The Style for a TextField
class TextStyle : public Style {
public:
......@@ -78,8 +69,6 @@ class TextStyle : public Style {
String mask_filename; ///< Filename of the mask
ContourMask mask; ///< Mask to fit the text to (may be null)
Direction direction; ///< In what direction is text layed out?
TextBackgroundP text_background; ///< Image behind the text
TextBackgroundP text_background_left, text_background_right;
// information from text rendering
double content_width, content_height; ///< Size of the rendered text
int content_lines; ///< Number of rendered lines
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment