Click or drag to resize
CfxResourceBundle Class

[This is preliminary documentation and is subject to change.]

Structure used for retrieving resources from the resource bundle (*.pak) files loaded by CEF during startup or via the CfxResourceBundleHandler returned from CfxApp.GetResourceBundleHandler. See CfxSettings for additional options related to resource bundle loading. The functions of this structure may be called on any thread unless otherwise indicated.
Inheritance Hierarchy
SystemObject
  ChromiumCfxObject
    ChromiumCfxBase
      ChromiumCfxLibraryBase
        ChromiumCfxResourceBundle

Namespace: Chromium
Assembly: ChromiumFX (in ChromiumFX.dll)
Syntax
public class CfxResourceBundle : CfxLibraryBase

The CfxResourceBundle type exposes the following members.

Properties
  NameDescription
Public propertyNativePtr
Provides access to the underlying native cef struct. This is a refcounted library struct derived from cef_base_t. Add a ref in order to keep it alive when this managed object go out of scope.
(Inherited from CfxLibraryBase.)
Top
Methods
  NameDescription
Public methodGetDataResource
Retrieves the contents of the specified scale independent |resourceId|. If the value is found then |data| and |dataSize| will be populated and this function will return true (1). If the value is not found then this function will return false (0). The returned |data| pointer will remain resident in memory and should not be freed. Include cef_pack_resources.h for a listing of valid resource ID values.
Public methodGetDataResourceForScale
Retrieves the contents of the specified |resourceId| nearest the scale factor |scaleFactor|. Use a |scaleFactor| value of SCALE_FACTOR_NONE for scale independent resources or call GetDataResource instead. If the value is found then |data| and |dataSize| will be populated and this function will return true (1). If the value is not found then this function will return false (0). The returned |data| pointer will remain resident in memory and should not be freed. Include cef_pack_resources.h for a listing of valid resource ID values.
Public methodStatic memberGetGlobal
Returns the global resource bundle instance.
Public methodGetLocalizedString
Returns the localized string for the specified |stringId| or an NULL string if the value is not found. Include cef_pack_strings.h for a listing of valid string ID values.
Top
Remarks
See also the original CEF documentation in cef/include/capi/cef_resource_bundle_capi.h.
See Also