public static int get_bool(cef_dictionary_value_t* self, cef_string_t* key)
 {
     get_bool_delegate d;
     var p = self->_get_bool;
     if (p == _pd) { d = _dd; }
     else
     {
         d = (get_bool_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_bool_delegate));
         if (_pd == IntPtr.Zero) { _dd = d; _pd = p; }
     }
     return d(self, key);
 }
 public static int remove(cef_dictionary_value_t* self, cef_string_t* key)
 {
     remove_delegate d;
     var p = self->_remove;
     if (p == _pb) { d = _db; }
     else
     {
         d = (remove_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(remove_delegate));
         if (_pb == IntPtr.Zero) { _db = d; _pb = p; }
     }
     return d(self, key);
 }
 public static CefValueType get_type(cef_dictionary_value_t* self, cef_string_t* key)
 {
     get_type_delegate d;
     var p = self->_get_type;
     if (p == _pc) { d = _dc; }
     else
     {
         d = (get_type_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_type_delegate));
         if (_pc == IntPtr.Zero) { _dc = d; _pc = p; }
     }
     return d(self, key);
 }
 public static int set_list(cef_dictionary_value_t* self, cef_string_t* key, cef_list_value_t* value)
 {
     set_list_delegate d;
     var p = self->_set_list;
     if (p == _p1b) { d = _d1b; }
     else
     {
         d = (set_list_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_list_delegate));
         if (_p1b == IntPtr.Zero) { _d1b = d; _p1b = p; }
     }
     return d(self, key, value);
 }
 internal static CefDictionaryValue FromNativeOrNull(cef_dictionary_value_t* ptr)
 {
     if (ptr == null) return null;
     return new CefDictionaryValue(ptr);
 }
 public static cef_list_value_t* get_list(cef_dictionary_value_t* self, cef_string_t* key)
 {
     get_list_delegate d;
     var p = self->_get_list;
     if (p == _p13) { d = _d13; }
     else
     {
         d = (get_list_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_list_delegate));
         if (_p13 == IntPtr.Zero) { _d13 = d; _p13 = p; }
     }
     return d(self, key);
 }
 public static int set_bool(cef_dictionary_value_t* self, cef_string_t* key, int value)
 {
     set_bool_delegate d;
     var p = self->_set_bool;
     if (p == _p15) { d = _d15; }
     else
     {
         d = (set_bool_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_bool_delegate));
         if (_p15 == IntPtr.Zero) { _d15 = d; _p15 = p; }
     }
     return d(self, key, value);
 }
 public static int is_read_only(cef_dictionary_value_t* self)
 {
     is_read_only_delegate d;
     var p = self->_is_read_only;
     if (p == _p5) { d = _d5; }
     else
     {
         d = (is_read_only_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_read_only_delegate));
         if (_p5 == IntPtr.Zero) { _d5 = d; _p5 = p; }
     }
     return d(self);
 }
 public static cef_dictionary_value_t* copy(cef_dictionary_value_t* self, int exclude_empty_children)
 {
     copy_delegate d;
     var p = self->_copy;
     if (p == _p6) { d = _d6; }
     else
     {
         d = (copy_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(copy_delegate));
         if (_p6 == IntPtr.Zero) { _d6 = d; _p6 = p; }
     }
     return d(self, exclude_empty_children);
 }
 public static int get_refct(cef_dictionary_value_t* self)
 {
     get_refct_delegate d;
     var p = self->_base._get_refct;
     if (p == _p2) { d = _d2; }
     else
     {
         d = (get_refct_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_refct_delegate));
         if (_p2 == IntPtr.Zero) { _d2 = d; _p2 = p; }
     }
     return d(self);
 }
 public static int is_owned(cef_dictionary_value_t* self)
 {
     is_owned_delegate d;
     var p = self->_is_owned;
     if (p == _p4) { d = _d4; }
     else
     {
         d = (is_owned_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_owned_delegate));
         if (_p4 == IntPtr.Zero) { _d4 = d; _p4 = p; }
     }
     return d(self);
 }
 public static int release(cef_dictionary_value_t* self)
 {
     release_delegate d;
     var p = self->_base._release;
     if (p == _p1) { d = _d1; }
     else
     {
         d = (release_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(release_delegate));
         if (_p1 == IntPtr.Zero) { _d1 = d; _p1 = p; }
     }
     return d(self);
 }
 public static int add_ref(cef_dictionary_value_t* self)
 {
     add_ref_delegate d;
     var p = self->_base._add_ref;
     if (p == _p0) { d = _d0; }
     else
     {
         d = (add_ref_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(add_ref_delegate));
         if (_p0 == IntPtr.Zero) { _d0 = d; _p0 = p; }
     }
     return d(self);
 }
 private CefDictionaryValue(cef_dictionary_value_t* ptr)
 {
     if (ptr == null) throw new ArgumentNullException("ptr");
     _self = ptr;
 }
 public static double get_double(cef_dictionary_value_t* self, cef_string_t* key)
 {
     get_double_delegate d;
     var p = self->_get_double;
     if (p == _pf) { d = _df; }
     else
     {
         d = (get_double_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_double_delegate));
         if (_pf == IntPtr.Zero) { _df = d; _pf = p; }
     }
     return d(self, key);
 }
 public static UIntPtr get_size(cef_dictionary_value_t* self)
 {
     get_size_delegate d;
     var p = self->_get_size;
     if (p == _p7) { d = _d7; }
     else
     {
         d = (get_size_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_size_delegate));
         if (_p7 == IntPtr.Zero) { _d7 = d; _p7 = p; }
     }
     return d(self);
 }
 public static cef_string_userfree* get_string(cef_dictionary_value_t* self, cef_string_t* key)
 {
     get_string_delegate d;
     var p = self->_get_string;
     if (p == _p10) { d = _d10; }
     else
     {
         d = (get_string_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_string_delegate));
         if (_p10 == IntPtr.Zero) { _d10 = d; _p10 = p; }
     }
     return d(self, key);
 }
 public static int clear(cef_dictionary_value_t* self)
 {
     clear_delegate d;
     var p = self->_clear;
     if (p == _p8) { d = _d8; }
     else
     {
         d = (clear_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(clear_delegate));
         if (_p8 == IntPtr.Zero) { _d8 = d; _p8 = p; }
     }
     return d(self);
 }
 public static int set_null(cef_dictionary_value_t* self, cef_string_t* key)
 {
     set_null_delegate d;
     var p = self->_set_null;
     if (p == _p14) { d = _d14; }
     else
     {
         d = (set_null_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_null_delegate));
         if (_p14 == IntPtr.Zero) { _d14 = d; _p14 = p; }
     }
     return d(self, key);
 }
 public static int has_key(cef_dictionary_value_t* self, cef_string_t* key)
 {
     has_key_delegate d;
     var p = self->_has_key;
     if (p == _p9) { d = _d9; }
     else
     {
         d = (has_key_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_key_delegate));
         if (_p9 == IntPtr.Zero) { _d9 = d; _p9 = p; }
     }
     return d(self, key);
 }
 public static int set_double(cef_dictionary_value_t* self, cef_string_t* key, double value)
 {
     set_double_delegate d;
     var p = self->_set_double;
     if (p == _p17) { d = _d17; }
     else
     {
         d = (set_double_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_double_delegate));
         if (_p17 == IntPtr.Zero) { _d17 = d; _p17 = p; }
     }
     return d(self, key, value);
 }
 public static int get_keys(cef_dictionary_value_t* self, cef_string_list* keys)
 {
     get_keys_delegate d;
     var p = self->_get_keys;
     if (p == _pa) { d = _da; }
     else
     {
         d = (get_keys_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_keys_delegate));
         if (_pa == IntPtr.Zero) { _da = d; _pa = p; }
     }
     return d(self, keys);
 }
Exemplo n.º 23
0
 public static int set_dictionary(cef_list_value_t* self, int index, cef_dictionary_value_t* value)
 {
     set_dictionary_delegate d;
     var p = self->_set_dictionary;
     if (p == _p19) { d = _d19; }
     else
     {
         d = (set_dictionary_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_dictionary_delegate));
         if (_p19 == IntPtr.Zero) { _d19 = d; _p19 = p; }
     }
     return d(self, index, value);
 }
 internal static CefDictionaryValue FromNative(cef_dictionary_value_t* ptr)
 {
     return new CefDictionaryValue(ptr);
 }