/// Add this array to a math row. Return true if contents got added
bool addToMathRow(MathRow &, MetricsInfo & mi) const;
+ // return true if caret is in this cell in this buffer view
+ bool hasCaret(BufferView * bv) const;
+
/// rebuild cached metrics information
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ /** When \c tight is true, the height of the cell will be at least
+ * that of 'x'. Otherwise, it will be the max height of the font.
+ */
+ void metrics(MetricsInfo & mi, Dimension & dim, bool tight = true) const;
///
Dimension const & dimension(BufferView const &) const;
///
void updateBuffer(ParIterator const &, UpdateType);
///
- void setBuffer(Buffer & b) { buffer_ = &b; }
+ void setBuffer(Buffer & b);
protected:
/// cached values for super/subscript placement