xref: /haiku/headers/private/interface/PictureProtocol.h (revision 4399ec510de9714e2440cdae346d00c286d69906)
1402922f4SDarkWyrm #ifndef _PICTUREPROTOCOL_H
2402922f4SDarkWyrm #define _PICTUREPROTOCOL_H
3402922f4SDarkWyrm 
4402922f4SDarkWyrm enum {
5402922f4SDarkWyrm 	B_PIC_MOVE_PEN_BY			= 0x0010,
67dce0c35SStefano Ceccherini 
7402922f4SDarkWyrm 	B_PIC_STROKE_LINE			= 0x0100,
8402922f4SDarkWyrm 	B_PIC_STROKE_RECT			= 0x0101,
9402922f4SDarkWyrm 	B_PIC_FILL_RECT				= 0x0102,
10402922f4SDarkWyrm 	B_PIC_STROKE_ROUND_RECT		= 0x0103,
11402922f4SDarkWyrm 	B_PIC_FILL_ROUND_RECT		= 0x0104,
12402922f4SDarkWyrm 	B_PIC_STROKE_BEZIER			= 0x0105,
13402922f4SDarkWyrm 	B_PIC_FILL_BEZIER			= 0x0106,
14402922f4SDarkWyrm 	B_PIC_STROKE_POLYGON		= 0x010B,
15402922f4SDarkWyrm 	B_PIC_FILL_POLYGON			= 0x010C,
16402922f4SDarkWyrm 	B_PIC_STROKE_SHAPE			= 0x010D,
17402922f4SDarkWyrm 	B_PIC_FILL_SHAPE			= 0x010E,
18402922f4SDarkWyrm 	B_PIC_DRAW_STRING			= 0x010F,
19402922f4SDarkWyrm 	B_PIC_DRAW_PIXELS			= 0x0110,
20402922f4SDarkWyrm 	B_PIC_DRAW_PICTURE			= 0x0112,
21402922f4SDarkWyrm 	B_PIC_STROKE_ARC			= 0x0113,
22402922f4SDarkWyrm 	B_PIC_FILL_ARC				= 0x0114,
23402922f4SDarkWyrm 	B_PIC_STROKE_ELLIPSE		= 0x0115,
24402922f4SDarkWyrm 	B_PIC_FILL_ELLIPSE			= 0x0116,
25954a0a0cSStephan Aßmus 	B_PIC_DRAW_STRING_LOCATIONS	= 0x0117,
2690ab1a44SX512 	B_PIC_STROKE_RECT_GRADIENT	= 0x0118,
2790ab1a44SX512 	B_PIC_FILL_RECT_GRADIENT	= 0x0119,
2890ab1a44SX512 	B_PIC_STROKE_ROUND_RECT_GRADIENT = 0x011A,
2990ab1a44SX512 	B_PIC_FILL_ROUND_RECT_GRADIENT = 0x011B,
3090ab1a44SX512 	B_PIC_STROKE_BEZIER_GRADIENT = 0x011C,
3190ab1a44SX512 	B_PIC_FILL_BEZIER_GRADIENT	= 0x011D,
3290ab1a44SX512 	B_PIC_STROKE_POLYGON_GRADIENT = 0x011E,
3390ab1a44SX512 	B_PIC_FILL_POLYGON_GRADIENT	= 0x011F,
3490ab1a44SX512 	B_PIC_STROKE_SHAPE_GRADIENT	= 0x0120,
3590ab1a44SX512 	B_PIC_FILL_SHAPE_GRADIENT	= 0x0121,
3690ab1a44SX512 	B_PIC_STROKE_ARC_GRADIENT	= 0x0122,
3790ab1a44SX512 	B_PIC_FILL_ARC_GRADIENT		= 0x0123,
3890ab1a44SX512 	B_PIC_STROKE_ELLIPSE_GRADIENT = 0x0124,
3990ab1a44SX512 	B_PIC_FILL_ELLIPSE_GRADIENT	= 0x0125,
407dce0c35SStefano Ceccherini 
41402922f4SDarkWyrm 	B_PIC_ENTER_STATE_CHANGE	= 0x0200,
42402922f4SDarkWyrm 	B_PIC_SET_CLIPPING_RECTS	= 0x0201,
43402922f4SDarkWyrm 	B_PIC_CLIP_TO_PICTURE		= 0x0202,
44402922f4SDarkWyrm 	B_PIC_PUSH_STATE			= 0x0203,
45402922f4SDarkWyrm 	B_PIC_POP_STATE				= 0x0204,
46402922f4SDarkWyrm 	B_PIC_CLEAR_CLIPPING_RECTS	= 0x0205,
474bd6f322SJulian Harnath 	B_PIC_CLIP_TO_RECT			= 0x0206,
484bd6f322SJulian Harnath 	B_PIC_CLIP_TO_SHAPE			= 0x0207,
497dce0c35SStefano Ceccherini 
50402922f4SDarkWyrm 	B_PIC_SET_ORIGIN			= 0x0300,
51402922f4SDarkWyrm 	B_PIC_SET_PEN_LOCATION		= 0x0301,
52402922f4SDarkWyrm 	B_PIC_SET_DRAWING_MODE		= 0x0302,
53402922f4SDarkWyrm 	B_PIC_SET_LINE_MODE			= 0x0303,
54402922f4SDarkWyrm 	B_PIC_SET_PEN_SIZE			= 0x0304,
55402922f4SDarkWyrm 	B_PIC_SET_SCALE				= 0x0305,
56402922f4SDarkWyrm 	B_PIC_SET_FORE_COLOR		= 0x0306,
57402922f4SDarkWyrm 	B_PIC_SET_BACK_COLOR		= 0x0307,
58402922f4SDarkWyrm 	B_PIC_SET_STIPLE_PATTERN	= 0x0308,
59402922f4SDarkWyrm 	B_PIC_ENTER_FONT_STATE		= 0x0309,
60402922f4SDarkWyrm 	B_PIC_SET_BLENDING_MODE		= 0x030A,
61*4399ec51SX512 	B_PIC_SET_FILL_RULE			= 0x030B,
62402922f4SDarkWyrm 	B_PIC_SET_FONT_FAMILY		= 0x0380,
63402922f4SDarkWyrm 	B_PIC_SET_FONT_STYLE		= 0x0381,
64402922f4SDarkWyrm 	B_PIC_SET_FONT_SPACING		= 0x0382,
65402922f4SDarkWyrm 	B_PIC_SET_FONT_ENCODING		= 0x0383,
66402922f4SDarkWyrm 	B_PIC_SET_FONT_FLAGS		= 0x0384,
67402922f4SDarkWyrm 	B_PIC_SET_FONT_SIZE			= 0x0385,
68402922f4SDarkWyrm 	B_PIC_SET_FONT_ROTATE		= 0x0386,
69402922f4SDarkWyrm 	B_PIC_SET_FONT_SHEAR		= 0x0387,
70402922f4SDarkWyrm 	B_PIC_SET_FONT_BPP			= 0x0388,
71402922f4SDarkWyrm 	B_PIC_SET_FONT_FACE			= 0x0389,
72a6db6bd4SStephan Aßmus 	B_PIC_SET_TRANSFORM			= 0x0390,
7325dbf74bSJulian Harnath 	B_PIC_AFFINE_TRANSLATE      = 0x0391,
7425dbf74bSJulian Harnath 	B_PIC_AFFINE_SCALE          = 0x0392,
7525dbf74bSJulian Harnath 	B_PIC_AFFINE_ROTATE         = 0x0393,
7625dbf74bSJulian Harnath 	B_PIC_BLEND_LAYER			= 0x0394
77402922f4SDarkWyrm };
78402922f4SDarkWyrm 
7946b4e489SStefano Ceccherini 
80*4399ec51SX512 const static uint32 kOpsTableSize = 71;
8146b4e489SStefano Ceccherini 
8246b4e489SStefano Ceccherini 
83402922f4SDarkWyrm #endif
84402922f4SDarkWyrm 
85