init


Description:


public void init (ref unowned string[] argv)

Initializes the GDK library and connects to the windowing system.

If initialization fails, a warning message is output and the application terminates with a call to `exit(1)`.

Any arguments used by GDK are removed from the array and argv.length and argv are updated accordingly.

GTK+ initializes GDK in gtk_init and so this function is not usually needed by GTK+ applications.

Parameters:

argv

the array of command line arguments.

argc

the number of command line arguments.


Namespace: Gdk
Package: gdk-3.0



2022 vala-language.org