2011-08-09 06:24:12 +04:00
|
|
|
/**
|
|
|
|
* FreeRDP: A Remote Desktop Protocol Client
|
|
|
|
* X11 Windows
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __XF_WINDOW_H
|
|
|
|
#define __XF_WINDOW_H
|
|
|
|
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
#include <freerdp/freerdp.h>
|
|
|
|
#include <freerdp/utils/memory.h>
|
|
|
|
|
|
|
|
typedef struct xf_window xfWindow;
|
|
|
|
|
|
|
|
#include "xfreerdp.h"
|
|
|
|
|
|
|
|
struct xf_window
|
|
|
|
{
|
2011-08-17 10:14:02 +04:00
|
|
|
GC gc;
|
2011-08-23 05:22:05 +04:00
|
|
|
int left;
|
|
|
|
int top;
|
|
|
|
int right;
|
|
|
|
int bottom;
|
2011-08-09 06:24:12 +04:00
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
Window handle;
|
2011-08-17 10:14:02 +04:00
|
|
|
Pixmap surface;
|
2011-08-09 06:24:12 +04:00
|
|
|
boolean fullscreen;
|
|
|
|
boolean decorations;
|
2011-09-23 05:23:01 +04:00
|
|
|
rdpWindow* window;
|
|
|
|
boolean localMoveSize;
|
2011-08-09 06:24:12 +04:00
|
|
|
};
|
|
|
|
|
2011-08-24 08:46:34 +04:00
|
|
|
void xf_ewmhints_init(xfInfo* xfi);
|
2011-08-17 22:13:44 +04:00
|
|
|
|
2011-08-24 08:46:34 +04:00
|
|
|
boolean xf_GetCurrentDesktop(xfInfo* xfi);
|
|
|
|
boolean xf_GetWorkArea(xfInfo* xfi);
|
2011-08-09 06:24:12 +04:00
|
|
|
|
2011-08-24 08:46:34 +04:00
|
|
|
void xf_SetWindowFullscreen(xfInfo* xfi, xfWindow* window, boolean fullscreen);
|
|
|
|
void xf_SetWindowDecorations(xfInfo* xfi, xfWindow* window, boolean show);
|
2011-08-30 22:21:16 +04:00
|
|
|
void xf_SetWindowUnlisted(xfInfo* xfi, xfWindow* window);
|
2011-08-24 08:46:34 +04:00
|
|
|
|
|
|
|
xfWindow* xf_CreateDesktopWindow(xfInfo* xfi, char* name, int width, int height);
|
2011-09-06 12:22:53 +04:00
|
|
|
void xf_ResizeDesktopWindow(xfInfo* xfi, xfWindow* window, int width, int height);
|
2011-08-09 06:24:12 +04:00
|
|
|
|
2011-09-23 05:23:01 +04:00
|
|
|
xfWindow* xf_CreateWindow(xfInfo* xfi, rdpWindow* wnd, int x, int y, int width, int height, uint32 id);
|
2011-08-18 06:50:49 +04:00
|
|
|
void xf_MoveWindow(xfInfo* xfi, xfWindow* window, int x, int y, int width, int height);
|
2011-08-22 07:15:19 +04:00
|
|
|
void xf_ShowWindow(xfInfo* xfi, xfWindow* window, uint8 state);
|
2011-08-22 01:32:18 +04:00
|
|
|
void xf_SetWindowIcon(xfInfo* xfi, xfWindow* window, rdpIcon* icon);
|
2011-08-25 22:11:45 +04:00
|
|
|
void xf_SetWindowRects(xfInfo* xfi, xfWindow* window, RECTANGLE_16* rects, int nrects);
|
2011-08-30 22:21:16 +04:00
|
|
|
void xf_SetWindowVisibilityRects(xfInfo* xfi, xfWindow* window, RECTANGLE_16* rects, int nrects);
|
2011-08-25 01:16:57 +04:00
|
|
|
void xf_SetWindowStyle(xfInfo* xfi, xfWindow* window, uint32 style, uint32 ex_style);
|
2011-09-23 05:23:01 +04:00
|
|
|
void xf_UpdateWindowArea(xfInfo* xfi, xfWindow* window, int x, int y, int width, int height);
|
|
|
|
boolean xf_IsWindowBorder(xfInfo* xfi, xfWindow* xfw, int x, int y);
|
2011-08-18 06:31:27 +04:00
|
|
|
void xf_DestroyWindow(xfInfo* xfi, xfWindow* window);
|
2011-08-17 10:14:02 +04:00
|
|
|
|
2011-09-02 02:08:53 +04:00
|
|
|
void xf_SetWindowMinMaxInfo(xfInfo* xfi, xfWindow* window, int maxWidth, int maxHeight,
|
|
|
|
int maxPosX, int maxPosY, int minTrackWidth, int minTrackHeight, int maxTrackWidth, int maxTrackHeight);
|
|
|
|
|
|
|
|
|
2011-09-01 02:02:22 +04:00
|
|
|
void xf_StartLocalMoveSize(xfInfo* xfi, xfWindow* window, uint16 moveSizeType, int posX, int posY);
|
|
|
|
void xf_StopLocalMoveSize(xfInfo* xfi, xfWindow* window, uint16 moveSizeType, int topLeftX, int topLeftY);
|
|
|
|
|
2011-08-09 06:24:12 +04:00
|
|
|
#endif /* __XF_WINDOW_H */
|