added PrintToStream method

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7147 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adi Oanca
2004-04-03 15:03:57 +00:00
parent 979f50e101
commit 254a8cc4a3
+37 -33
View File
@@ -46,54 +46,58 @@ class Layer;
class DrawData class DrawData
{ {
public: public:
DrawData(void); DrawData(void);
DrawData(const DrawData &data); DrawData(const DrawData &data);
~DrawData(void); virtual ~DrawData(void);
DrawData &operator=(const DrawData &from); DrawData& operator=(const DrawData &from);
BPoint penlocation; // uncomment when needed. Also implement it! :-)
// virtual void PrintToStream() const;
RGBColor highcolor, BPoint penlocation;
lowcolor;
float pensize; RGBColor highcolor,
Pattern patt; lowcolor;
drawing_mode draw_mode;
cap_mode lineCap; float pensize;
join_mode lineJoin; Pattern patt;
float miterLimit; drawing_mode draw_mode;
source_alpha alphaSrcMode; cap_mode lineCap;
alpha_function alphaFncMode; join_mode lineJoin;
float scale; float miterLimit;
bool fontAliasing;
ServerFont font;
BRegion *clippReg; source_alpha alphaSrcMode;
alpha_function alphaFncMode;
float scale;
bool fontAliasing;
ServerFont font;
escapement_delta edelta; BRegion* clippReg;
escapement_delta edelta;
}; };
class LayerData : public DrawData class LayerData : public DrawData
{ {
public: public:
LayerData(void); LayerData(void);
LayerData(const Layer *layer); LayerData(const Layer *layer);
LayerData(const LayerData &data); LayerData(const LayerData &data);
LayerData &operator=(const LayerData &from); virtual ~LayerData(void);
~LayerData(void); LayerData &operator=(const LayerData &from);
BPoint coordOrigin; virtual void PrintToStream() const;
RGBColor viewcolor; BPoint coordOrigin;
// We have both because we are not going to suffer from the limitation that R5 RGBColor viewcolor;
// places on us. We can have both. :)
ServerBitmap *background;
ServerBitmap *overlay;
// used for the state stack // We have both because we are not going to suffer from the limitation that R5
LayerData *prevState; // places on us. We can have both. :)
ServerBitmap* background;
ServerBitmap* overlay;
// used for the state stack
LayerData* prevState;
}; };
#endif #endif