2011-08-31 05:59:03 -04:00
|
|
|
/**
|
2012-10-08 23:02:04 -04:00
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
2011-08-31 05:59:03 -04:00
|
|
|
* Windows Client
|
|
|
|
*
|
|
|
|
* Copyright 2009-2011 Jay Sorg
|
|
|
|
* Copyright 2010-2011 Vic Lee
|
|
|
|
* Copyright 2010-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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WFREERDP_H
|
|
|
|
#define __WFREERDP_H
|
|
|
|
|
2012-05-04 19:36:35 -04:00
|
|
|
#include <winpr/windows.h>
|
2011-08-31 05:59:03 -04:00
|
|
|
|
|
|
|
#include <freerdp/freerdp.h>
|
|
|
|
#include <freerdp/gdi/gdi.h>
|
2011-10-04 16:05:09 -04:00
|
|
|
#include <freerdp/gdi/dc.h>
|
|
|
|
#include <freerdp/gdi/region.h>
|
|
|
|
#include <freerdp/cache/cache.h>
|
|
|
|
#include <freerdp/codec/color.h>
|
2011-08-31 05:59:03 -04:00
|
|
|
#include <freerdp/utils/debug.h>
|
2011-10-16 23:45:58 -04:00
|
|
|
#include <freerdp/channels/channels.h>
|
2011-11-12 02:35:18 -05:00
|
|
|
#include <freerdp/codec/rfx.h>
|
|
|
|
#include <freerdp/codec/nsc.h>
|
2011-08-31 05:59:03 -04:00
|
|
|
|
2011-09-25 16:30:20 -04:00
|
|
|
#include "wf_event.h"
|
|
|
|
|
2011-10-13 20:10:59 -04:00
|
|
|
struct wf_bitmap
|
2011-08-31 05:59:03 -04:00
|
|
|
{
|
2011-10-21 16:45:35 -04:00
|
|
|
rdpBitmap _bitmap;
|
2011-08-31 05:59:03 -04:00
|
|
|
HDC hdc;
|
|
|
|
HBITMAP bitmap;
|
|
|
|
HBITMAP org_bitmap;
|
2012-10-09 03:01:37 -04:00
|
|
|
BYTE* pdata;
|
2011-08-31 05:59:03 -04:00
|
|
|
};
|
2011-10-13 20:10:59 -04:00
|
|
|
typedef struct wf_bitmap wfBitmap;
|
2011-08-31 05:59:03 -04:00
|
|
|
|
2011-10-21 16:45:35 -04:00
|
|
|
struct wf_pointer
|
|
|
|
{
|
|
|
|
rdpPointer pointer;
|
2012-10-16 11:06:23 -07:00
|
|
|
HCURSOR cursor;
|
2011-10-21 16:45:35 -04:00
|
|
|
};
|
|
|
|
typedef struct wf_pointer wfPointer;
|
|
|
|
|
2011-10-16 23:45:58 -04:00
|
|
|
typedef struct wf_info wfInfo;
|
|
|
|
|
|
|
|
struct wf_context
|
|
|
|
{
|
|
|
|
rdpContext _p;
|
|
|
|
|
|
|
|
wfInfo* wfi;
|
|
|
|
};
|
|
|
|
typedef struct wf_context wfContext;
|
|
|
|
|
2011-08-31 05:59:03 -04:00
|
|
|
struct wf_info
|
|
|
|
{
|
2012-12-25 12:10:24 +08:00
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
int offset_x;
|
|
|
|
int offset_y;
|
2011-08-31 05:59:03 -04:00
|
|
|
int fs_toggle;
|
|
|
|
int fullscreen;
|
|
|
|
int percentscreen;
|
|
|
|
char window_title[64];
|
|
|
|
|
|
|
|
HWND hwnd;
|
2012-12-25 12:10:24 +08:00
|
|
|
POINT diff;
|
2011-10-04 16:05:09 -04:00
|
|
|
HGDI_DC hdc;
|
2012-10-09 03:01:37 -04:00
|
|
|
UINT16 srcBpp;
|
|
|
|
UINT16 dstBpp;
|
2011-09-25 16:30:20 -04:00
|
|
|
freerdp* instance;
|
2011-10-13 20:10:59 -04:00
|
|
|
wfBitmap* primary;
|
|
|
|
wfBitmap* drawing;
|
2011-08-31 05:59:03 -04:00
|
|
|
HCLRCONV clrconv;
|
|
|
|
HCURSOR cursor;
|
|
|
|
HBRUSH brush;
|
|
|
|
HBRUSH org_brush;
|
2011-12-16 14:43:14 -05:00
|
|
|
RECT update_rect;
|
2011-10-04 16:05:09 -04:00
|
|
|
|
2011-11-12 02:35:18 -05:00
|
|
|
wfBitmap* tile;
|
|
|
|
RFX_CONTEXT* rfx_context;
|
|
|
|
NSC_CONTEXT* nsc_context;
|
|
|
|
|
2012-10-09 02:38:39 -04:00
|
|
|
BOOL sw_gdi;
|
2011-08-31 05:59:03 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|