init_with_args
Description:
[ Version ( since = "1.0" ) ]
public InitError init_with_args (ref unowned string[]? argv, string parameter_string, OptionEntry[]? entries = null, string? translation_domain = null) throws Error
This function does the same work as init.
Additionally, it allows you to add your own command line options, and it automatically generates nicely formatted --help output. Clutter's and GStreamer's OptionGroup<!-- -->s are added to the set of available options.
Your program must initialise the GLib thread system using g_thread_init
before any other GLib functions are called.
Parameters:
argv |
A pointer to an array |
parameter_string |
a string which is displayed in the first line of <option>--help</option> output, after <literal><replaceable> programname</replaceable> [OPTION...]</literal> |
entries |
a null-terminated array of OptionEntry< !-- -->s describing the options of your program |
translation_domain |
a translation domain to use for translating the <option>--help</option> output for the options in |
argc |
The number of arguments in |
Returns:
clutter_init_success on success, a negative integer on failure. |