Package ch.bailu.gtk.glib
Interface OptionArg
public interface OptionArg
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The option provides a callback (of type
#GOptionArgFunc) to parse the extra argument.static final int
The option takes a double argument.static final int
The option takes a filename as argument, which will
be in the GLib filename encoding rather than UTF-8.static final int
The option takes a filename as argument,
multiple uses of the option are collected into an array of strings.static final int
The option takes an integer argument.static final int
The option takes a 64-bit integer.static final int
No extra argument.static final int
The option takes a UTF-8 string argument.static final int
The option takes a string argument, multiple
uses of the option are collected into an array of strings.
-
Field Details
-
NONE
static final int NONENo extra argument. This is useful for simple flags or booleans.- See Also:
-
STRING
static final int STRINGThe option takes a UTF-8 string argument.- See Also:
-
INT
static final int INTThe option takes an integer argument.- See Also:
-
CALLBACK
static final int CALLBACKThe option provides a callback (of type
#GOptionArgFunc) to parse the extra argument.- See Also:
-
FILENAME
static final int FILENAMEThe option takes a filename as argument, which will
be in the GLib filename encoding rather than UTF-8.- See Also:
-
STRING_ARRAY
static final int STRING_ARRAYThe option takes a string argument, multiple
uses of the option are collected into an array of strings.- See Also:
-
FILENAME_ARRAY
static final int FILENAME_ARRAYThe option takes a filename as argument,
multiple uses of the option are collected into an array of strings.- See Also:
-
DOUBLE
static final int DOUBLEThe option takes a double argument. The argument
can be formatted either for the user's locale or for the "C" locale.
Since 2.12- See Also:
-
INT64
static final int INT64The option takes a 64-bit integer. Like
%G_OPTION_ARG_INT but for larger numbers. The number can be in
decimal base, or in hexadecimal (when prefixed with `0x`, for
example, `0xffffffff`). Since 2.12- See Also:
-