xref: /aosp_15_r20/external/skia/tools/window/unix/XlibWindowInfo.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1 /*
2  * Copyright 2024 Google LLC
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef XlibWindowInfo_DEFINED
9 #define XlibWindowInfo_DEFINED
10 
11 #include <X11/X.h>      // Window (which is usually an unsigned long)
12 #include <X11/Xutil.h>  // XVisualInfo (which is an anonymous struct)
13 
14 struct __GLXFBConfigRec;
15 using GLXFBConfig = __GLXFBConfigRec*;
16 using XWindow = Window;
17 
18 namespace skwindow {
19 
20 struct XlibWindowInfo {
21     Display* fDisplay;
22     XWindow fWindow;
23     GLXFBConfig* fFBConfig;
24     XVisualInfo* fVisualInfo;
25     int fWidth;
26     int fHeight;
27 };
28 
29 }  // namespace skwindow
30 
31 #endif
32