RAGS - v1.10.0
    Preparing search index...

    Variable registerGObject

    registerGObject: <
        Obj extends new (...args: any[]) => Object,
        Config extends
            {
                cssName?: string;
                properties?: { [prop: string]: [type?: PspecType, handle?: PspecFlag] };
                signals?: { [signal: string]: PspecType[] };
                typename?: string;
            },
    >(
        object: Obj,
        config?: Config,
    ) => Obj

    Type Declaration

      • <
            Obj extends new (...args: any[]) => Object,
            Config extends
                {
                    cssName?: string;
                    properties?: { [prop: string]: [type?: PspecType, handle?: PspecFlag] };
                    signals?: { [signal: string]: PspecType[] };
                    typename?: string;
                },
        >(
            object: Obj,
            config?: Config,
        ): Obj
      • Registers a class as a GObject with optional signals and properties.

        This is a convenience wrapper around GObject.registerClass that accepts simplified signal and property definitions using PspecType strings.

        Type Parameters

        • Obj extends new (...args: any[]) => Object
        • Config extends {
              cssName?: string;
              properties?: { [prop: string]: [type?: PspecType, handle?: PspecFlag] };
              signals?: { [signal: string]: PspecType[] };
              typename?: string;
          }

        Parameters

        • object: Obj

          The class constructor to register

        • Optionalconfig: Config

          Registration configuration

        Returns Obj

        The registered class