1 /* 2 * Copyright 2009, Haiku. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Stephan Aßmus, <superstippi@gmx.de> 7 */ 8 #ifndef APP_SERVER_PROTOCOL_STRUCTS_H 9 #define APP_SERVER_PROTOCOL_STRUCTS_H 10 11 12 #include <AffineTransform.h> 13 #include <Rect.h> 14 15 16 struct ViewSetStateInfo { 17 BPoint penLocation; 18 float penSize; 19 rgb_color highColor; 20 rgb_color lowColor; 21 color_which whichHighColor; 22 color_which whichLowColor; 23 float whichHighColorTint; 24 float whichLowColorTint; 25 ::pattern pattern; 26 drawing_mode drawingMode; 27 BPoint origin; 28 float scale; 29 BAffineTransform transform; 30 join_mode lineJoin; 31 cap_mode lineCap; 32 float miterLimit; 33 int32 fillRule; 34 source_alpha alphaSourceMode; 35 alpha_function alphaFunctionMode; 36 bool fontAntialiasing; 37 }; 38 39 40 struct ViewGetStateInfo { 41 int32 fontID; 42 float fontSize; 43 float fontShear; 44 float fontRotation; 45 float fontFalseBoldWidth; 46 int8 fontSpacing; 47 int8 fontEncoding; 48 int16 fontFace; 49 int32 fontFlags; 50 51 ViewSetStateInfo viewStateInfo; 52 }; 53 54 55 struct ViewDragImageInfo { 56 int32 bitmapToken; 57 int32 dragMode; 58 BPoint offset; 59 int32 bufferSize; 60 }; 61 62 63 struct ViewSetViewCursorInfo { 64 int32 cursorToken; 65 int32 viewToken; 66 bool sync; 67 }; 68 69 70 struct ViewBeginRectTrackingInfo { 71 BRect rect; 72 uint32 style; 73 }; 74 75 76 struct ViewSetLineModeInfo { 77 join_mode lineJoin; 78 cap_mode lineCap; 79 float miterLimit; 80 }; 81 82 83 struct ViewBlendingModeInfo { 84 source_alpha sourceAlpha; 85 alpha_function alphaFunction; 86 }; 87 88 89 struct ViewDrawBitmapInfo { 90 int32 bitmapToken; 91 uint32 options; 92 BRect viewRect; 93 BRect bitmapRect; 94 }; 95 96 97 struct ViewDrawStringInfo { 98 int32 stringLength; 99 BPoint location; 100 escapement_delta delta; 101 }; 102 103 104 struct ViewStrokeLineInfo { 105 BPoint startPoint; 106 BPoint endPoint; 107 }; 108 109 110 struct ViewLineArrayInfo { 111 BPoint startPoint; 112 BPoint endPoint; 113 rgb_color color; 114 }; 115 116 117 #endif // APP_SERVER_PROTOCOL_STRUCTS_H 118