Skip to content

GSharpKit/ChromiumGtk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Similar active projects:

ChromiumGtk

ChromiumGtk is a WebView for GtkSharp using Chromium Embedded Framework (CEF) and CefGlue.

Supported Platforms

  • .NET6 on Fedora 38 (AMD64)
  • .NET6 on Windows 10/11 (AMD64)

Dependencies

Usage

static void Main(string[] args)
{
    WebView.Initialize();

    Application.Init();
    
    using var window = new Window("Chromium Gtk Example")
    {
        WidthRequest = 1200,
        HeightRequest = 800
    };

    window.Destroyed += (_, _) => WebView.Quit();

    #if LINUX
    InteropLinux.SetDefaultWindowVisual(window.Handle);
    #endif

    using var webView = new WebView();
    webView.LoadUrl("https://www.google.com/");

    window.Add(webView);
    window.ShowAll();

    WebView.Run();
    Application.Run();
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

This repository uses code from CefGlue (MIT) and Chromely (MIT)

About

Testing CEF with Gtk on Linux, Windows and macOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages