2017-06-06 15:01:41 +03:00
|
|
|
#ifndef FREERDP_CLIENT_MAC_FREERDP_H
|
|
|
|
#define FREERDP_CLIENT_MAC_FREERDP_H
|
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>
|
2014-09-13 20:02:53 +04:00
|
|
|
#include <freerdp/gdi/gfx.h>
|
2013-06-14 18:00:19 +04:00
|
|
|
#include <freerdp/gdi/region.h>
|
|
|
|
#include <freerdp/channels/channels.h>
|
|
|
|
|
2014-09-13 20:02:53 +04:00
|
|
|
#include <freerdp/client/channels.h>
|
|
|
|
#include <freerdp/client/rdpei.h>
|
|
|
|
#include <freerdp/client/rdpgfx.h>
|
2014-11-06 01:14:32 +03:00
|
|
|
#include <freerdp/client/cliprdr.h>
|
2014-09-13 20:02:53 +04:00
|
|
|
#include <freerdp/client/encomsp.h>
|
|
|
|
|
2013-06-15 00:19:03 +04:00
|
|
|
#include <winpr/crt.h>
|
|
|
|
#include <winpr/synch.h>
|
|
|
|
#include <winpr/thread.h>
|
2014-11-06 01:14:32 +03:00
|
|
|
#include <winpr/clipboard.h>
|
2013-06-14 18:00:19 +04:00
|
|
|
|
2014-03-04 23:01:01 +04:00
|
|
|
#include "Keyboard.h"
|
2018-11-29 17:46:37 +03:00
|
|
|
#include <CoreGraphics/CoreGraphics.h>
|
2013-06-18 00:44:44 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2013-06-14 18:00:19 +04:00
|
|
|
{
|
2022-01-19 11:27:39 +03:00
|
|
|
rdpClientContext common;
|
2013-06-23 06:55:51 +04:00
|
|
|
|
|
|
|
void* view;
|
2014-03-04 01:57:43 +04:00
|
|
|
BOOL view_ownership;
|
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;
|
|
|
|
|
2014-03-04 01:57:43 +04:00
|
|
|
HANDLE stopEvent;
|
2014-03-04 23:01:01 +04:00
|
|
|
HANDLE keyboardThread;
|
|
|
|
enum APPLE_KEYBOARD_TYPE appleKeyboardType;
|
2013-06-23 06:55:51 +04:00
|
|
|
|
|
|
|
DWORD mainThreadId;
|
2016-10-04 10:00:00 +03:00
|
|
|
DWORD keyboardThreadId;
|
|
|
|
|
2014-11-06 01:14:32 +03:00
|
|
|
BOOL clipboardSync;
|
|
|
|
wClipboard* clipboard;
|
|
|
|
UINT32 numServerFormats;
|
|
|
|
UINT32 requestedFormatId;
|
|
|
|
HANDLE clipboardRequestEvent;
|
|
|
|
CLIPRDR_FORMAT* serverFormats;
|
|
|
|
CliprdrClientContext* cliprdr;
|
|
|
|
UINT32 clipboardCapabilities;
|
2013-06-23 06:55:51 +04:00
|
|
|
|
|
|
|
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;
|
2019-11-06 17:24:51 +03:00
|
|
|
int xMinScroll; // minimum horizontal scroll value
|
|
|
|
int xCurrentScroll; // current horizontal scroll value
|
|
|
|
int xMaxScroll; // maximum horizontal scroll value
|
2013-06-23 06:55:51 +04:00
|
|
|
|
|
|
|
// These variables are required for vertical scrolling.
|
|
|
|
BOOL yScrollVisible;
|
2019-11-06 17:24:51 +03:00
|
|
|
int yMinScroll; // minimum vertical scroll value
|
|
|
|
int yCurrentScroll; // current vertical scroll value
|
|
|
|
int yMaxScroll; // maximum vertical scroll value
|
2017-11-20 13:46:32 +03:00
|
|
|
|
|
|
|
CGEventFlags kbdFlags;
|
2022-02-14 16:59:22 +03:00
|
|
|
} mfContext;
|
2013-06-14 18:00:19 +04:00
|
|
|
|
2017-06-06 15:01:41 +03:00
|
|
|
#endif /* FREERDP_CLIENT_MAC_FREERDP_H */
|