2 * FreeRDP: A Remote Desktop Protocol Implementation
5 * Copyright 2014 Manuel Bachmann <tarnyko@tarnyko.net>
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
20 #ifndef __WLF_WINDOW_H
21 #define __WLF_WINDOW_H
23 #include <wayland-client.h>
25 typedef struct wlf_window wlfWindow;
27 #include "wlfreerdp.h"
31 struct wl_buffer* buffer;
35 typedef struct wlf_buffer wlfBuffer;
41 struct wl_surface* surface;
42 struct wl_shell_surface* shell_surface;
43 struct wl_callback* callback;
50 wlfWindow* wlf_CreateDesktopWindow(wlfContext* wlfc, char* name, int width, int height, BOOL decorations);
51 void wlf_ResizeDesktopWindow(wlfContext* wlfc, wlfWindow* window, int width, int height);
52 void wlf_SetWindowText(wlfContext* wlfc, wlfWindow* window, char* name);
53 void wlf_SetWindowFullscreen(wlfContext* wlfc, wlfWindow* window, BOOL fullscree);
54 void wlf_ShowWindow(wlfContext* wlfc, wlfWindow* window, BYTE state);
55 void wlf_UpdateWindowArea(wlfContext* wlfc, wlfWindow* window, int x, int y, int width, int height);
56 void wlf_DestroyWindow(wlfContext* wlfc, wlfWindow* window);
58 #endif /* __WLF_WINDOW_H */