Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: GObjectConfig

[16:14] static extends: object

Library configuration for the GObject generated namespace. The native library lookup is opened once per process and shared across every generated wrapper class in this namespace. To use a non-default install location, call setLibraryName before the first wrapper constructs a handle. This file was emitted with --lib-strategy=cross-platform, which writes an explicit candidate list for each platform. The list is tried in order; the first candidate that loads wins.

Members

  • lib
  • libName
  • libCandidates

Methods

  • library ()

    Returns the shared native library lookup, opening it on first use.

    • @r A NativeLibrary object.
  • setLibraryName (string Name)

    Overrides the library name used for lazy opening. Must be called before any generated wrapper has constructed a handle; once the library is opened the name is frozen.

    • @p Name is the library name or path to use.
    • @r this object.
  • libraryName ()

    Returns the current library name, whether set explicitly or defaulted from the GIR shared-library attribute.

    • @r A string.
  • libraryCandidates ()

    Returns the platform candidate list that library() tries in order. Empty after setLibraryName has pinned a single explicit name.

    • @r A list of strings.