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-19 19:12:30 +04:00
|
|
|
int x;
|
|
|
|
int y;
|
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-08-17 22:13:44 +04:00
|
|
|
boolean window_GetCurrentDesktop(xfInfo* xfi);
|
|
|
|
boolean window_GetWorkArea(xfInfo* xfi);
|
|
|
|
|
2011-08-19 19:12:30 +04:00
|
|
|
void desktop_fullscreen(xfInfo* xfi, xfWindow* window, boolean fullscreen);
|
2011-08-09 06:24:12 +04:00
|
|
|
void window_show_decorations(xfInfo* xfi, xfWindow* window, boolean show);
|
|
|
|
|
2011-08-18 09:16:49 +04:00
|
|
|
xfWindow* desktop_create(xfInfo* xfi, char* name);
|
2011-08-09 06:24:12 +04:00
|
|
|
|
2011-08-17 22:13:44 +04:00
|
|
|
xfWindow* xf_CreateWindow(xfInfo* xfi, int x, int y, int width, int height, char* name);
|
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 01:32:18 +04:00
|
|
|
void xf_SetWindowIcon(xfInfo* xfi, xfWindow* window, rdpIcon* icon);
|
2011-08-18 06:31:27 +04:00
|
|
|
void xf_DestroyWindow(xfInfo* xfi, xfWindow* window);
|
2011-08-17 10:14:02 +04:00
|
|
|
|
2011-08-09 06:24:12 +04:00
|
|
|
#endif /* __XF_WINDOW_H */
|