gitlab-ci: enable sanitizers for the meson builds
[mesa-waffle.git] / src / waffle / x11 / x11_window.h
blob36cec888d40aa8c0115e8b0664de10231fe0ed20
1 // SPDX-FileCopyrightText: Copyright 2012 Intel Corporation
2 // SPDX-License-Identifier: BSD-2-Clause
4 #pragma once
6 #include <stdbool.h>
8 #include <X11/Xlib-xcb.h>
10 struct x11_display;
12 struct x11_window {
13 struct x11_display *display;
14 xcb_window_t xcb;
17 bool
18 x11_window_init(struct x11_window *self,
19 struct x11_display *dpy,
20 xcb_visualid_t visual_id,
21 int32_t width,
22 int32_t height);
24 bool
25 x11_window_teardown(struct x11_window *self);
27 bool
28 x11_window_show(struct x11_window *self);
30 bool
31 x11_window_resize(struct x11_window *self, int32_t width, int32_t height);