The OpenD Programming Language

cef_resource_bundle_handler_t

Structure used to implement a custom resource bundle structure. See CefSettings for additional options related to resource bundle loading. The functions of this structure may be called on multiple threads.

Members

Variables

base
cef_base_ref_counted_t base;

Base structure.

get_data_resource
int function(cef_resource_bundle_handler_t* self, int resource_id, void** data, size_t* data_size) nothrow get_data_resource;

To provide the resource data set |data| and |data_size| to the data pointer and size respectively and return true (1). To use the default resource data return false (0). The resource data will not be copied and must remain resident in memory. Include cef_pack_resources.h for a listing of valid resource ID values.

get_data_resource_for_scale
int function(cef_resource_bundle_handler_t* self, int resource_id, cef_scale_factor_t scale_factor, void** data, size_t* data_size) nothrow get_data_resource_for_scale;

Called to retrieve data for the specified |resource_id| nearest the scale factor |scale_factor|. To provide the resource data set |data| and |data_size| to the data pointer and size respectively and return true (1). To use the default resource data return false (0). The resource data will not be copied and must remain resident in memory. Include cef_pack_resources.h for a listing of valid resource ID values.

Meta