xref: /haiku/headers/private/interface/PictureProtocol.h (revision 4399ec510de9714e2440cdae346d00c286d69906)
1 #ifndef _PICTUREPROTOCOL_H
2 #define _PICTUREPROTOCOL_H
3 
4 enum {
5 	B_PIC_MOVE_PEN_BY			= 0x0010,
6 
7 	B_PIC_STROKE_LINE			= 0x0100,
8 	B_PIC_STROKE_RECT			= 0x0101,
9 	B_PIC_FILL_RECT				= 0x0102,
10 	B_PIC_STROKE_ROUND_RECT		= 0x0103,
11 	B_PIC_FILL_ROUND_RECT		= 0x0104,
12 	B_PIC_STROKE_BEZIER			= 0x0105,
13 	B_PIC_FILL_BEZIER			= 0x0106,
14 	B_PIC_STROKE_POLYGON		= 0x010B,
15 	B_PIC_FILL_POLYGON			= 0x010C,
16 	B_PIC_STROKE_SHAPE			= 0x010D,
17 	B_PIC_FILL_SHAPE			= 0x010E,
18 	B_PIC_DRAW_STRING			= 0x010F,
19 	B_PIC_DRAW_PIXELS			= 0x0110,
20 	B_PIC_DRAW_PICTURE			= 0x0112,
21 	B_PIC_STROKE_ARC			= 0x0113,
22 	B_PIC_FILL_ARC				= 0x0114,
23 	B_PIC_STROKE_ELLIPSE		= 0x0115,
24 	B_PIC_FILL_ELLIPSE			= 0x0116,
25 	B_PIC_DRAW_STRING_LOCATIONS	= 0x0117,
26 	B_PIC_STROKE_RECT_GRADIENT	= 0x0118,
27 	B_PIC_FILL_RECT_GRADIENT	= 0x0119,
28 	B_PIC_STROKE_ROUND_RECT_GRADIENT = 0x011A,
29 	B_PIC_FILL_ROUND_RECT_GRADIENT = 0x011B,
30 	B_PIC_STROKE_BEZIER_GRADIENT = 0x011C,
31 	B_PIC_FILL_BEZIER_GRADIENT	= 0x011D,
32 	B_PIC_STROKE_POLYGON_GRADIENT = 0x011E,
33 	B_PIC_FILL_POLYGON_GRADIENT	= 0x011F,
34 	B_PIC_STROKE_SHAPE_GRADIENT	= 0x0120,
35 	B_PIC_FILL_SHAPE_GRADIENT	= 0x0121,
36 	B_PIC_STROKE_ARC_GRADIENT	= 0x0122,
37 	B_PIC_FILL_ARC_GRADIENT		= 0x0123,
38 	B_PIC_STROKE_ELLIPSE_GRADIENT = 0x0124,
39 	B_PIC_FILL_ELLIPSE_GRADIENT	= 0x0125,
40 
41 	B_PIC_ENTER_STATE_CHANGE	= 0x0200,
42 	B_PIC_SET_CLIPPING_RECTS	= 0x0201,
43 	B_PIC_CLIP_TO_PICTURE		= 0x0202,
44 	B_PIC_PUSH_STATE			= 0x0203,
45 	B_PIC_POP_STATE				= 0x0204,
46 	B_PIC_CLEAR_CLIPPING_RECTS	= 0x0205,
47 	B_PIC_CLIP_TO_RECT			= 0x0206,
48 	B_PIC_CLIP_TO_SHAPE			= 0x0207,
49 
50 	B_PIC_SET_ORIGIN			= 0x0300,
51 	B_PIC_SET_PEN_LOCATION		= 0x0301,
52 	B_PIC_SET_DRAWING_MODE		= 0x0302,
53 	B_PIC_SET_LINE_MODE			= 0x0303,
54 	B_PIC_SET_PEN_SIZE			= 0x0304,
55 	B_PIC_SET_SCALE				= 0x0305,
56 	B_PIC_SET_FORE_COLOR		= 0x0306,
57 	B_PIC_SET_BACK_COLOR		= 0x0307,
58 	B_PIC_SET_STIPLE_PATTERN	= 0x0308,
59 	B_PIC_ENTER_FONT_STATE		= 0x0309,
60 	B_PIC_SET_BLENDING_MODE		= 0x030A,
61 	B_PIC_SET_FILL_RULE			= 0x030B,
62 	B_PIC_SET_FONT_FAMILY		= 0x0380,
63 	B_PIC_SET_FONT_STYLE		= 0x0381,
64 	B_PIC_SET_FONT_SPACING		= 0x0382,
65 	B_PIC_SET_FONT_ENCODING		= 0x0383,
66 	B_PIC_SET_FONT_FLAGS		= 0x0384,
67 	B_PIC_SET_FONT_SIZE			= 0x0385,
68 	B_PIC_SET_FONT_ROTATE		= 0x0386,
69 	B_PIC_SET_FONT_SHEAR		= 0x0387,
70 	B_PIC_SET_FONT_BPP			= 0x0388,
71 	B_PIC_SET_FONT_FACE			= 0x0389,
72 	B_PIC_SET_TRANSFORM			= 0x0390,
73 	B_PIC_AFFINE_TRANSLATE      = 0x0391,
74 	B_PIC_AFFINE_SCALE          = 0x0392,
75 	B_PIC_AFFINE_ROTATE         = 0x0393,
76 	B_PIC_BLEND_LAYER			= 0x0394
77 };
78 
79 
80 const static uint32 kOpsTableSize = 71;
81 
82 
83 #endif
84 
85