forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathx11.h
More file actions
25 lines (20 loc) · 968 Bytes
/
Copy pathx11.h
File metadata and controls
25 lines (20 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (c) 2016 CEF Python, see the Authors file.
// All rights reserved. Licensed under BSD 3-clause license.
// Project website: https://github.com/cztomczak/cefpython
#pragma once
// CEF headers must come before X11/GTK headers: X11/Xlib.h defines 'Status'
// (typedef int Status) which conflicts with CefURLRequest::Status typedef.
// Pre-including cef_urlrequest.h ensures it is processed first.
#include "include/cef_urlrequest.h"
#include "include/cef_browser.h"
#include <X11/Xlib.h>
#include <gtk/gtk.h>
#include <gtk/gtkx.h>
#include <gdk/gdkx.h>
void InstallX11ErrorHandlers();
void SetX11WindowBounds(CefRefPtr<CefBrowser> browser,
int x, int y, int width, int height);
void SetX11WindowTitle(CefRefPtr<CefBrowser> browser, char* title);
void HideX11ShellWindow(CefRefPtr<CefBrowser> browser);
GtkWindow* CefBrowser_GetGtkWindow(CefRefPtr<CefBrowser> browser);
XImage* CefBrowser_GetImage(CefRefPtr<CefBrowser> browser);