Blame client/Windows/wf_client.h

Packit 1fb8d4
/**
Packit 1fb8d4
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit 1fb8d4
 * Windows Client
Packit 1fb8d4
 *
Packit 1fb8d4
 * Copyright 2009-2011 Jay Sorg
Packit 1fb8d4
 * Copyright 2010-2011 Vic Lee
Packit 1fb8d4
 * Copyright 2010-2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
Packit 1fb8d4
 *
Packit 1fb8d4
 * Licensed under the Apache License, Version 2.0 (the "License");
Packit 1fb8d4
 * you may not use this file except in compliance with the License.
Packit 1fb8d4
 * You may obtain a copy of the License at
Packit 1fb8d4
 *
Packit 1fb8d4
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit 1fb8d4
 *
Packit 1fb8d4
 * Unless required by applicable law or agreed to in writing, software
Packit 1fb8d4
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 1fb8d4
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 1fb8d4
 * See the License for the specific language governing permissions and
Packit 1fb8d4
 * limitations under the License.
Packit 1fb8d4
 */
Packit 1fb8d4
Packit 1fb8d4
#ifndef FREERDP_CLIENT_WIN_INTERFACE_H
Packit 1fb8d4
#define FREERDP_CLIENT_WIN_INTERFACE_H
Packit 1fb8d4
Packit 1fb8d4
#include <winpr/windows.h>
Packit 1fb8d4
Packit 1fb8d4
#include <winpr/collections.h>
Packit 1fb8d4
Packit 1fb8d4
#include <freerdp/api.h>
Packit 1fb8d4
#include <freerdp/freerdp.h>
Packit 1fb8d4
#include <freerdp/gdi/gdi.h>
Packit 1fb8d4
#include <freerdp/gdi/dc.h>
Packit 1fb8d4
#include <freerdp/gdi/region.h>
Packit 1fb8d4
#include <freerdp/cache/cache.h>
Packit 1fb8d4
#include <freerdp/codec/color.h>
Packit 1fb8d4
Packit 1fb8d4
#include <freerdp/client/rail.h>
Packit 1fb8d4
#include <freerdp/channels/channels.h>
Packit 1fb8d4
#include <freerdp/codec/rfx.h>
Packit 1fb8d4
#include <freerdp/codec/nsc.h>
Packit 1fb8d4
#include <freerdp/client/file.h>
Packit 1fb8d4
Packit 1fb8d4
typedef struct wf_context wfContext;
Packit 1fb8d4
Packit 1fb8d4
#include "wf_channels.h"
Packit 1fb8d4
#include "wf_floatbar.h"
Packit 1fb8d4
#include "wf_event.h"
Packit 1fb8d4
#include "wf_cliprdr.h"
Packit 1fb8d4
Packit 1fb8d4
#ifdef __cplusplus
Packit Service 5a9772
extern "C"
Packit Service 5a9772
{
Packit 1fb8d4
#endif
Packit 1fb8d4
Packit 1fb8d4
// System menu constants
Packit 1fb8d4
#define SYSCOMMAND_ID_SMARTSIZING 1000
Packit 1fb8d4
Packit Service 5a9772
	struct wf_bitmap
Packit Service 5a9772
	{
Packit Service 5a9772
		rdpBitmap _bitmap;
Packit Service 5a9772
		HDC hdc;
Packit Service 5a9772
		HBITMAP bitmap;
Packit Service 5a9772
		HBITMAP org_bitmap;
Packit Service 5a9772
		BYTE* pdata;
Packit Service 5a9772
	};
Packit Service 5a9772
	typedef struct wf_bitmap wfBitmap;
Packit Service 5a9772
Packit Service 5a9772
	struct wf_pointer
Packit Service 5a9772
	{
Packit Service 5a9772
		rdpPointer pointer;
Packit Service 5a9772
		HCURSOR cursor;
Packit Service 5a9772
	};
Packit Service 5a9772
	typedef struct wf_pointer wfPointer;
Packit Service 5a9772
Packit Service 5a9772
	struct wf_context
Packit Service 5a9772
	{
Packit Service 5a9772
		rdpContext context;
Packit Service 5a9772
		DEFINE_RDP_CLIENT_COMMON();
Packit Service 5a9772
Packit Service 5a9772
		int offset_x;
Packit Service 5a9772
		int offset_y;
Packit Service 5a9772
		int fullscreen_toggle;
Packit Service 5a9772
		int fullscreen;
Packit Service 5a9772
		int percentscreen;
Packit Service 5a9772
		WCHAR* window_title;
Packit Service 5a9772
		int client_x;
Packit Service 5a9772
		int client_y;
Packit Service 5a9772
		int client_width;
Packit Service 5a9772
		int client_height;
Packit Service 5a9772
Packit Service 5a9772
		HANDLE keyboardThread;
Packit Service 5a9772
Packit Service 5a9772
		HICON icon;
Packit Service 5a9772
		HWND hWndParent;
Packit Service 5a9772
		HINSTANCE hInstance;
Packit Service 5a9772
		WNDCLASSEX wndClass;
Packit Service 5a9772
		LPCTSTR wndClassName;
Packit Service 5a9772
		HCURSOR hDefaultCursor;
Packit Service 5a9772
Packit Service 5a9772
		HWND hwnd;
Packit Service 5a9772
		POINT diff;
Packit Service 5a9772
Packit Service 5a9772
		wfBitmap* primary;
Packit Service 5a9772
		wfBitmap* drawing;
Packit Service 5a9772
		HCURSOR cursor;
Packit Service 5a9772
		HBRUSH brush;
Packit Service 5a9772
		HBRUSH org_brush;
Packit Service 5a9772
		RECT update_rect;
Packit Service 5a9772
		RECT scale_update_rect;
Packit Service 5a9772
Packit Service 5a9772
		DWORD mainThreadId;
Packit Service 5a9772
		DWORD keyboardThreadId;
Packit Service 5a9772
Packit Service 5a9772
		rdpFile* connectionRdpFile;
Packit Service 5a9772
Packit Service 5a9772
		BOOL disablewindowtracking;
Packit Service 5a9772
Packit Service 5a9772
		BOOL updating_scrollbars;
Packit Service 5a9772
		BOOL xScrollVisible;
Packit Service 5a9772
		int xMinScroll;
Packit Service 5a9772
		int xCurrentScroll;
Packit Service 5a9772
		int xMaxScroll;
Packit Service 5a9772
Packit Service 5a9772
		BOOL yScrollVisible;
Packit Service 5a9772
		int yMinScroll;
Packit Service 5a9772
		int yCurrentScroll;
Packit Service 5a9772
		int yMaxScroll;
Packit Service 5a9772
Packit Service 5a9772
		void* clipboard;
Packit Service 5a9772
		CliprdrClientContext* cliprdr;
Packit Service 5a9772
Packit Service 5a9772
		wfFloatBar* floatbar;
Packit Service 5a9772
Packit Service 5a9772
		RailClientContext* rail;
Packit Service 5a9772
		wHashTable* railWindows;
Packit Service 5a9772
		BOOL isConsole;
Packit Service 5a9772
	};
Packit Service 5a9772
Packit Service 5a9772
	/**
Packit Service 5a9772
	 * Client Interface
Packit Service 5a9772
	 */
Packit Service 5a9772
Packit Service 5a9772
	FREERDP_API int RdpClientEntry(RDP_CLIENT_ENTRY_POINTS* pEntryPoints);
Packit Service 5a9772
	FREERDP_API int freerdp_client_set_window_size(wfContext* wfc, int width, int height);
Packit Service 5a9772
	FREERDP_API void wf_size_scrollbars(wfContext* wfc, UINT32 client_width, UINT32 client_height);
Packit 1fb8d4
Packit 1fb8d4
#ifdef __cplusplus
Packit 1fb8d4
}
Packit 1fb8d4
#endif
Packit 1fb8d4
Packit 1fb8d4
#endif /* FREERDP_CLIENT_WIN_INTERFACE_H */