2011-11-22 01:44:50 +04:00
|
|
|
/**
|
2012-10-09 07:02:04 +04:00
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
2011-11-22 01:44:50 +04:00
|
|
|
* Primary Drawing Orders Interface API
|
|
|
|
*
|
|
|
|
* Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2012-12-14 09:25:48 +04:00
|
|
|
#ifndef FREERDP_UPDATE_PRIMARY_H
|
|
|
|
#define FREERDP_UPDATE_PRIMARY_H
|
2011-11-22 01:44:50 +04:00
|
|
|
|
|
|
|
#include <freerdp/types.h>
|
|
|
|
|
2023-03-14 11:27:55 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
UINT32 cacheIndex;
|
|
|
|
INT16 x;
|
|
|
|
INT16 y;
|
|
|
|
UINT32 cx;
|
|
|
|
UINT32 cy;
|
|
|
|
UINT32 cb;
|
|
|
|
BYTE* aj;
|
|
|
|
} GLYPH_DATA;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
UINT32 cacheIndex;
|
|
|
|
INT32 x;
|
|
|
|
INT32 y;
|
|
|
|
UINT32 cx;
|
|
|
|
UINT32 cy;
|
|
|
|
UINT32 cb;
|
|
|
|
BYTE* aj;
|
|
|
|
} GLYPH_DATA_V2;
|
2013-02-03 21:41:59 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define BACKMODE_TRANSPARENT 0x0001
|
|
|
|
#define BACKMODE_OPAQUE 0x0002
|
2012-02-13 02:14:59 +04:00
|
|
|
|
2011-11-22 04:41:49 +04:00
|
|
|
struct rdp_bounds
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
INT32 left;
|
|
|
|
INT32 top;
|
|
|
|
INT32 right;
|
|
|
|
INT32 bottom;
|
2011-11-22 01:44:50 +04:00
|
|
|
};
|
2011-11-22 04:41:49 +04:00
|
|
|
typedef struct rdp_bounds rdpBounds;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
|
|
|
struct rdp_brush
|
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 x;
|
|
|
|
UINT32 y;
|
|
|
|
UINT32 bpp;
|
|
|
|
UINT32 style;
|
|
|
|
UINT32 hatch;
|
|
|
|
UINT32 index;
|
2012-10-09 11:01:37 +04:00
|
|
|
BYTE* data;
|
|
|
|
BYTE p8x8[8];
|
2011-11-22 01:44:50 +04:00
|
|
|
};
|
|
|
|
typedef struct rdp_brush rdpBrush;
|
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2013-05-10 03:41:32 +04:00
|
|
|
UINT32 controlFlags;
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 orderType;
|
|
|
|
UINT32 fieldFlags;
|
2013-05-10 03:41:32 +04:00
|
|
|
UINT32 boundsFlags;
|
2011-11-22 04:41:49 +04:00
|
|
|
rdpBounds bounds;
|
2012-10-09 10:38:39 +04:00
|
|
|
BOOL deltaCoordinates;
|
2022-02-14 16:59:22 +03:00
|
|
|
} ORDER_INFO;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
INT32 nLeftRect;
|
|
|
|
INT32 nTopRect;
|
|
|
|
INT32 nWidth;
|
|
|
|
INT32 nHeight;
|
|
|
|
UINT32 bRop;
|
2022-02-14 16:59:22 +03:00
|
|
|
} DSTBLT_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
INT32 nLeftRect;
|
|
|
|
INT32 nTopRect;
|
|
|
|
INT32 nWidth;
|
|
|
|
INT32 nHeight;
|
|
|
|
UINT32 bRop;
|
|
|
|
UINT32 backColor;
|
|
|
|
UINT32 foreColor;
|
2011-11-22 01:44:50 +04:00
|
|
|
rdpBrush brush;
|
2022-02-14 16:59:22 +03:00
|
|
|
} PATBLT_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
INT32 nLeftRect;
|
|
|
|
INT32 nTopRect;
|
|
|
|
INT32 nWidth;
|
|
|
|
INT32 nHeight;
|
|
|
|
UINT32 bRop;
|
|
|
|
INT32 nXSrc;
|
|
|
|
INT32 nYSrc;
|
2022-02-14 16:59:22 +03:00
|
|
|
} SCRBLT_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
INT32 nLeftRect;
|
|
|
|
INT32 nTopRect;
|
|
|
|
INT32 nWidth;
|
|
|
|
INT32 nHeight;
|
|
|
|
UINT32 color;
|
2022-02-14 16:59:22 +03:00
|
|
|
} OPAQUE_RECT_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
INT32 srcLeft;
|
|
|
|
INT32 srcTop;
|
|
|
|
INT32 srcRight;
|
|
|
|
INT32 srcBottom;
|
|
|
|
UINT32 bitmapId;
|
2022-02-14 16:59:22 +03:00
|
|
|
} DRAW_NINE_GRID_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
INT32 left;
|
|
|
|
INT32 top;
|
|
|
|
INT32 width;
|
|
|
|
INT32 height;
|
2022-02-14 16:59:22 +03:00
|
|
|
} DELTA_RECT;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
INT32 nLeftRect;
|
|
|
|
INT32 nTopRect;
|
|
|
|
INT32 nWidth;
|
|
|
|
INT32 nHeight;
|
|
|
|
UINT32 bRop;
|
|
|
|
UINT32 numRectangles;
|
|
|
|
UINT32 cbData;
|
2011-11-22 01:44:50 +04:00
|
|
|
DELTA_RECT rectangles[45];
|
2022-02-14 16:59:22 +03:00
|
|
|
} MULTI_DSTBLT_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
INT32 nLeftRect;
|
|
|
|
INT32 nTopRect;
|
|
|
|
INT32 nWidth;
|
|
|
|
INT32 nHeight;
|
|
|
|
UINT32 bRop;
|
|
|
|
UINT32 backColor;
|
|
|
|
UINT32 foreColor;
|
2011-11-22 01:44:50 +04:00
|
|
|
rdpBrush brush;
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 numRectangles;
|
|
|
|
UINT32 cbData;
|
2011-11-22 01:44:50 +04:00
|
|
|
DELTA_RECT rectangles[45];
|
2022-02-14 16:59:22 +03:00
|
|
|
} MULTI_PATBLT_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
INT32 nLeftRect;
|
|
|
|
INT32 nTopRect;
|
|
|
|
INT32 nWidth;
|
|
|
|
INT32 nHeight;
|
|
|
|
UINT32 bRop;
|
|
|
|
INT32 nXSrc;
|
|
|
|
INT32 nYSrc;
|
|
|
|
UINT32 numRectangles;
|
|
|
|
UINT32 cbData;
|
2011-11-22 01:44:50 +04:00
|
|
|
DELTA_RECT rectangles[45];
|
2022-02-14 16:59:22 +03:00
|
|
|
} MULTI_SCRBLT_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
INT32 nLeftRect;
|
|
|
|
INT32 nTopRect;
|
|
|
|
INT32 nWidth;
|
|
|
|
INT32 nHeight;
|
|
|
|
UINT32 color;
|
|
|
|
UINT32 numRectangles;
|
|
|
|
UINT32 cbData;
|
2011-11-22 01:44:50 +04:00
|
|
|
DELTA_RECT rectangles[45];
|
2022-02-14 16:59:22 +03:00
|
|
|
} MULTI_OPAQUE_RECT_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
INT32 srcLeft;
|
|
|
|
INT32 srcTop;
|
|
|
|
INT32 srcRight;
|
|
|
|
INT32 srcBottom;
|
|
|
|
UINT32 bitmapId;
|
|
|
|
UINT32 nDeltaEntries;
|
|
|
|
UINT32 cbData;
|
2018-10-15 15:30:38 +03:00
|
|
|
DELTA_RECT rectangles[45];
|
2022-02-14 16:59:22 +03:00
|
|
|
} MULTI_DRAW_NINE_GRID_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 backMode;
|
|
|
|
INT32 nXStart;
|
|
|
|
INT32 nYStart;
|
|
|
|
INT32 nXEnd;
|
|
|
|
INT32 nYEnd;
|
|
|
|
UINT32 backColor;
|
|
|
|
UINT32 bRop2;
|
|
|
|
UINT32 penStyle;
|
|
|
|
UINT32 penWidth;
|
|
|
|
UINT32 penColor;
|
2022-02-14 16:59:22 +03:00
|
|
|
} LINE_TO_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
INT32 x;
|
|
|
|
INT32 y;
|
2022-02-14 16:59:22 +03:00
|
|
|
} DELTA_POINT;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
INT32 xStart;
|
|
|
|
INT32 yStart;
|
|
|
|
UINT32 bRop2;
|
|
|
|
UINT32 penColor;
|
2014-10-09 14:11:38 +04:00
|
|
|
UINT32 numDeltaEntries;
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 cbData;
|
2011-11-22 01:44:50 +04:00
|
|
|
DELTA_POINT* points;
|
2022-02-14 16:59:22 +03:00
|
|
|
} POLYLINE_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 cacheId;
|
|
|
|
UINT32 colorIndex;
|
|
|
|
INT32 nLeftRect;
|
|
|
|
INT32 nTopRect;
|
|
|
|
INT32 nWidth;
|
|
|
|
INT32 nHeight;
|
|
|
|
UINT32 bRop;
|
|
|
|
INT32 nXSrc;
|
|
|
|
INT32 nYSrc;
|
|
|
|
UINT32 cacheIndex;
|
2011-11-22 01:44:50 +04:00
|
|
|
rdpBitmap* bitmap;
|
2022-02-14 16:59:22 +03:00
|
|
|
} MEMBLT_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 cacheId;
|
|
|
|
UINT32 colorIndex;
|
|
|
|
INT32 nLeftRect;
|
|
|
|
INT32 nTopRect;
|
|
|
|
INT32 nWidth;
|
|
|
|
INT32 nHeight;
|
|
|
|
UINT32 bRop;
|
|
|
|
INT32 nXSrc;
|
|
|
|
INT32 nYSrc;
|
|
|
|
UINT32 backColor;
|
|
|
|
UINT32 foreColor;
|
2011-11-22 01:44:50 +04:00
|
|
|
rdpBrush brush;
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 cacheIndex;
|
2011-11-22 01:44:50 +04:00
|
|
|
rdpBitmap* bitmap;
|
2022-02-14 16:59:22 +03:00
|
|
|
} MEM3BLT_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 savedBitmapPosition;
|
|
|
|
INT32 nLeftRect;
|
|
|
|
INT32 nTopRect;
|
|
|
|
INT32 nRightRect;
|
|
|
|
INT32 nBottomRect;
|
|
|
|
UINT32 operation;
|
2022-02-14 16:59:22 +03:00
|
|
|
} SAVE_BITMAP_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 index;
|
|
|
|
UINT32 delta;
|
2022-02-14 16:59:22 +03:00
|
|
|
} GLYPH_FRAGMENT_INDEX;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 operation;
|
|
|
|
UINT32 index;
|
|
|
|
UINT32 size;
|
|
|
|
UINT32 nindices;
|
2011-11-22 01:44:50 +04:00
|
|
|
GLYPH_FRAGMENT_INDEX* indices;
|
2022-02-14 16:59:22 +03:00
|
|
|
} GLYPH_FRAGMENT;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 cacheId;
|
|
|
|
UINT32 flAccel;
|
|
|
|
UINT32 ulCharInc;
|
|
|
|
UINT32 fOpRedundant;
|
|
|
|
UINT32 backColor;
|
|
|
|
UINT32 foreColor;
|
|
|
|
INT32 bkLeft;
|
|
|
|
INT32 bkTop;
|
|
|
|
INT32 bkRight;
|
|
|
|
INT32 bkBottom;
|
|
|
|
INT32 opLeft;
|
|
|
|
INT32 opTop;
|
|
|
|
INT32 opRight;
|
|
|
|
INT32 opBottom;
|
2011-11-22 01:44:50 +04:00
|
|
|
rdpBrush brush;
|
2012-10-09 11:26:39 +04:00
|
|
|
INT32 x;
|
|
|
|
INT32 y;
|
|
|
|
UINT32 cbData;
|
2012-10-09 11:01:37 +04:00
|
|
|
BYTE data[256];
|
2022-02-14 16:59:22 +03:00
|
|
|
} GLYPH_INDEX_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 cacheId;
|
|
|
|
UINT32 flAccel;
|
|
|
|
UINT32 ulCharInc;
|
|
|
|
UINT32 backColor;
|
|
|
|
UINT32 foreColor;
|
|
|
|
INT32 bkLeft;
|
|
|
|
INT32 bkTop;
|
|
|
|
INT32 bkRight;
|
|
|
|
INT32 bkBottom;
|
|
|
|
INT32 opLeft;
|
|
|
|
INT32 opTop;
|
|
|
|
INT32 opRight;
|
|
|
|
INT32 opBottom;
|
2012-10-09 10:38:39 +04:00
|
|
|
BOOL opaqueRect;
|
2012-10-09 11:26:39 +04:00
|
|
|
INT32 x;
|
|
|
|
INT32 y;
|
|
|
|
UINT32 cbData;
|
2012-10-09 11:01:37 +04:00
|
|
|
BYTE data[256];
|
2022-02-14 16:59:22 +03:00
|
|
|
} FAST_INDEX_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 cacheId;
|
|
|
|
UINT32 flAccel;
|
|
|
|
UINT32 ulCharInc;
|
|
|
|
UINT32 backColor;
|
|
|
|
UINT32 foreColor;
|
|
|
|
INT32 bkLeft;
|
|
|
|
INT32 bkTop;
|
|
|
|
INT32 bkRight;
|
|
|
|
INT32 bkBottom;
|
|
|
|
INT32 opLeft;
|
|
|
|
INT32 opTop;
|
|
|
|
INT32 opRight;
|
|
|
|
INT32 opBottom;
|
|
|
|
INT32 x;
|
|
|
|
INT32 y;
|
|
|
|
UINT32 cbData;
|
2012-10-09 11:01:37 +04:00
|
|
|
BYTE data[256];
|
2013-02-03 21:41:59 +04:00
|
|
|
GLYPH_DATA_V2 glyphData;
|
2022-02-14 16:59:22 +03:00
|
|
|
} FAST_GLYPH_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
INT32 xStart;
|
|
|
|
INT32 yStart;
|
|
|
|
UINT32 bRop2;
|
|
|
|
UINT32 fillMode;
|
|
|
|
UINT32 brushColor;
|
|
|
|
UINT32 numPoints;
|
|
|
|
UINT32 cbData;
|
2012-02-13 02:14:59 +04:00
|
|
|
DELTA_POINT* points;
|
2022-02-14 16:59:22 +03:00
|
|
|
} POLYGON_SC_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
INT32 xStart;
|
|
|
|
INT32 yStart;
|
|
|
|
UINT32 bRop2;
|
|
|
|
UINT32 backMode;
|
|
|
|
UINT32 fillMode;
|
|
|
|
UINT32 backColor;
|
|
|
|
UINT32 foreColor;
|
2011-11-22 01:44:50 +04:00
|
|
|
rdpBrush brush;
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 numPoints;
|
|
|
|
UINT32 cbData;
|
2012-02-13 02:14:59 +04:00
|
|
|
DELTA_POINT* points;
|
2022-02-14 16:59:22 +03:00
|
|
|
} POLYGON_CB_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
INT32 leftRect;
|
|
|
|
INT32 topRect;
|
|
|
|
INT32 rightRect;
|
|
|
|
INT32 bottomRect;
|
|
|
|
UINT32 bRop2;
|
|
|
|
UINT32 fillMode;
|
|
|
|
UINT32 color;
|
2022-02-14 16:59:22 +03:00
|
|
|
} ELLIPSE_SC_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
INT32 leftRect;
|
|
|
|
INT32 topRect;
|
|
|
|
INT32 rightRect;
|
|
|
|
INT32 bottomRect;
|
|
|
|
UINT32 bRop2;
|
|
|
|
UINT32 fillMode;
|
|
|
|
UINT32 backColor;
|
|
|
|
UINT32 foreColor;
|
2011-11-22 01:44:50 +04:00
|
|
|
rdpBrush brush;
|
2022-02-14 16:59:22 +03:00
|
|
|
} ELLIPSE_CB_ORDER;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2016-04-05 18:07:45 +03:00
|
|
|
typedef BOOL (*pDstBlt)(rdpContext* context, const DSTBLT_ORDER* dstblt);
|
2016-07-13 14:13:28 +03:00
|
|
|
typedef BOOL (*pPatBlt)(rdpContext* context, PATBLT_ORDER* patblt);
|
2016-04-05 18:07:45 +03:00
|
|
|
typedef BOOL (*pScrBlt)(rdpContext* context, const SCRBLT_ORDER* scrblt);
|
2019-11-06 17:24:51 +03:00
|
|
|
typedef BOOL (*pOpaqueRect)(rdpContext* context, const OPAQUE_RECT_ORDER* opaque_rect);
|
|
|
|
typedef BOOL (*pDrawNineGrid)(rdpContext* context, const DRAW_NINE_GRID_ORDER* draw_nine_grid);
|
|
|
|
typedef BOOL (*pMultiDstBlt)(rdpContext* context, const MULTI_DSTBLT_ORDER* multi_dstblt);
|
|
|
|
typedef BOOL (*pMultiPatBlt)(rdpContext* context, const MULTI_PATBLT_ORDER* multi_patblt);
|
|
|
|
typedef BOOL (*pMultiScrBlt)(rdpContext* context, const MULTI_SCRBLT_ORDER* multi_scrblt);
|
2016-04-05 18:07:45 +03:00
|
|
|
typedef BOOL (*pMultiOpaqueRect)(rdpContext* context,
|
2016-04-25 10:42:59 +03:00
|
|
|
const MULTI_OPAQUE_RECT_ORDER* multi_opaque_rect);
|
2016-04-05 18:07:45 +03:00
|
|
|
typedef BOOL (*pMultiDrawNineGrid)(rdpContext* context,
|
2016-04-25 10:42:59 +03:00
|
|
|
const MULTI_DRAW_NINE_GRID_ORDER* multi_draw_nine_grid);
|
2016-04-05 18:07:45 +03:00
|
|
|
typedef BOOL (*pLineTo)(rdpContext* context, const LINE_TO_ORDER* line_to);
|
|
|
|
typedef BOOL (*pPolyline)(rdpContext* context, const POLYLINE_ORDER* polyline);
|
2015-04-14 11:14:23 +03:00
|
|
|
typedef BOOL (*pMemBlt)(rdpContext* context, MEMBLT_ORDER* memblt);
|
|
|
|
typedef BOOL (*pMem3Blt)(rdpContext* context, MEM3BLT_ORDER* memblt);
|
2019-11-06 17:24:51 +03:00
|
|
|
typedef BOOL (*pSaveBitmap)(rdpContext* context, const SAVE_BITMAP_ORDER* save_bitmap);
|
|
|
|
typedef BOOL (*pGlyphIndex)(rdpContext* context, GLYPH_INDEX_ORDER* glyph_index);
|
|
|
|
typedef BOOL (*pFastIndex)(rdpContext* context, const FAST_INDEX_ORDER* fast_index);
|
|
|
|
typedef BOOL (*pFastGlyph)(rdpContext* context, const FAST_GLYPH_ORDER* fast_glyph);
|
|
|
|
typedef BOOL (*pPolygonSC)(rdpContext* context, const POLYGON_SC_ORDER* polygon_sc);
|
2015-04-14 11:14:23 +03:00
|
|
|
typedef BOOL (*pPolygonCB)(rdpContext* context, POLYGON_CB_ORDER* polygon_cb);
|
2019-11-06 17:24:51 +03:00
|
|
|
typedef BOOL (*pEllipseSC)(rdpContext* context, const ELLIPSE_SC_ORDER* ellipse_sc);
|
|
|
|
typedef BOOL (*pEllipseCB)(rdpContext* context, const ELLIPSE_CB_ORDER* ellipse_cb);
|
2021-01-26 17:25:06 +03:00
|
|
|
typedef BOOL (*pOrderInfo)(rdpContext* context, const ORDER_INFO* order_info,
|
|
|
|
const char* order_name);
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2011-11-22 02:48:03 +04:00
|
|
|
struct rdp_primary_update
|
2011-11-22 01:44:50 +04:00
|
|
|
{
|
2019-11-06 17:24:51 +03:00
|
|
|
rdpContext* context; /* 0 */
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 paddingA[16 - 1]; /* 1 */
|
2011-11-22 02:48:03 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
pDstBlt DstBlt; /* 16 */
|
|
|
|
pPatBlt PatBlt; /* 17 */
|
|
|
|
pScrBlt ScrBlt; /* 18 */
|
|
|
|
pOpaqueRect OpaqueRect; /* 19 */
|
|
|
|
pDrawNineGrid DrawNineGrid; /* 20 */
|
|
|
|
pMultiDstBlt MultiDstBlt; /* 21 */
|
|
|
|
pMultiPatBlt MultiPatBlt; /* 22 */
|
|
|
|
pMultiScrBlt MultiScrBlt; /* 23 */
|
|
|
|
pMultiOpaqueRect MultiOpaqueRect; /* 24 */
|
2011-11-22 02:48:03 +04:00
|
|
|
pMultiDrawNineGrid MultiDrawNineGrid; /* 25 */
|
2019-11-06 17:24:51 +03:00
|
|
|
pLineTo LineTo; /* 26 */
|
|
|
|
pPolyline Polyline; /* 27 */
|
|
|
|
pMemBlt MemBlt; /* 28 */
|
|
|
|
pMem3Blt Mem3Blt; /* 29 */
|
|
|
|
pSaveBitmap SaveBitmap; /* 30 */
|
|
|
|
pGlyphIndex GlyphIndex; /* 31 */
|
|
|
|
pFastIndex FastIndex; /* 32 */
|
|
|
|
pFastGlyph FastGlyph; /* 33 */
|
|
|
|
pPolygonSC PolygonSC; /* 34 */
|
|
|
|
pPolygonCB PolygonCB; /* 35 */
|
|
|
|
pEllipseSC EllipseSC; /* 36 */
|
|
|
|
pEllipseCB EllipseCB; /* 37 */
|
2021-01-26 17:25:06 +03:00
|
|
|
/* Statistics callback */
|
|
|
|
pOrderInfo OrderInfo; /* 38 */
|
|
|
|
UINT32 paddingB[48 - 39]; /* 39 */
|
2011-11-22 01:44:50 +04:00
|
|
|
};
|
2011-11-22 02:48:03 +04:00
|
|
|
typedef struct rdp_primary_update rdpPrimaryUpdate;
|
2011-11-22 01:44:50 +04:00
|
|
|
|
2023-03-14 11:27:55 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2012-12-14 09:25:48 +04:00
|
|
|
#endif /* FREERDP_UPDATE_PRIMARY_H */
|