get_option_group


Description:

[ Version ( since = "0.2" ) ]
public OptionGroup get_option_group ()

Returns a OptionGroup for the command line arguments recognized by Clutter.

You should add this group to your OptionContext with add_group, if you are using parse to parse your commandline arguments.

Calling parse with Clutter's OptionGroup will result in Clutter's initialization. That is, the following code:

  g_option_context_set_main_group (context, clutter_get_option_group ());
res = g_option_context_parse (context, &argc, &argc, NULL);

is functionally equivalent to:

  clutter_init (&argc, &argv);

After parse on a OptionContext containing the Clutter OptionGroup has returned true, Clutter is guaranteed to be initialized.

Returns:

a OptionGroup for the commandline arguments recognized by Clutter


Namespace: Clutter
Package: clutter-1.0