Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: GrapheneSize

[28:7] extends: object

A size.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • GrapheneSize (Handle = null)

    Allocates a new #graphene_size_t. The contents of the returned value are undefined.

    • @p Handle is an optional native handle or wrapper whose handle to adopt; when the native constructor is called.
  • 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.
  • equal (object b)

    Checks whether the two give #graphene_size_t are equal.

    • @p b is a #graphene_size_t.
    • @r true if the sizes are equal.
  • free ()

    Frees the resources allocated by graphene_size_alloc().

    • @r None.
  • init (double width, double height)

    Initializes a #graphene_size_t using the given @width and @height.

    • @p width is the width.
    • @p height is the height.
    • @r the initialized #graphene_size_t.
  • init_from_size (object src)

    Initializes a #graphene_size_t using the width and height of the given

    • @src. ``
    • @p src is a #graphene_size_t.
    • @r the initialized #graphene_size_t.
  • interpolate (object b, double factor)

    Linearly interpolates the two given #graphene_size_t using the given interpolation @factor.

    • @p b is a #graphene_size_t.
    • @p factor is the linear interpolation factor.
    • @p res is return location for the interpolated size.
    • @r None.
  • scale (double factor)

    Scales the components of a #graphene_size_t using the given @factor.

    • @p factor is the scaling factor.
    • @p res is return location for the scaled size.
    • @r None.

class: GrapheneSizeLayout

[12:14] static extends: object

Generated struct layout helper for GIR record Size.

Methods

  • layout ()

    Returns the Panama struct layout for Size.