OptionGroup.this

Creates a new #GOptionGroup.

  1. this(GOptionGroup* gOptionGroup, bool ownedRef)
  2. this(string name, string description, string helpDescription, void* userData, GDestroyNotify destroy)
    class OptionGroup

Parameters

name string

the name for the option group, this is used to provide help for the options in this group with --help-@name

description string

a description for this group to be shown in --help. This string is translated using the translation domain or translation function of the group

helpDescription string

a description for the --help-@name option. This string is translated using the translation domain or translation function of the group

userData void*

user data that will be passed to the pre- and post-parse hooks, the error hook and to callbacks of %G_OPTION_ARG_CALLBACK options, or %NULL

destroy GDestroyNotify

a function that will be called to free @user_data, or %NULL

Return Value

a newly created option group. It should be added to a #GOptionContext or freed with g_option_group_unref().

Throws

ConstructionException GTK+ fails to create the object.

Meta