2003-01-20 23:38:49 +03:00
|
|
|
#ifndef LAYERDATA_H_
|
|
|
|
#define LAYERDATA_H_
|
|
|
|
|
|
|
|
#include <Point.h>
|
|
|
|
#include <Font.h>
|
|
|
|
#include "RGBColor.h"
|
2003-07-14 00:56:00 +04:00
|
|
|
//#include "FontServer.h"
|
2003-01-20 23:38:49 +03:00
|
|
|
#include "ServerFont.h"
|
|
|
|
|
|
|
|
class ServerBitmap;
|
|
|
|
|
|
|
|
class LayerData
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
LayerData(void)
|
|
|
|
{
|
|
|
|
pensize=1.0;
|
|
|
|
penlocation.Set(0,0);
|
|
|
|
draw_mode=B_OP_COPY;
|
|
|
|
blending_mode=B_ALPHA_OVERLAY;
|
|
|
|
alpha_mode=B_CONSTANT_ALPHA;
|
|
|
|
background=NULL;
|
|
|
|
overlay=NULL;
|
|
|
|
highcolor.SetColor(0,0,0,255);
|
|
|
|
lowcolor.SetColor(255,255,255,255);
|
2003-07-05 01:13:48 +04:00
|
|
|
viewcolor.SetColor(255,255,255,255);
|
2003-07-14 00:56:00 +04:00
|
|
|
// font=fontserver->GetSystemPlain();
|
|
|
|
font=NULL;
|
2003-01-20 23:38:49 +03:00
|
|
|
scale=1.0;
|
|
|
|
edelta.space=0;
|
|
|
|
edelta.nonspace=0;
|
|
|
|
}
|
|
|
|
~LayerData(void)
|
|
|
|
{
|
|
|
|
if(font)
|
|
|
|
{
|
|
|
|
delete font;
|
|
|
|
font=NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
float pensize;
|
|
|
|
BPoint penlocation;
|
|
|
|
drawing_mode draw_mode;
|
|
|
|
source_alpha alpha_mode;
|
|
|
|
alpha_function blending_mode;
|
|
|
|
ServerBitmap *background;
|
|
|
|
ServerBitmap *overlay;
|
2003-07-05 01:13:48 +04:00
|
|
|
RGBColor highcolor, lowcolor, viewcolor;
|
2003-01-20 23:38:49 +03:00
|
|
|
ServerFont *font;
|
|
|
|
float scale;
|
|
|
|
escapement_delta edelta;
|
|
|
|
};
|
2003-02-07 20:30:17 +03:00
|
|
|
#endif
|