Resource.this

Creates a GResource from a reference to the binary resource bundle. This will keep a reference to @data while the resource lives, so the data should not be modified or freed.

If you want to use this resource in the global resource namespace you need to register it with g_resources_register().

  1. this(GResource* gResource)
  2. this(Bytes data)
    class Resource
    this

Parameters

data Bytes

A #GBytes

Return: a new #GResource, or %NULL on error

Throws

GException on failure. ConstructionException GTK+ fails to create the object.

Meta

Since

2.32