5 Copyright (c) 2002 OpenBeOS.
10 Permission is hereby granted, free of charge, to any person obtaining a copy of
11 this software and associated documentation files (the "Software"), to deal in
12 the Software without restriction, including without limitation the rights to
13 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
14 of the Software, and to permit persons to whom the Software is furnished to do
15 so, subject to the following conditions:
17 The above copyright notice and this permission notice shall be included in all
18 copies or substantial portions of the Software.
20 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
32 void Template::Op(int number
) {
36 void Template::MovePenBy(BPoint delta
) {
40 void Template::StrokeLine(BPoint start
, BPoint end
) {
44 void Template::StrokeRect(BRect rect
) {
48 void Template::FillRect(BRect rect
) {
52 void Template::StrokeRoundRect(BRect rect
, BPoint radii
) {
56 void Template::FillRoundRect(BRect rect
, BPoint radii
) {
60 void Template::StrokeBezier(BPoint
*control
) {
64 void Template::FillBezier(BPoint
*control
) {
68 void Template::StrokeArc(BPoint center
, BPoint radii
, float startTheta
, float arcTheta
) {
72 void Template::FillArc(BPoint center
, BPoint radii
, float startTheta
, float arcTheta
) {
76 void Template::StrokeEllipse(BPoint center
, BPoint radii
) {
80 void Template::FillEllipse(BPoint center
, BPoint radii
) {
84 void Template::StrokePolygon(int32 numPoints
, BPoint
*points
, bool isClosed
) {
88 void Template::FillPolygon(int32 numPoints
, BPoint
*points
, bool isClosed
) {
92 void Template::StrokeShape(BShape
*shape
) {
96 void Template::FillShape(BShape
*shape
) {
100 void Template::DrawString(char *string
, float escapement_nospace
, float escapement_space
) {
104 void Template::DrawPixels(BRect src
, BRect dest
, int32 width
, int32 height
, int32 bytesPerRow
, int32 pixelFormat
, int32 flags
, void *data
) {
108 void Template::SetClippingRects(BRect
*rects
, uint32 numRects
) {
112 void Template::ClipToPicture(BPicture
*picture
, BPoint point
, bool clip_to_inverse_picture
) {
116 void Template::PushState() {
120 void Template::PopState() {
124 void Template::EnterStateChange() {
128 void Template::ExitStateChange() {
132 void Template::EnterFontState() {
136 void Template::ExitFontState() {
140 void Template::SetOrigin(BPoint pt
) {
144 void Template::SetPenLocation(BPoint pt
) {
148 void Template::SetDrawingMode(drawing_mode mode
) {
152 void Template::SetLineMode(cap_mode capMode
, join_mode joinMode
, float miterLimit
) {
156 void Template::SetPenSize(float size
) {
160 void Template::SetForeColor(rgb_color color
) {
164 void Template::SetBackColor(rgb_color color
) {
168 void Template::SetStipplePattern(pattern p
) {
172 void Template::SetScale(float scale
) {
176 void Template::SetFontFamily(char *family
) {
180 void Template::SetFontStyle(char *style
) {
184 void Template::SetFontSpacing(int32 spacing
) {
188 void Template::SetFontSize(float size
) {
192 void Template::SetFontRotate(float rotation
) {
196 void Template::SetFontEncoding(int32 encoding
) {
200 void Template::SetFontFlags(int32 flags
) {
204 void Template::SetFontShear(float shear
) {
208 void Template::SetFontFace(int32 flags
) {