- mutable CollapseStatus status_;
- /// a substatus of the Open status, determined automatically in metrics
- mutable bool openinlined_;
- /// the inset will automatically open when the cursor is inside
- mutable bool autoOpen_;
- ///
- mutable Dimension textdim_;
- /// changes color when mouse enters/leaves this inset
- bool mouse_hover_;
-};
+ Dimension dimensionCollapsed(BufferView const & bv) const;
+ ///
+ docstring labelstring_;
+
+ // These variables depend of the view in which the inset is displayed
+ struct View
+ {
+ /// The dimension of the inset button
+ Box button_dim_;
+ /// a substatus of the Open status, determined automatically in metrics
+ bool openinlined_;
+ /// the inset will automatically open when the cursor is inside. This is
+ /// dependent on the bufferview, compare with MathMacro::editing_.
+ bool auto_open_;
+ /// changes color when mouse enters/leaves this inset
+ bool mouse_hover_;
+ };