Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: CharsetConverter

[13:7] extends: object

GCharsetConverter is an implementation of [iface@Gio.Converter] based on [struct@GLib.IConv].

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • CharsetConverter (to_charset = null, from_charset = null)

    Creates a new #GCharsetConverter.

    • @p to_charset is destination charset.
    • @p from_charset is source charset.
  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asObject ()

    Wraps this handle as Object.

    • @r A Object object.
  • asConverter ()

    Wraps this handle as Converter.

    • @r A Converter object.
  • asInitable ()

    Wraps this handle as Initable.

    • @r A Initable object.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setUsefallback (bool Value)

    Use fallback (of form \<hexval>) for invalid bytes.

    • @p Value is the new property value.
    • @r None.
  • get_num_fallbacks ()

    Gets the number of fallbacks that @converter has applied so far.

  • get_use_fallback ()

    Gets the #GCharsetConverter:use-fallback property.

  • set_use_fallback (bool use_fallback)

    Sets the #GCharsetConverter:use-fallback property.

    • @p use_fallback is %TRUE to use fallbacks.
    • @r None.

class: CharsetConverterMeta

[185:14] static extends: object

Generated metadata helpers for CharsetConverter class surfaces.

Methods

  • properties ()

    Returns property metadata for CharsetConverter.

    • @r A list.