FreeRDP/client/X11/xf_window.h

57 lines
1.5 KiB
C
Raw Normal View History

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
{
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;
Pixmap surface;
2011-08-09 06:24:12 +04:00
boolean fullscreen;
boolean decorations;
};
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);
xfWindow* desktop_create(xfInfo* xfi, char* name);
2011-08-09 06:24:12 +04:00
xfWindow* xf_CreateWindow(xfInfo* xfi, int x, int y, int width, int height, char* name);
void xf_MoveWindow(xfInfo* xfi, xfWindow* window, int x, int y, int width, int height);
2011-08-18 06:31:27 +04:00
void xf_DestroyWindow(xfInfo* xfi, xfWindow* window);
2011-08-09 06:24:12 +04:00
#endif /* __XF_WINDOW_H */