OptionGroup

class OptionGroup(pointer: <Error class: unknown class><<Error class: unknown class>>) : Record

A GOptionGroup struct defines the options in a single group. The struct has only private fields and should not be directly accessed.

All options in a group share the same translation function. Libraries which need to parse commandline options are expected to provide a function for getting a GOptionGroup holding their options, which the application can then add to its #GOptionContext.

Skipped during bindings generation

  • parameter entries: OptionEntry

  • method set_translate_func: C function g_option_group_set_translate_func is ignored

  • parameter user_data: gpointer

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion : RecordCompanion<OptionGroup, <Error class: unknown class>>

Properties

Link copied to clipboard
val glibOptionGroupPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun free()

Frees a #GOptionGroup. Note that you must not free groups which have been added to a #GOptionContext.

Link copied to clipboard

Increments the reference count of @group by one.

Link copied to clipboard

A convenience function to use gettext() for translating user-visible strings.

Link copied to clipboard
fun unref()

Decrements the reference count of @group by one. If the reference count drops to 0, the @group will be freed. and all memory allocated by the @group is released.