lyx_mirror/src/mathed/support.h
André Pönitz 244d75e942 move width_/ascent_/descent_ cache into seperate ABC.
sizeof(MathInset) == 24 on IA32


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2414 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-03 17:55:10 +00:00

49 lines
1.6 KiB
C++

// -*- C++ -*-
#ifndef MATH_SUPPORT_H
#define MATH_SUPPORT_H
#include "math_defs.h"
#include "LString.h"
class Painter;
class MathArray;
class MathMatrixInset;
extern char const * math_font_name[];
extern char const * latex_mathspace[];
int mathed_char_height(MathTextCodes type, MathStyles size, unsigned char c,
int & asc, int & des);
void mathed_char_dim(MathTextCodes type, MathStyles size, unsigned char c,
int & asc, int & des, int & wid);
int mathed_char_width(MathTextCodes type, MathStyles size, unsigned char c);
int mathed_char_ascent(MathTextCodes type, MathStyles size, unsigned char c);
int mathed_char_descent(MathTextCodes type, MathStyles size, unsigned char c);
void mathed_draw_deco(Painter & pain, int x, int y, int w, int h, int code);
void mathed_string_dim(MathTextCodes type, MathStyles size, string const & s,
int & asc, int & des, int & wid);
int mathed_string_height(MathTextCodes type, MathStyles size, string const & s,
int & asc, int & des);
int mathed_string_width(MathTextCodes type, MathStyles size, string const & s);
int mathed_string_ascent(MathTextCodes type, MathStyles size, string const & s);
int mathed_string_descent(MathTextCodes type, MathStyles size, string const & s);
bool MathIsInset(MathTextCodes x);
bool MathIsAlphaFont(MathTextCodes x);
bool MathIsSymbol(MathTextCodes x);
bool MathIsRelOp(unsigned char c, MathTextCodes f);
void drawStr(Painter & pain, MathTextCodes type, MathStyles siz,
int x, int y, string const & s);
void drawChar(Painter & pain, MathTextCodes type, MathStyles siz,
int x, int y, char c);
void math_font_max_dim
(MathTextCodes code, MathStyles siz, int & asc, int & desc);
#endif