Interface

Clutter-18ClutterContentInterface

Interface for implementing Content. Contains only the virtual methods that need to be implemented.

interface Interface {
    vfunc_attached(actor: Clutter.Actor): void;
    vfunc_detached(actor: Clutter.Actor): void;
    vfunc_get_preferred_size(): [boolean, number, number];
    vfunc_invalidate(): void;
    vfunc_invalidate_size(): void;
    vfunc_paint_content(
        actor: Clutter.Actor,
        node: Clutter.PaintNode,
        paint_context: PaintContext,
    ): void;
}

Hierarchy (View Summary)

Index

Methods

  • Retrieves the natural size of the content, if any.

    The natural size of a Clutter.Content is defined as the size the content would have regardless of the allocation of the actor that is painting it, for instance the size of an image data.

    Returns [boolean, number, number]