StaticResource#

class StaticResource(*args, **kwargs)#

GStaticResource is an opaque data structure and can only be accessed using the following functions.

Methods#

class StaticResource
fini() None#

Finalizes a Resource initialized by init.

This is normally used by code generated by `glib-compile-resources <glib-compile-resources.html>`__ and is not typically used by other code.

Added in version 2.32.

get_resource() Resource#

Gets the Resource that was registered by a call to init.

This is normally used by code generated by `glib-compile-resources <glib-compile-resources.html>`__ and is not typically used by other code.

Added in version 2.32.

init() None#

Initializes a Resource from static data using a StaticResource.

This is normally used by code generated by `glib-compile-resources <glib-compile-resources.html>`__ and is not typically used by other code.

Added in version 2.32.

Fields#

class StaticResource
data#
data_len#
next#
padding#
resource#