2011-08-16 08:22:00 +04:00
|
|
|
/**
|
2012-10-09 07:02:04 +04:00
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
2011-08-16 08:22:00 +04:00
|
|
|
* X11 RAIL
|
|
|
|
*
|
|
|
|
* Copyright 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.
|
|
|
|
*/
|
|
|
|
|
2017-06-06 15:01:41 +03:00
|
|
|
#ifndef FREERDP_CLIENT_X11_RAIL_H
|
|
|
|
#define FREERDP_CLIENT_X11_RAIL_H
|
2011-08-16 08:22:00 +04:00
|
|
|
|
2013-06-15 21:41:05 +04:00
|
|
|
#include "xf_client.h"
|
2013-04-28 08:23:36 +04:00
|
|
|
#include "xfreerdp.h"
|
2011-08-16 08:22:00 +04:00
|
|
|
|
2014-11-12 00:35:30 +03:00
|
|
|
#include <freerdp/client/rail.h>
|
|
|
|
|
2014-11-12 02:32:18 +03:00
|
|
|
void xf_rail_paint(xfContext* xfc, INT32 uleft, INT32 utop, UINT32 uright, UINT32 ubottom);
|
2013-06-13 02:57:25 +04:00
|
|
|
void xf_rail_send_client_system_command(xfContext* xfc, UINT32 windowId, UINT16 command);
|
|
|
|
void xf_rail_send_activate(xfContext* xfc, Window xwindow, BOOL enabled);
|
2014-11-12 06:27:33 +03:00
|
|
|
void xf_rail_adjust_position(xfContext* xfc, xfAppWindow* appWindow);
|
|
|
|
void xf_rail_end_local_move(xfContext* xfc, xfAppWindow* appWindow);
|
2013-06-13 02:57:25 +04:00
|
|
|
void xf_rail_enable_remoteapp_mode(xfContext* xfc);
|
|
|
|
void xf_rail_disable_remoteapp_mode(xfContext* xfc);
|
2011-08-18 05:33:22 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
xfAppWindow* xf_rail_add_window(xfContext* xfc, UINT64 id, UINT32 x, UINT32 y, UINT32 width,
|
|
|
|
UINT32 height, UINT32 surfaceId);
|
2019-05-08 16:36:20 +03:00
|
|
|
xfAppWindow* xf_rail_get_window(xfContext* xfc, UINT64 id);
|
|
|
|
|
|
|
|
BOOL xf_rail_del_window(xfContext* xfc, UINT64 id);
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
BOOL xf_rail_draw_window(xfContext* xfc, xfAppWindow* window, const char* data, UINT32 scanline,
|
|
|
|
UINT32 width, UINT32 height, const RECTANGLE_16* src,
|
|
|
|
const RECTANGLE_16* dst);
|
2019-05-08 16:36:20 +03:00
|
|
|
|
2014-11-12 00:35:30 +03:00
|
|
|
int xf_rail_init(xfContext* xfc, RailClientContext* rail);
|
|
|
|
int xf_rail_uninit(xfContext* xfc, RailClientContext* rail);
|
|
|
|
|
2017-06-06 15:01:41 +03:00
|
|
|
#endif /* FREERDP_CLIENT_X11_RAIL_H */
|