mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 06:49:43 +00:00
e22c5f4d97
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9558 a592a061-630c-0410-9148-cb99ea01b6c8
45 lines
713 B
C
45 lines
713 B
C
/**
|
|
* \file math_diminset.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 "math_diminset.h"
|
|
#include "coordcache.h"
|
|
#include "debug.h"
|
|
|
|
|
|
MathDimInset::MathDimInset()
|
|
{}
|
|
|
|
|
|
int MathDimInset::ascent() const
|
|
{
|
|
return dim_.asc;
|
|
}
|
|
|
|
|
|
int MathDimInset::descent() const
|
|
{
|
|
return dim_.des;
|
|
}
|
|
|
|
|
|
int MathDimInset::width() const
|
|
{
|
|
return dim_.wid;
|
|
}
|
|
|
|
|
|
void MathDimInset::setPosCache(PainterInfo const &, int x, int y) const
|
|
{
|
|
//lyxerr << "MathDimInset: cache to " << x << " " << y << std::endl;
|
|
theCoords.insets().add(this, x, y);
|
|
}
|