mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 02:35:20 +00:00
6c300f72a2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15422 a592a061-630c-0410-9148-cb99ea01b6c8
54 lines
818 B
C
54 lines
818 B
C
/**
|
|
* \file InsetMathDim.C
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author André Pönitz
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
#include "InsetMathDim.h"
|
|
|
|
#include "BufferView.h"
|
|
#include "coordcache.h"
|
|
#include "debug.h"
|
|
#include "metricsinfo.h"
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
|
InsetMathDim::InsetMathDim()
|
|
{}
|
|
|
|
|
|
int InsetMathDim::ascent() const
|
|
{
|
|
return dim_.asc;
|
|
}
|
|
|
|
|
|
int InsetMathDim::descent() const
|
|
{
|
|
return dim_.des;
|
|
}
|
|
|
|
|
|
int InsetMathDim::width() const
|
|
{
|
|
return dim_.wid;
|
|
}
|
|
|
|
|
|
void InsetMathDim::setPosCache(PainterInfo const & pi, int x, int y) const
|
|
{
|
|
//lyxerr << "InsetMathDim: cache to " << x << " " << y << std::endl;
|
|
pi.base.bv->coordCache().insets().add(this, x, y);
|
|
}
|
|
|
|
|
|
} // namespace lyx
|