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);
119BOOL xf_rail_send_activate(xfContext* xfc, Window xwindow, BOOL enabled);
120BOOL xf_rail_adjust_position(xfContext* xfc, xfAppWindow* appWindow);
121BOOL xf_rail_end_local_move(xfContext* xfc, xfAppWindow* appWindow);
122BOOL xf_rail_enable_remoteapp_mode(xfContext* xfc);
123BOOL 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);
128#define xf_rail_return_window(window) \
129 xf_rail_return_windowFrom((window), __FILE__, __func__, __LINE__)
130void xf_rail_return_windowFrom(xfAppWindow* window,
const char* file,
const char* fkt,
size_t line);
132#define xf_rail_get_window(xfc, id) \
133 xf_rail_get_windowFrom((xfc), (id), __FILE__, __func__, __LINE__)
135WINPR_ATTR_MALLOC(xf_rail_return_windowFrom, 1)
136xfAppWindow* xf_rail_get_windowFrom(xfContext* xfc, UINT64
id, const
char* file, const
char* fkt,
139BOOL xf_rail_del_window(xfContext* xfc, UINT64
id);
141int xf_rail_init(xfContext* xfc, RailClientContext* rail);
142int xf_rail_uninit(xfContext* xfc, RailClientContext* rail);