webkit2gtk/
lib.rs

1// Take a look at the license at the top of the repository in the LICENSE file.
2
3/*
4 * TODO: add Cargo categories.
5 * TODO: add all unstable methods.
6 */
7
8extern crate bitflags;
9extern crate cairo;
10extern crate gdk;
11extern crate gdk_sys;
12extern crate gio;
13extern crate gio_sys;
14extern crate glib;
15extern crate glib_sys;
16extern crate gobject_sys;
17extern crate gtk;
18extern crate gtk_sys;
19extern crate javascriptcore as java_script_core;
20extern crate libc;
21
22extern crate ffi;
23
24macro_rules! assert_initialized_main_thread {
25    () => (
26        if !::gtk::is_initialized_main_thread() {
27            if ::gtk::is_initialized() {
28                panic!("GTK may only be used from the main thread.");
29            }
30            else {
31                panic!("GTK has not been initialized. Call `gtk::init` first.");
32            }
33        }
34    )
35}
36
37macro_rules! skip_assert_initialized {
38    () => ()
39}
40
41mod auto;
42mod script_dialog;
43mod web_view;
44mod web_context;
45
46pub use glib::Error;
47
48pub use auto::*;
49pub use script_dialog::*;
50pub use web_view::*;
51pub use web_context::*;