Skip to content

Support for Views framework #252

Open

Description

@cztomczak

CEF views is a GUI framework built into CEF. It can act as a replacement for GUI libraries like PyQt, wxPython, PyGTK, that we could use in Hello World and Tutorial examples for simplicity. It has elements like: display, window, layout, button, panel, scroll view, textfield, among others. See the include/views/ directory for a complete list. Upstream issue #1749 added the views feature.

NOTE: CEF views do not support creating browser synchronously, but CEF Python currently only supports creating browser synchronously - there are a few cases that depend on it. See Marshall's response in this CEF topic: http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=15006

UPDATE: Currently as of v64 CEF Views are still not supported on Mac. Only Windows and Linux platforms are supported.

Views framework todo

  • In "src/client_handler/x11.cpp" in CefBrowser_GetGtkWindow return NULL when using the Views framework

hello_world.py / tutorial.py

Currently the Hello World / Tutorial examples have a few issues, that CEF views should fix:

offscreen.py

In CefWindow there are even functions for sending mouse/key events, so looks like this could allow creating a simple OSR example. However I don't see a way to draw using paint buffer.

Unit tests (#59)

Figure out if CEF views be of use in unit tests.

Activity

  1. changed the title [-]Use CEF views in Hello World, Tutorial and Offscreen examples[/-] [+]Use CEF views in Hello World, Tutorial and Offscreen examples and in Unit Tests[/+] on Sep 20, 2016
  2. changed the title [-]Use CEF views in Hello World, Tutorial and Offscreen examples and in Unit Tests[/-] [+]Use CEF views in Hello World, Tutorial and Offscreen examples and in Unit tests[/+] on Sep 20, 2016
  3. changed the title [-]Use CEF views in Hello World, Tutorial and Offscreen examples and in Unit tests[/-] [+]Use CEF views in Hello World, Tutorial and Offscreen examples, and in Unit tests[/+] on Sep 20, 2016
  4. changed the title [-]Use CEF views in Hello World, Tutorial and Offscreen examples, and in Unit tests[/-] [+]Support for Views framework on Windows and Linux[/+] on Aug 19, 2019
  5. changed the title [-]Support for Views framework on Windows and Linux[/-] [+]Support for Views framework[/+] on Aug 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions