Schnittstelle OptionArg


public interface OptionArg
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static 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.
  • Felddetails

    • NONE

      static final int NONE
      No extra argument. This is useful for simple flags or booleans.
      Siehe auch:
    • STRING

      static final int STRING
      The option takes a UTF-8 string argument.
      Siehe auch:
    • INT

      static final int INT
      The option takes an integer argument.
      Siehe auch:
    • CALLBACK

      static final int CALLBACK
      The option provides a callback (of type #GOptionArgFunc)
      to parse the extra argument.
      Siehe auch:
    • FILENAME

      static final int FILENAME
      The option takes a filename as argument, which will
      be in the GLib filename encoding rather than UTF-8.
      Siehe auch:
    • STRING_ARRAY

      static final int STRING_ARRAY
      The option takes a string argument, multiple
      uses of the option are collected into an array of strings.
      Siehe auch:
    • FILENAME_ARRAY

      static final int FILENAME_ARRAY
      The option takes a filename as argument,
      multiple uses of the option are collected into an array of strings.
      Siehe auch:
    • DOUBLE

      static final int DOUBLE
      The option takes a double argument. The argument
      can be formatted either for the user's locale or for the "C" locale.
      Since 2.12
      Siehe auch:
    • INT64

      static final int INT64
      The 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
      Siehe auch: