Schnittstelle OptionGroup.OnTranslateFunc

Umschließende Klasse:
OptionGroup
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface OptionGroup.OnTranslateFunc
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    The type of functions which are used to translate user-visible
    strings, for <option>--help</option> output.
  • Methodendetails

    • onTranslateFunc

      Str onTranslateFunc(CallbackHandler __self, @Nonnull Str str, @Nullable Pointer data)
      The type of functions which are used to translate user-visible
      strings, for <option>--help</option> output.
      Parameter:
      str - the untranslated string
      data - user data specified when installing the function, e.g. in g_option_group_set_translate_func()
      Gibt zurück:
      a translation of the string for the current locale. The returned string is owned by GLib and must not be freed.