-
Notifications
You must be signed in to change notification settings - Fork 0
WindowInfo
This class is passed to functions: cefpython.CreateBrowserSync(), LifespanHandler.OnBeforePopup().
To instantiate this class call: cefpython.WindowInfo().
void SetAsChild(int parentWindowHandle, list windowRect=None)
windowRectparam is optional on Windows. On Linux & Mac it is required. Example value: [left, top, right, bottom].
This is the method you want to call in most cases.
void SetAsPopup(int parentWindowHandle, string windowName)
Available only on Windows.
void SetAsOffscreen(int parentWindowHandle)
Available in CEF 1 only on Windows & Mac.
Call this method to disable window rendering and to use RenderHandler. See the Panda3D / Kivy examples.
You can pass 0 to
parentWindowHandle, but then some things like context menus and plugins may not display correctly.
void SetTransparentPainting(bool transparentPainting)
This method is intended for use with off-screen rendering. (not sure if it works with windowed rendering)