public static cef_settings_t* Alloc()
 {
     var ptr = (cef_settings_t*)Marshal.AllocHGlobal(_sizeof);
     *ptr = new cef_settings_t();
     ptr->size = (UIntPtr)_sizeof;
     return ptr;
 }
Esempio n. 2
0
        public static cef_settings_t *Alloc()
        {
            var ptr = (cef_settings_t *)Marshal.AllocHGlobal(_sizeof);

            *ptr = new cef_settings_t();
            ptr->size = (UIntPtr)_sizeof;
            return(ptr);
        }
 public static void Free(cef_settings_t* ptr)
 {
     Marshal.FreeHGlobal((IntPtr)ptr);
 }
Esempio n. 4
0
 public static extern int initialize(cef_main_args_t* args, cef_settings_t* settings, cef_app_t* application);
Esempio n. 5
0
 internal static void Free(cef_settings_t* ptr)
 {
     Clear((cef_settings_t*)ptr);
     cef_settings_t.Free((cef_settings_t*)ptr);
 }
Esempio n. 6
0
 private static void Clear(cef_settings_t* ptr)
 {
     libcef.string_clear(&ptr->browser_subprocess_path);
     libcef.string_clear(&ptr->cache_path);
     libcef.string_clear(&ptr->user_agent);
     libcef.string_clear(&ptr->product_version);
     libcef.string_clear(&ptr->locale);
     libcef.string_clear(&ptr->log_file);
     libcef.string_clear(&ptr->javascript_flags);
     libcef.string_clear(&ptr->resources_dir_path);
     libcef.string_clear(&ptr->locales_dir_path);
 }