X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInset.h;h=1601ddb42ed9d66b97edc6270381d48780d7e2f8;hb=a8e9fe82d0461fa821b3ec70c83fe76f02eafcb0;hp=3eb44fedaa63a9eb3e93ac1ce8c7ce1984e867e5;hpb=486ca0c750f4bd465aac2177c24aacf4e90ee6de;p=features.git diff --git a/src/insets/Inset.h b/src/insets/Inset.h index 3eb44fedaa..1601ddb42e 100644 --- a/src/insets/Inset.h +++ b/src/insets/Inset.h @@ -192,6 +192,9 @@ public: /// is called when the mouse enter or leave this inset /// return true if this inset needs repaint virtual bool setMouseHover(bool) { return false; } + /// tells an inset to redraw background + virtual void setRedrawBackground(bool rd) const { redraw_background_ = rd; } + bool redrawBackground() const { return redraw_background_; } /// request "external features" virtual void validate(LaTeXFeatures &) const {} @@ -489,6 +492,8 @@ private: * of the header file. */ int background_color_; + + mutable bool redraw_background_; };