parse_args
Description:
Parses command line arguments, and initializes global attributes of GTK+, but does not actually open a connection to a display.
(See open, get_display_arg_name)
Any arguments used by GTK+ or GDK are removed from the array and argv.length
and argv
are updated accordingly.
There is no need to call this function explicitly if you are using init, or init_check.
Note that many aspects of GTK+ require a display connection to function, so this way of initializing GTK+ is really only useful for specialized use cases.
Parameters:
argv |
a pointer to the array of command line arguments |
argc |
a pointer to the number of command line arguments |
Returns:
true if initialization succeeded, otherwise false |
Namespace: Gtk
Package: gtk+-3.0