VRDPOrders.h revision fa11a1e5d812c442cfc865cfdcf9934074d35b7f
/** @file
* VBox Remote Desktop Protocol - Orders Structures. (VRDP)
*/
/*
* Copyright (C) 2006-2008 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* The contents of this file may alternatively be used under the terms
* of the Common Development and Distribution License Version 1.0
* (CDDL) only, as it comes in the "COPYING.CDDL" file of the
* VirtualBox OSE distribution, in which case the provisions of the
* CDDL are applicable instead of those of the GPL.
*
* You may elect to license modified versions of this file under the
* terms and conditions of either the GPL or the CDDL or both.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#ifndef ___VBox_vrdporders_h
#define ___VBox_vrdporders_h
/*
* The VRDP server gets an information about a graphical update as a pointer
* to a memory block and the size of the memory block.
* The memory block layout is:
* VRDPORDERHDR - Describes the affected rectangle.
* Then VRDP orders follow:
* VRDPORDERCODE
* A VRDPORDER* structure.
*
* If size of the memory block is equal to the VRDPORDERHDR, then a bitmap
* update is assumed.
*/
/* 128 bit bitmap hash. */
#pragma pack(1)
typedef struct _VRDPORDERHDR
{
/** Coordinates of the affected rectangle. */
int16_t x;
int16_t y;
uint16_t w;
uint16_t h;
} VRDPORDERHDR;
typedef struct _VRDPORDERCODE
{
/* VRDP order codes. Must be >= 0, because the VRDP server internally
* uses negative values to mark some operations.
*/
#define VRDP_ORDER_DIRTY_RECT (0)
#define VRDP_ORDER_SOLIDRECT (1)
#define VRDP_ORDER_SOLIDBLT (2)
#define VRDP_ORDER_DSTBLT (3)
#define VRDP_ORDER_SCREENBLT (4)
#define VRDP_ORDER_PATBLTBRUSH (5)
#define VRDP_ORDER_MEMBLT (6)
#define VRDP_ORDER_CACHED_BITMAP (7)
#define VRDP_ORDER_DELETED_BITMAP (8)
#define VRDP_ORDER_LINE (9)
#define VRDP_ORDER_BOUNDS (10)
#define VRDP_ORDER_REPEAT (11)
#define VRDP_ORDER_POLYLINE (12)
#define VRDP_ORDER_ELLIPSE (13)
#define VRDP_ORDER_SAVESCREEN (14)
#define VRDP_ORDER_TEXT (15)
typedef struct _VRDPORDERPOINT
{
int16_t x;
int16_t y;
typedef struct _VRDPORDERPOLYPOINTS
{
uint8_t c;
VRDPORDERPOINT a[16];
typedef struct _VRDPORDERAREA
{
int16_t x;
int16_t y;
uint16_t w;
uint16_t h;
typedef struct _VRDPORDERRECT
{
typedef struct _VRDPORDERBOUNDS
{
typedef struct _VRDPORDERREPEAT
{
/* Header for bitmap bits in VBVA VRDP operations. */
typedef struct _VRDPDATABITS
{
/* Size of bitmap data without the header. */
int16_t x;
int16_t y;
} VRDPDATABITS;
typedef struct _VRDPORDERSOLIDRECT
{
int16_t x;
int16_t y;
uint16_t w;
uint16_t h;
typedef struct _VRDPORDERSOLIDBLT
{
int16_t x;
int16_t y;
uint16_t w;
uint16_t h;
typedef struct _VRDPORDERDSTBLT
{
int16_t x;
int16_t y;
uint16_t w;
uint16_t h;
typedef struct _VRDPORDERSCREENBLT
{
int16_t x;
int16_t y;
uint16_t w;
uint16_t h;
typedef struct _VRDPORDERPATBLTBRUSH
{
int16_t x;
int16_t y;
uint16_t w;
uint16_t h;
typedef struct _VRDPORDERMEMBLT
{
int16_t x;
int16_t y;
uint16_t w;
uint16_t h;
typedef struct _VRDPORDERCACHEDBITMAP
{
/* VRDPDATABITS and the bitmap data follows. */
typedef struct _VRDPORDERDELETEDBITMAP
{
typedef struct _VRDPORDERLINE
{
typedef struct _VRDPORDERPOLYLINE
{
typedef struct _VRDPORDERELLIPSE
{
typedef struct _VRDPORDERSAVESCREEN
{
uint8_t ident;
typedef struct _VRDPORDERGLYPH
{
/* The glyph origin position on the screen. */
int16_t x;
int16_t y;
/* The glyph bitmap dimensions. Note w == h == 0 for the space character. */
uint16_t w;
uint16_t h;
/* The character origin in the bitmap. */
/* 1BPP bitmap. Rows are byte aligned. Size is (((w + 7)/8) * h + 3) & ~3. */
typedef struct _VRDPORDERTEXT
{
/* u8Glyphs glyphs follow. Size of each glyph structure may vary. */
#pragma pack()
#endif