Class OptionGroup
public class OptionGroup
- Inheritance
-
OptionGroup
- Inherited Members
Methods
AddEntries(OptionGroupHandle, OptionEntryArrayHandle)
Calls native method g_option_group_add_entries. Version: 2.6
[Version("2.6")]
public static extern void AddEntries(OptionGroupHandle group, OptionEntryArrayHandle entries)
Parameters
group
OptionGroupHandleTransfer ownership: None Nullable: False
entries
OptionEntryArrayHandleTransfer ownership: None Nullable: False
Free(OptionGroupHandle)
Calls native method g_option_group_free. Version: 2.6
[Version("2.6")]
public static extern void Free(OptionGroupHandle group)
Parameters
group
OptionGroupHandleTransfer ownership: None Nullable: False
GetGType()
Calls native function g_option_group_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
New(NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, nint, DestroyNotify)
Calls native constructor g_option_group_new. Version: 2.6
[Version("2.6")]
public static extern OptionGroupOwnedHandle New(NonNullableUtf8StringHandle name, NonNullableUtf8StringHandle description, NonNullableUtf8StringHandle helpDescription, nint userData, DestroyNotify destroy)
Parameters
name
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
description
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
helpDescription
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
userData
nintTransfer ownership: None Nullable: True
destroy
DestroyNotifyTransfer ownership: None Nullable: True
Returns
- OptionGroupOwnedHandle
Transfer ownership: Full Nullable: False
Ref(OptionGroupHandle)
Calls native method g_option_group_ref. Version: 2.44
[Version("2.44")]
public static extern OptionGroupOwnedHandle Ref(OptionGroupHandle group)
Parameters
group
OptionGroupHandleTransfer ownership: None Nullable: False
Returns
- OptionGroupOwnedHandle
Transfer ownership: Full Nullable: False
SetErrorHook(OptionGroupHandle, OptionErrorFunc)
Calls native method g_option_group_set_error_hook. Version: 2.6
[Version("2.6")]
public static extern void SetErrorHook(OptionGroupHandle group, OptionErrorFunc errorFunc)
Parameters
group
OptionGroupHandleTransfer ownership: None Nullable: False
errorFunc
OptionErrorFuncTransfer ownership: None Nullable: False
SetParseHooks(OptionGroupHandle, OptionParseFunc, OptionParseFunc)
Calls native method g_option_group_set_parse_hooks. Version: 2.6
[Version("2.6")]
public static extern void SetParseHooks(OptionGroupHandle group, OptionParseFunc preParseFunc, OptionParseFunc postParseFunc)
Parameters
group
OptionGroupHandleTransfer ownership: None Nullable: False
preParseFunc
OptionParseFuncTransfer ownership: None Nullable: True
postParseFunc
OptionParseFuncTransfer ownership: None Nullable: True
SetTranslateFunc(OptionGroupHandle, TranslateFunc, nint, DestroyNotify)
Calls native method g_option_group_set_translate_func. Version: 2.6
[Version("2.6")]
public static extern void SetTranslateFunc(OptionGroupHandle group, TranslateFunc func, nint data, DestroyNotify destroyNotify)
Parameters
group
OptionGroupHandleTransfer ownership: None Nullable: False
func
TranslateFuncTransfer ownership: None Nullable: True
data
nintTransfer ownership: None Nullable: True
destroyNotify
DestroyNotifyTransfer ownership: None Nullable: True
SetTranslationDomain(OptionGroupHandle, NonNullableUtf8StringHandle)
Calls native method g_option_group_set_translation_domain. Version: 2.6
[Version("2.6")]
public static extern void SetTranslationDomain(OptionGroupHandle group, NonNullableUtf8StringHandle domain)
Parameters
group
OptionGroupHandleTransfer ownership: None Nullable: False
domain
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Unref(OptionGroupHandle)
Calls native method g_option_group_unref. Version: 2.44
[Version("2.44")]
public static extern void Unref(OptionGroupHandle group)
Parameters
group
OptionGroupHandleTransfer ownership: None Nullable: False