2013-06-14 18:00:19 +04:00
|
|
|
#ifndef MFREERDP_H
|
|
|
|
#define MFREERDP_H
|
|
|
|
|
2013-06-15 00:19:03 +04:00
|
|
|
typedef struct mf_context mfContext;
|
2013-06-14 18:00:19 +04:00
|
|
|
|
2013-06-15 00:19:03 +04:00
|
|
|
#include <freerdp/freerdp.h>
|
|
|
|
#include <freerdp/client/file.h>
|
2013-06-14 18:00:19 +04:00
|
|
|
#include <freerdp/api.h>
|
|
|
|
#include <freerdp/freerdp.h>
|
2013-06-15 00:19:03 +04:00
|
|
|
|
2013-06-14 18:00:19 +04:00
|
|
|
#include <freerdp/gdi/gdi.h>
|
|
|
|
#include <freerdp/gdi/dc.h>
|
|
|
|
#include <freerdp/gdi/region.h>
|
2013-06-15 00:19:03 +04:00
|
|
|
#include <freerdp/rail/rail.h>
|
2013-06-14 18:00:19 +04:00
|
|
|
#include <freerdp/cache/cache.h>
|
|
|
|
#include <freerdp/channels/channels.h>
|
|
|
|
|
2013-06-15 00:19:03 +04:00
|
|
|
#include <winpr/crt.h>
|
|
|
|
#include <winpr/synch.h>
|
|
|
|
#include <winpr/thread.h>
|
2013-06-14 18:00:19 +04:00
|
|
|
|
2013-06-18 05:21:42 +04:00
|
|
|
#include "MRDPView.h"
|
2013-06-18 00:44:44 +04:00
|
|
|
#include <AppKit/NSView.h>
|
|
|
|
|
2013-06-14 18:00:19 +04:00
|
|
|
struct mf_context
|
|
|
|
{
|
2013-06-23 06:55:51 +04:00
|
|
|
rdpContext context;
|
2013-06-18 00:44:44 +04:00
|
|
|
DEFINE_RDP_CLIENT_COMMON();
|
2013-06-23 06:55:51 +04:00
|
|
|
|
|
|
|
void* view;
|
2013-06-26 21:45:12 +04:00
|
|
|
BOOL view_ownership; // TRUE indicates that the window was created and should be freed by the API.
|
2013-06-23 06:55:51 +04:00
|
|
|
|
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
int offset_x;
|
|
|
|
int offset_y;
|
|
|
|
int fs_toggle;
|
|
|
|
int fullscreen;
|
|
|
|
int percentscreen;
|
|
|
|
char window_title[64];
|
|
|
|
int client_x;
|
|
|
|
int client_y;
|
|
|
|
int client_width;
|
|
|
|
int client_height;
|
|
|
|
|
|
|
|
HANDLE keyboardThread;
|
2013-07-18 23:41:28 +04:00
|
|
|
HANDLE stopEvent;
|
2013-06-23 06:55:51 +04:00
|
|
|
|
|
|
|
HGDI_DC hdc;
|
|
|
|
UINT16 srcBpp;
|
|
|
|
UINT16 dstBpp;
|
|
|
|
freerdp* instance;
|
|
|
|
|
|
|
|
DWORD mainThreadId;
|
|
|
|
DWORD keyboardThreadId;
|
|
|
|
BOOL disconnect;
|
|
|
|
BOOL sw_gdi;
|
|
|
|
|
|
|
|
rdpFile* connectionRdpFile;
|
|
|
|
|
|
|
|
// Keep track of window size and position, disable when in fullscreen mode.
|
|
|
|
BOOL disablewindowtracking;
|
|
|
|
|
|
|
|
// These variables are required for horizontal scrolling.
|
|
|
|
BOOL updating_scrollbars;
|
|
|
|
BOOL xScrollVisible;
|
|
|
|
int xMinScroll; // minimum horizontal scroll value
|
|
|
|
int xCurrentScroll; // current horizontal scroll value
|
|
|
|
int xMaxScroll; // maximum horizontal scroll value
|
|
|
|
|
|
|
|
// These variables are required for vertical scrolling.
|
|
|
|
BOOL yScrollVisible;
|
|
|
|
int yMinScroll; // minimum vertical scroll value
|
|
|
|
int yCurrentScroll; // current vertical scroll value
|
|
|
|
int yMaxScroll; // maximum vertical scroll value
|
2013-06-14 18:00:19 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MFREERDP_H
|