Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefResourceBundle

CefBaseRefCounted
   |
   +--CefResourceBundle

   in cef_resource_bundle.h

class CefResourceBundle
extends CefBaseRefCounted

Class used for retrieving resources from the resource bundle (*.pak) files loaded by CEF during startup or via the CefResourceBundleHandler returned from CefApp::GetResourceBundleHandler. See CefSettings for additional options related to resource bundle loading. The methods of this class may be called on any thread unless otherwise indicated.


Inner Classes, Typedefs, and Enums
typedef CefResourceBundle::ScaleFactor
          
 
Method Summary
 virtual bool GetDataResource( int resource_id, void*& data, size_t& data_size )= 0
          Retrieves the contents of the specified scale independent |resource_id|.
 virtual bool GetDataResourceForScale( int resource_id, CefResourceBundle::ScaleFactor scale_factor, void*& data, size_t& data_size )= 0
          Retrieves the contents of the specified |resource_id| nearest the scale factor |scale_factor|.
 static CefRefPtr< CefResourceBundle > GetGlobal()
          Returns the global resource bundle instance.
 virtual CefString GetLocalizedString( int string_id )= 0
          Returns the localized string for the specified |string_id| or an empty string if the value is not found.
   
Methods inherited from class CefBaseRefCounted
AddRef, Release, HasOneRef, HasAtLeastOneRef
 

Method Detail

GetDataResource

public virtual bool GetDataResource( int resource_id, void*& data, size_t& data_size )= 0;
Retrieves the contents of the specified scale independent |resource_id|. If the value is found then |data| and |data_size| will be populated and this method will return true. If the value is not found then this method will return false. 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.

GetDataResourceForScale

public virtual bool GetDataResourceForScale( int resource_id, CefResourceBundle::ScaleFactor scale_factor, void*& data, size_t& data_size )= 0;
Retrieves the contents of the specified |resource_id| nearest the scale factor |scale_factor|. Use a |scale_factor| value of SCALE_FACTOR_NONE for scale independent resources or call GetDataResource instead. If the value is found then |data| and |data_size| will be populated and this method will return true. If the value is not found then this method will return false. 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.

GetGlobal

public static CefRefPtr< CefResourceBundle > GetGlobal();
Returns the global resource bundle instance.

GetLocalizedString

public virtual CefString GetLocalizedString( int string_id )= 0;
Returns the localized string for the specified |string_id| or an empty string if the value is not found. Include cef_pack_strings.h for a listing of valid string ID values.

 Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Chromium Embedded Framework (CEF) Copyright © 2016 Marshall A. Greenblatt