20#ifndef FREERDP_CLIENT_X11_RAIL_H
21#define FREERDP_CLIENT_X11_RAIL_H
23#include <freerdp/client/rail.h>
30enum xf_localmove_state
44 enum xf_localmove_state state;
69 UINT32 clientAreaWidth;
70 UINT32 clientAreaHeight;
74 INT32 windowClientDeltaX;
75 INT32 windowClientDeltaY;
78 UINT32 numWindowRects;
83 UINT32 numVisibilityRects;
86 UINT32 localWindowOffsetCorrX;
87 UINT32 localWindowOffsetCorrY;
89 UINT32 resizeMarginLeft;
90 UINT32 resizeMarginTop;
91 UINT32 resizeMarginRight;
92 UINT32 resizeMarginBottom;
102 xfLocalMove local_move;
107 BOOL rail_ignore_configure;
113typedef struct xf_rail_icon_cache xfRailIconCache;
115BOOL xf_rail_paint(xfContext* xfc,
const RECTANGLE_16* rect);
116BOOL xf_rail_paint_surface(xfContext* xfc, UINT64 windowId,
const RECTANGLE_16* rect);
118BOOL xf_rail_send_client_system_command(xfContext* xfc, UINT64 windowId, UINT16 command);
119void xf_rail_send_activate(xfContext* xfc, Window xwindow, BOOL enabled);
120void xf_rail_adjust_position(xfContext* xfc, xfAppWindow* appWindow);
121void xf_rail_end_local_move(xfContext* xfc, xfAppWindow* appWindow);
122void xf_rail_enable_remoteapp_mode(xfContext* xfc);
123void xf_rail_disable_remoteapp_mode(xfContext* xfc);
125xfAppWindow* xf_rail_add_window(xfContext* xfc, UINT64
id, INT32 x, INT32 y, UINT32 width,
126 UINT32 height, UINT32 surfaceId);
128void xf_rail_return_window(xfAppWindow* window);
130WINPR_ATTR_MALLOC(xf_rail_return_window, 1)
131xfAppWindow* xf_rail_get_window(xfContext* xfc, UINT64
id);
133BOOL xf_rail_del_window(xfContext* xfc, UINT64
id);
135int xf_rail_init(xfContext* xfc, RailClientContext* rail);
136int xf_rail_uninit(xfContext* xfc, RailClientContext* rail);