Exemplo n.º 1
0
        public static int remove(cef_list_value_t *self, int index)
        {
            remove_delegate d;
            var             p = self->_remove;

            if (p == _pa)
            {
                d = _da;
            }
            else
            {
                d = (remove_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(remove_delegate));
                if (_pa == IntPtr.Zero)
                {
                    _da = d; _pa = p;
                }
            }
            return(d(self, index));
        }
Exemplo n.º 2
0
        public static int remove(cef_dictionary_value_t *self, cef_string_t *key)
        {
            remove_delegate d;
            var             p = self->_remove;

            if (p == _pd)
            {
                d = _dd;
            }
            else
            {
                d = (remove_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(remove_delegate));
                if (_pd == IntPtr.Zero)
                {
                    _dd = d; _pd = p;
                }
            }
            return(d(self, key));
        }
Exemplo n.º 3
0
 public static int remove(cef_menu_model_t* self, int command_id)
 {
     remove_delegate d;
     var p = self->_remove;
     if (p == _pf) { d = _df; }
     else
     {
         d = (remove_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(remove_delegate));
         if (_pf == IntPtr.Zero) { _df = d; _pf = p; }
     }
     return d(self, command_id);
 }
Exemplo n.º 4
0
 public static int remove(cef_list_value_t* self, int index)
 {
     remove_delegate d;
     var p = self->_remove;
     if (p == _pa) { d = _da; }
     else
     {
         d = (remove_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(remove_delegate));
         if (_pa == IntPtr.Zero) { _da = d; _pa = p; }
     }
     return d(self, index);
 }
 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);
 }