Interface OptionGroup.OnTranslateFunc

Enclosing class:
OptionGroup
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface OptionGroup.OnTranslateFunc
  • Method Summary

    Modifier and Type
    Method
    Description
    onTranslateFunc(CallbackHandler __self, Str str, Pointer user_data)
    The type of functions which are used to translate user-visible
    strings, for <option>--help</option> output.
  • Method Details

    • onTranslateFunc

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