get_option_group


Description:


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 instead of using init or init_with_args.

You should add this option group to your OptionContext after the GTK option group created with get_option_group, and after the clutter option group obtained from get_option_group_without_init. You should not use get_option_group together with this function.

You must pass true to get_option_group since gtk-clutter's option group relies on it.

Parsing options using parse with a OptionContext containing the returned GOptionGroupwith will result in Clutter's and GTK-Clutter's initialisation. That is, the following code:

	g_option_context_add_group (context, gtk_get_option_group (TRUE));
g_option_context_add_group (context, cogl_get_option_group ());
g_option_context_add_group (context, clutter_get_option_group_without_init ());
g_option_context_add_group (context, gtk_clutter_get_option_group ());
res = g_option_context_parse (context, &argc, &argc, NULL);

is functionally equivalent to:

	gtk_clutter_init (&argc, &argv);

After parse on a OptionContext containing the the returned OptionGroup has returned true, Clutter and GTK-Clutter are guaranteed to be initialized.

Returns:

a OptionGroup for the commandline arguments recognized by ClutterGtk


Namespace: GtkClutter
Package: clutter-gtk-1.0



2022 vala-language.org