Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: PixbufSimpleAnimMeta

[170:14] static extends: object

Generated metadata helpers for PixbufSimpleAnim class surfaces.

Methods

  • properties ()

    Returns property metadata for PixbufSimpleAnim.

    • @r A list.

class: PixbufSimpleAnim

[12:7] extends: object

An opaque struct representing a simple animation.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • PixbufSimpleAnim (width = null, height = null, rate = null)

    Creates a new, empty animation.

    • @p width is the width of the animation.
    • @p height is the height of the animation.
    • @p rate is the speed of the animation, in frames per second.
  • 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.
  • asPixbufAnimation ()

    Wraps this handle as PixbufAnimation.

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

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setLoop (bool Value)

    Whether the animation should loop when it reaches the end.

    • @p Value is the new property value.
    • @r None.
  • add_frame (object pixbuf)

    Adds a new frame to @animation. The @pixbuf must have the dimensions specified when the animation was constructed.

    • @p pixbuf is the pixbuf to add.
    • @r None.
  • get_loop ()

    Gets whether @animation should loop indefinitely when it reaches the end.

  • set_loop (bool loop)

    Sets whether @animation should loop indefinitely when it reaches the end.

    • @p loop is whether to loop the animation.
    • @r None.