OptionGroup.this

Creates a new GOptionGroup. Since 2.6

  1. this(GOptionGroup* gOptionGroup)
  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. [allow-none]

destroy GDestroyNotify

a function that will be called to free user_data, or NULL. [allow-none]

Throws

ConstructionException GTK+ fails to create the object.

Meta