#include "math_inset.h"
#include "LString.h"
-class MathInset;
-class MathAtom;
-class MathGridInset;
-class MathFuncInset;
-class MathHullInset;
-class MathScriptInset;
-class MathSpaceInset;
class InsetFormulaBase;
-class MathArray;
-class MathXArray;
class Painter;
class Selection;
-class latexkeys;
/// Description of a position
struct MathCursorPos {
///
void delLine();
/// This is in pixels from (maybe?) the top of inset
- void setPos(int, int);
+ // don't move further in than the Anchor's inset if respect_anchor == true
+ void setPos(int x, int y, bool respect_anchor = false);
+ /// This is in pixels from (maybe?) the top of inset, don't move further
///
void getPos(int & x, int & y);
///
pos_type & pos();
/// write access to cursor cell index
idx_type & idx();
- /// x-offset of current cell relative to par xo
- int cellXOffset() const;
- /// y-offset of current cell relative to par yo
- int cellYOffset() const;
- /// current x position relative to par xo
- int xpos() const;
- /// current y position relative to par yo
- int ypos() const;
- /// adjust position in current cell according to x. idx is not changed.
- void gotoX(int x);
///
InsetFormulaBase * const formula_;