void InsetCommand::draw(PainterInfo & pi, int x, int y) const
{
- setPosCache(pi, x, y);
button_.setRenderState(mouse_hover_);
button_.draw(pi, x, y);
}
void InsetExternal::draw(PainterInfo & pi, int x, int y) const
{
- setPosCache(pi, x, y);
renderer_->draw(pi, x, y);
}
void InsetFlex::draw(PainterInfo & pi, int x, int y) const
{
- setPosCache(pi, x, y);
-
Font tmpfont = pi.base.font;
getDrawFont(pi.base.font);
// I don't understand why the above .reduce and .realize aren't
void InsetGraphics::draw(PainterInfo & pi, int x, int y) const
{
- setPosCache(pi, x, y);
graphic_->draw(pi, x, y);
}
void InsetInclude::draw(PainterInfo & pi, int x, int y) const
{
- setPosCache(pi, x, y);
-
BOOST_ASSERT(pi.base.bv);
bool use_preview = false;
} else {
pi.pain.text(x, y, text, pi.base.font);
}
- setPosCache(pi, x, y);
}
void InsetTabular::draw(PainterInfo & pi, int x, int y) const
{
- setPosCache(pi, x, y);
-
//lyxerr << "InsetTabular::draw: " << x << " " << y << endl;
BufferView * bv = pi.base.bv;
first_visible_cell = idx;
int const cx = nx + tabular.getBeginningOfTextInCell(idx);
+ // Cache the Inset position.
+ bv->coordCache().insets().add(cell(idx).get(), cx, y);
if (nx + tabular.columnWidth(idx) < 0
|| nx > bv->workWidth()
|| y + d < 0
void InsetTabular::drawSelection(PainterInfo & pi, int x, int y) const
{
- setPosCache(pi, x, y);
-
Cursor & cur = pi.base.bv->cursor();
x += scx_ + ADD_TO_TABULAR_WIDTH;
void InsetVSpace::draw(PainterInfo & pi, int x, int y) const
{
- setPosCache(pi, x, y);
-
x += ADD_TO_VSPACE_WIDTH;
int const start = y - dim_.asc;