Function gtk::init

source · []
pub fn init() -> Result<(), BoolError>
Expand description

Tries to initialize GTK+.

Call either this function or Application::new before using any other GTK+ functions.

Note that this function calls gtk_init_check() rather than gtk_init(), so will not cause the program to terminate if GTK could not be initialized. Instead, an Ok is returned if the windowing system was successfully initialized otherwise an Err is returned.