btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / print / Template.h
blob364c066270563beceda665f616fb58758cf90887
1 /*
3 Copyright (c) 2001, 2002 OpenBeOS.
5 Author:
6 <YOUR NAME>
8 Permission is hereby granted, free of charge, to any person obtaining a copy of
9 this software and associated documentation files (the "Software"), to deal in
10 the Software without restriction, including without limitation the rights to
11 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
12 of the Software, and to permit persons to whom the Software is furnished to do
13 so, subject to the following conditions:
15 The above copyright notice and this permission notice shall be included in all
16 copies or substantial portions of the Software.
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 THE SOFTWARE.
28 #ifndef _TEMPLATE_H
29 #define _TEMPLATE_H
31 #include "PictureIterator.h"
33 class Template : public PictureIterator
35 public:
37 // BPicture playback handlers
38 virtual void Op(int number);
39 virtual void MovePenBy(BPoint delta);
40 virtual void StrokeLine(BPoint start, BPoint end);
41 virtual void StrokeRect(BRect rect);
42 virtual void FillRect(BRect rect);
43 virtual void StrokeRoundRect(BRect rect, BPoint radii);
44 virtual void FillRoundRect(BRect rect, BPoint radii);
45 virtual void StrokeBezier(BPoint *control);
46 virtual void FillBezier(BPoint *control);
47 virtual void StrokeArc(BPoint center, BPoint radii, float startTheta, float arcTheta);
48 virtual void FillArc(BPoint center, BPoint radii, float startTheta, float arcTheta);
49 virtual void StrokeEllipse(BPoint center, BPoint radii);
50 virtual void FillEllipse(BPoint center, BPoint radii);
51 virtual void StrokePolygon(int32 numPoints, BPoint *points, bool isClosed);
52 virtual void FillPolygon(int32 numPoints, BPoint *points, bool isClosed);
53 virtual void StrokeShape(BShape *shape);
54 virtual void FillShape(BShape *shape);
55 virtual void DrawString(char *string, float escapement_nospace, float escapement_space);
56 virtual void DrawPixels(BRect src, BRect dest, int32 width, int32 height, int32 bytesPerRow, int32 pixelFormat, int32 flags, void *data);
57 virtual void SetClippingRects(BRect *rects, uint32 numRects);
58 virtual void ClipToPicture(BPicture *picture, BPoint point, bool clip_to_inverse_picture);
59 virtual void PushState();
60 virtual void PopState();
61 virtual void EnterStateChange();
62 virtual void ExitStateChange();
63 virtual void EnterFontState();
64 virtual void ExitFontState();
65 virtual void SetOrigin(BPoint pt);
66 virtual void SetPenLocation(BPoint pt);
67 virtual void SetDrawingMode(drawing_mode mode);
68 virtual void SetLineMode(cap_mode capMode, join_mode joinMode, float miterLimit);
69 virtual void SetPenSize(float size);
70 virtual void SetForeColor(rgb_color color);
71 virtual void SetBackColor(rgb_color color);
72 virtual void SetStipplePattern(pattern p);
73 virtual void SetScale(float scale);
74 virtual void SetFontFamily(char *family);
75 virtual void SetFontStyle(char *style);
76 virtual void SetFontSpacing(int32 spacing);
77 virtual void SetFontSize(float size);
78 virtual void SetFontRotate(float rotation);
79 virtual void SetFontEncoding(int32 encoding);
80 virtual void SetFontFlags(int32 flags);
81 virtual void SetFontShear(float shear);
82 virtual void SetFontFace(int32 flags);
85 #endif // _TEMPLATE_H