]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcommand.h
more cleanup:
[lyx.git] / src / insets / insetcommand.h
index 2b558aaeb40ba42a0a9c1bd063ee9706c39a463e..404874c698b82e3752aaf24263d479812bf6ae02 100644 (file)
@@ -38,7 +38,7 @@ public:
        ///
        ~InsetCommand();
        ///
-       void metrics(MetricsInfo &, Dimension &) const;
+       bool metrics(MetricsInfo &, Dimension &) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
@@ -91,6 +91,8 @@ public:
        std::string const getSecOptions() const { return p_.getSecOptions(); }
        ///
        RenderButton & button() const { return button_; }
+       ///
+       bool setMouseHover(bool mouse_hover);
 
 protected:
        ///
@@ -128,6 +130,8 @@ private:
        ///
        InsetCommandParams p_;
        std::string mailer_name_;
+       /// changes color when mouse enters/leaves this inset
+       bool mouse_hover_;
        mutable bool updateButtonLabel_;
        mutable RenderButton button_;
 };