Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

2.6 KB
Raw Blame
// Generated by tools/gen.sh from Blender's own API (tools/dump.py). Don't edit: regenerate.
import type * as H from "../../types";
import type * as M from "../../mathutils";
import type * as R from "../rna";
import type * as E from "../enums";
import type * as P from "../py";

/** bpy.msgbus */
export interface Api {
  /**
   * Clear all subscribers using this owner.
   * @param owner The owner handle passed to :func:`subscribe_rna`.
   */
  clear_by_owner(owner: any): H.Ref<void>;
  /**
   * Clear all subscribers using this owner.
   * @param owner The owner handle passed to :func:`subscribe_rna`.
   */
  clear_by_owner(kw: {
    /** The owner handle passed to :func:`subscribe_rna`. */
    owner: any;
  }): H.Ref<void>;
  /**
   * Notify subscribers of changes to this property
   * (this typically doesn't need to be called explicitly since changes will automatically publish updates).
   * In some cases it may be useful to publish changes explicitly using more general keys.
   */
  publish_rna(kw?: {
    /**
     * Represents the type of data being subscribed to
     * Arguments include
     * - A property instance.
     * - A struct type.
     * - A tuple representing a (struct, property name) pair.
     */
    key?: H.In<R.Property | R.Struct | readonly [R.Struct, string]>;
  }): H.Ref<void>;
  /**
   * Register a message bus subscription. It will be cleared when another blend file is
   *    loaded, or can be cleared explicitly via :func:`bpy.msgbus.clear_by_owner`.
   *
   *    :param key: Represents the type of data being subscribed to
   *
   *       Arguments include
   *       - A property instance.
   *       - A struct type.
   *       - A tuple representing a (struct, property name) pair.
   *    :type key: :class:`bpy.types.Property` | :class:`bpy.types.Struct` | tuple[:class:`bpy.types.Struct`, str]
   *    :param owner: Handle for this subscription (compared by identity).
   *    :type owner: Any
   *    :param args: Arguments passed to the callback.
   *    :type args: tuple
   *    :param notify: The callback function.
   *    :type notify: Callable[..., None]
   *    :param options: Change the behavior of the subscriber.
   *
   *       - ``PERSISTENT`` when set, the subscriber will be kept when remapping ID data.
   *
   *    :type options: set[Literal['PERSISTENT']]
   *
   * .. note::
   *
   *    All subscribers will be cleared on file-load. Subscribers can be re-registered on load,
   *    see :mod:`bpy.app.handlers.load_post`.
   */
  subscribe_rna(kw?: {
    key?: any;
    owner?: any;
    args?: any;
    notify?: any;
    options?: any;
  }): H.Ref<void>;
}