#define TEXT_METRICS_H
#include "Font.h"
+#include "InsetList.h"
#include "ParagraphMetrics.h"
#include "support/types.h"
TextMetrics() : text_(0) {}
/// The only useful constructor.
TextMetrics(BufferView *, Text *);
-
+
///
bool contains(pit_type pit) const;
///
int descent() const { return dim_.des; }
/// current text width.
int width() const { return dim_.wid; }
- /// current text heigth.
+ /// current text height.
int height() const { return dim_.height(); }
///
pos_type const end
) const;
- /// draw selection for a single row
- void drawRowSelection(PainterInfo & pi, int x, Row const & row,
- Cursor const & cur, pit_type const pit) const;
+ // Helper function for the other checkInsetHit method.
+ InsetList::InsetTable * checkInsetHit(pit_type pit, int x, int y);
+
// Temporary public:
public: