Package ch.bailu.gtk.glib
Klasse OptionEntry
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.glib.OptionEntry
- Alle implementierten Schnittstellen:
PointerInterface
- %G_OPTION_ARG_NONE: %gboolean
- %G_OPTION_ARG_STRING: %gchar*
- %G_OPTION_ARG_INT: %gint
- %G_OPTION_ARG_FILENAME: %gchar*
- %G_OPTION_ARG_STRING_ARRAY: %gchar**
- %G_OPTION_ARG_FILENAME_ARRAY: %gchar**
- %G_OPTION_ARG_DOUBLE: %gdouble
If @arg type is %G_OPTION_ARG_STRING or %G_OPTION_ARG_FILENAME,
the location will contain a newly allocated string if the option
was given. That string needs to be freed by the callee using g_free().
Likewise if @arg type is %G_OPTION_ARG_STRING_ARRAY or
%G_OPTION_ARG_FILENAME_ARRAY, the data should be freed using g_strfreev().
A GOptionEntry struct defines a single option. To have an effect, they
must be added to a #GOptionGroup with g_option_context_add_main_entries()
or g_option_group_add_entries().
- %G_OPTION_ARG_STRING: %gchar*
- %G_OPTION_ARG_INT: %gint
- %G_OPTION_ARG_FILENAME: %gchar*
- %G_OPTION_ARG_STRING_ARRAY: %gchar**
- %G_OPTION_ARG_FILENAME_ARRAY: %gchar**
- %G_OPTION_ARG_DOUBLE: %gdouble
If @arg type is %G_OPTION_ARG_STRING or %G_OPTION_ARG_FILENAME,
the location will contain a newly allocated string if the option
was given. That string needs to be freed by the callee using g_free().
Likewise if @arg type is %G_OPTION_ARG_STRING_ARRAY or
%G_OPTION_ARG_FILENAME_ARRAY, the data should be freed using g_strfreev().
A GOptionEntry struct defines a single option. To have an effect, they
must be added to a #GOptionGroup with g_option_context_add_main_entries()
or g_option_group_add_entries().
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final String
The type of the option, as a #GOptionArgstatic final String
If the @arg type is %G_OPTION_ARG_CALLBACK, then @arg_data
must point to a #GOptionArgFunc callback function, which will be
called to handle the extra argument.static final String
The placeholder to use for the extra argument parsed
by the option in `--help` output.static final String
the description for the option in `--help`
output.static final String
Flags from #GOptionFlagsstatic final String
The long name of an option can be used to specify it
in a commandline as `--long_name`.static final String
If an option has a short name, it can be specified
`-short_name` in a commandline. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ClassHandler
int
The type of the option, as a #GOptionArgIf the @arg type is %G_OPTION_ARG_CALLBACK, then @arg_data
must point to a #GOptionArgFunc callback function, which will be
called to handle the extra argument.The placeholder to use for the extra argument parsed
by the option in `--help` output.the description for the option in `--help`
output.int
Flags from #GOptionFlagsThe long name of an option can be used to specify it
in a commandline as `--long_name`.byte
If an option has a short name, it can be specified
`-short_name` in a commandline.void
setFieldArg
(int arg) The type of the option, as a #GOptionArgvoid
setFieldArgData
(Pointer arg_data) If the @arg type is %G_OPTION_ARG_CALLBACK, then @arg_data
must point to a #GOptionArgFunc callback function, which will be
called to handle the extra argument.void
setFieldArgDescription
(Str arg_description) The placeholder to use for the extra argument parsed
by the option in `--help` output.void
setFieldDescription
(Str description) the description for the option in `--help`
output.void
setFieldFlags
(int flags) Flags from #GOptionFlagsvoid
setFieldLongName
(Str long_name) The long name of an option can be used to specify it
in a commandline as `--long_name`.void
setFieldShortName
(byte short_name) If an option has a short name, it can be specified
`-short_name` in a commandline.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
LONG_NAME
The long name of an option can be used to specify it
in a commandline as `--long_name`. Every option must have a
long name. To resolve conflicts if multiple option groups contain
the same long name, it is also possible to specify the option as
`--groupname-long_name`.- Siehe auch:
-
SHORT_NAME
If an option has a short name, it can be specified
`-short_name` in a commandline. @short_name must be a printable
ASCII character different from '-', or zero if the option has no
short name.- Siehe auch:
-
FLAGS
Flags from #GOptionFlags- Siehe auch:
-
ARG
The type of the option, as a #GOptionArg- Siehe auch:
-
ARG_DATA
If the @arg type is %G_OPTION_ARG_CALLBACK, then @arg_data
must point to a #GOptionArgFunc callback function, which will be
called to handle the extra argument. Otherwise, @arg_data is a
pointer to a location to store the value, the required type of
the location depends on the @arg type:- Siehe auch:
-
DESCRIPTION
the description for the option in `--help`
output. The @description is translated using the @translate_func
of the group, see g_option_group_set_translation_domain().- Siehe auch:
-
ARG_DESCRIPTION
The placeholder to use for the extra argument parsed
by the option in `--help` output. The @arg_description is translated
using the @translate_func of the group, see
g_option_group_set_translation_domain().- Siehe auch:
-
-
Konstruktordetails
-
OptionEntry
-
OptionEntry
public OptionEntry()
-
-
Methodendetails
-
getClassHandler
-
setFieldLongName
The long name of an option can be used to specify it
in a commandline as `--long_name`. Every option must have a
long name. To resolve conflicts if multiple option groups contain
the same long name, it is also possible to specify the option as
`--groupname-long_name`. -
getFieldLongName
The long name of an option can be used to specify it
in a commandline as `--long_name`. Every option must have a
long name. To resolve conflicts if multiple option groups contain
the same long name, it is also possible to specify the option as
`--groupname-long_name`. -
setFieldShortName
public void setFieldShortName(byte short_name) If an option has a short name, it can be specified
`-short_name` in a commandline. @short_name must be a printable
ASCII character different from '-', or zero if the option has no
short name. -
getFieldShortName
public byte getFieldShortName()If an option has a short name, it can be specified
`-short_name` in a commandline. @short_name must be a printable
ASCII character different from '-', or zero if the option has no
short name. -
setFieldFlags
public void setFieldFlags(int flags) Flags from #GOptionFlags -
getFieldFlags
public int getFieldFlags()Flags from #GOptionFlags -
setFieldArg
public void setFieldArg(int arg) The type of the option, as a #GOptionArg -
getFieldArg
public int getFieldArg()The type of the option, as a #GOptionArg -
setFieldArgData
If the @arg type is %G_OPTION_ARG_CALLBACK, then @arg_data
must point to a #GOptionArgFunc callback function, which will be
called to handle the extra argument. Otherwise, @arg_data is a
pointer to a location to store the value, the required type of
the location depends on the @arg type: -
getFieldArgData
If the @arg type is %G_OPTION_ARG_CALLBACK, then @arg_data
must point to a #GOptionArgFunc callback function, which will be
called to handle the extra argument. Otherwise, @arg_data is a
pointer to a location to store the value, the required type of
the location depends on the @arg type: -
setFieldDescription
the description for the option in `--help`
output. The @description is translated using the @translate_func
of the group, see g_option_group_set_translation_domain(). -
getFieldDescription
the description for the option in `--help`
output. The @description is translated using the @translate_func
of the group, see g_option_group_set_translation_domain(). -
setFieldArgDescription
The placeholder to use for the extra argument parsed
by the option in `--help` output. The @arg_description is translated
using the @translate_func of the group, see
g_option_group_set_translation_domain(). -
getFieldArgDescription
The placeholder to use for the extra argument parsed
by the option in `--help` output. The @arg_description is translated
using the @translate_func of the group, see
g_option_group_set_translation_domain().
-