- /// Returns an inset if inset was hit, or 0 if not.
- /// \warning This method is not recursive! It will return the
- /// outermost inset within this Text.
- /// \sa BufferView::getCoveringInset() to get the innermost inset.
- Inset * checkInsetHit(BufferView &, int x, int y);
-
- ///
- /// FIXME: move to TextMetrics.
- int singleWidth(Buffer const &, Paragraph const & par,
- pos_type pos) const;
- ///
- /// FIXME: move to TextMetrics.
- int singleWidth(Paragraph const & par, pos_type pos, char_type c,
- Font const & Font) const;
-
- /// return the color of the canvas
- Color_color backgroundColor() const;
-
- /**
- * Returns the left beginning of the text.
- * This information cannot be taken from the layout object, because
- * in LaTeX the beginning of the text fits in some cases
- * (for example sections) exactly the label-width.
- */
- /// FIXME: move to TextMetrics.
- int leftMargin(Buffer const &, int max_width, pit_type pit, pos_type pos) const;
- int leftMargin(Buffer const &, int max_width, pit_type pit) const;
-