コード例 #1
0
ファイル: cef_list_value_t.cs プロジェクト: wuzlai521/CefNet
 public unsafe int SetValue(UIntPtr index, cef_value_t *value)
 {
     fixed(cef_list_value_t *self = &this)
     {
         return(((delegate * unmanaged[Stdcall] < cef_list_value_t *, UIntPtr, cef_value_t *, int >)set_value)(self, index, value));
     }
 }
コード例 #2
0
ファイル: cef_request_context_t.cs プロジェクト: vmas/CefNet
 public unsafe int SetPreference([Immutable] cef_string_t *name, cef_value_t *value, cef_string_t *error)
 {
     fixed(cef_request_context_t *self = &this)
     {
         return(((delegate * unmanaged[Stdcall] < cef_request_context_t *, cef_string_t *, cef_value_t *, cef_string_t *, int >)set_preference)(self, name, value, error));
     }
 }
コード例 #3
0
 public unsafe int SetValue([Immutable] cef_string_t *key, cef_value_t *value)
 {
     fixed(cef_dictionary_value_t *self = &this)
     {
         return(((delegate * unmanaged[Stdcall] < cef_dictionary_value_t *, cef_string_t *, cef_value_t *, int >)set_value)(self, key, value));
     }
 }
コード例 #4
0
 public unsafe void OnAccessibilityLocationChange(cef_value_t *value)
 {
     fixed(cef_accessibility_handler_t *self = &this)
     {
         ((delegate * unmanaged[Stdcall] < cef_accessibility_handler_t *, cef_value_t *, void >)on_accessibility_location_change)(self, value);
     }
 }
コード例 #5
0
 public unsafe int IsEqual(cef_value_t *that)
 {
     fixed(cef_value_t *self = &this)
     {
         return(((delegate * unmanaged[Stdcall] < cef_value_t *, cef_value_t *, int >)is_equal)(self, that));
     }
 }
        private void on_accessibility_tree_change(cef_accessibility_handler_t *self, cef_value_t *value)
        {
            CheckSelf(self);

            var mValue = CefValue.FromNativeOrNull(value);

            OnAccessibilityTreeChange(mValue);
        }
コード例 #7
0
 internal static CefValue FromNativeOrNull(cef_value_t *ptr)
 {
     if (ptr == null)
     {
         return(null);
     }
     return(new CefValue(ptr));
 }
コード例 #8
0
 private CefValue(cef_value_t *ptr)
 {
     if (ptr == null)
     {
         throw new ArgumentNullException("ptr");
     }
     _self = ptr;
 }
コード例 #9
0
 public void Dispose()
 {
     if (_self != null)
     {
         Release();
         _self = null;
     }
     GC.SuppressFinalize(this);
 }
コード例 #10
0
ファイル: cef_value_t.g.cs プロジェクト: fosstheory/PongGlobe
        public static int set_null(cef_value_t *self)
        {
            set_null_delegate d;
            var p = self->_set_null;

            if (p == _p11)
            {
                d = _d11;
            }
            else
            {
                d = (set_null_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_null_delegate));
                if (_p11 == IntPtr.Zero)
                {
                    _d11 = d; _p11 = p;
                }
            }
            return(d(self));
        }
コード例 #11
0
ファイル: cef_value_t.g.cs プロジェクト: fosstheory/PongGlobe
        public static int set_int(cef_value_t *self, int value)
        {
            set_int_delegate d;
            var p = self->_set_int;

            if (p == _p13)
            {
                d = _d13;
            }
            else
            {
                d = (set_int_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_int_delegate));
                if (_p13 == IntPtr.Zero)
                {
                    _d13 = d; _p13 = p;
                }
            }
            return(d(self, value));
        }
コード例 #12
0
ファイル: cef_value_t.g.cs プロジェクト: fosstheory/PongGlobe
        public static cef_dictionary_value_t *get_dictionary(cef_value_t *self)
        {
            get_dictionary_delegate d;
            var p = self->_get_dictionary;

            if (p == _pf)
            {
                d = _df;
            }
            else
            {
                d = (get_dictionary_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_dictionary_delegate));
                if (_pf == IntPtr.Zero)
                {
                    _df = d; _pf = p;
                }
            }
            return(d(self));
        }
コード例 #13
0
ファイル: cef_value_t.g.cs プロジェクト: fosstheory/PongGlobe
        public static cef_list_value_t *get_list(cef_value_t *self)
        {
            get_list_delegate d;
            var p = self->_get_list;

            if (p == _p10)
            {
                d = _d10;
            }
            else
            {
                d = (get_list_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_list_delegate));
                if (_p10 == IntPtr.Zero)
                {
                    _d10 = d; _p10 = p;
                }
            }
            return(d(self));
        }
コード例 #14
0
ファイル: cef_value_t.g.cs プロジェクト: fosstheory/PongGlobe
        public static double get_double(cef_value_t *self)
        {
            get_double_delegate d;
            var p = self->_get_double;

            if (p == _pc)
            {
                d = _dc;
            }
            else
            {
                d = (get_double_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_double_delegate));
                if (_pc == IntPtr.Zero)
                {
                    _dc = d; _pc = p;
                }
            }
            return(d(self));
        }
コード例 #15
0
ファイル: cef_value_t.g.cs プロジェクト: fosstheory/PongGlobe
        public static cef_string_userfree *get_string(cef_value_t *self)
        {
            get_string_delegate d;
            var p = self->_get_string;

            if (p == _pd)
            {
                d = _dd;
            }
            else
            {
                d = (get_string_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_string_delegate));
                if (_pd == IntPtr.Zero)
                {
                    _dd = d; _pd = p;
                }
            }
            return(d(self));
        }
コード例 #16
0
ファイル: cef_value_t.g.cs プロジェクト: fosstheory/PongGlobe
        public static int set_binary(cef_value_t *self, cef_binary_value_t *value)
        {
            set_binary_delegate d;
            var p = self->_set_binary;

            if (p == _p16)
            {
                d = _d16;
            }
            else
            {
                d = (set_binary_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_binary_delegate));
                if (_p16 == IntPtr.Zero)
                {
                    _d16 = d; _p16 = p;
                }
            }
            return(d(self, value));
        }
コード例 #17
0
ファイル: cef_value_t.g.cs プロジェクト: fosstheory/PongGlobe
        public static int is_owned(cef_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));
        }
コード例 #18
0
ファイル: cef_value_t.g.cs プロジェクト: fosstheory/PongGlobe
        public static cef_value_t *copy(cef_value_t *self)
        {
            copy_delegate d;
            var           p = self->_copy;

            if (p == _p8)
            {
                d = _d8;
            }
            else
            {
                d = (copy_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(copy_delegate));
                if (_p8 == IntPtr.Zero)
                {
                    _d8 = d; _p8 = p;
                }
            }
            return(d(self));
        }
コード例 #19
0
        public static int set_value(cef_dictionary_value_t *self, cef_string_t *key, cef_value_t *value)
        {
            set_value_delegate d;
            var p = self->_set_value;

            if (p == _p17)
            {
                d = _d17;
            }
            else
            {
                d = (set_value_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_value_delegate));
                if (_p17 == IntPtr.Zero)
                {
                    _d17 = d; _p17 = p;
                }
            }
            return(d(self, key, value));
        }
コード例 #20
0
ファイル: cef_value_t.g.cs プロジェクト: fosstheory/PongGlobe
        public static int is_equal(cef_value_t *self, cef_value_t *that)
        {
            is_equal_delegate d;
            var p = self->_is_equal;

            if (p == _p7)
            {
                d = _d7;
            }
            else
            {
                d = (is_equal_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_equal_delegate));
                if (_p7 == IntPtr.Zero)
                {
                    _d7 = d; _p7 = p;
                }
            }
            return(d(self, that));
        }
コード例 #21
0
ファイル: cef_value_t.g.cs プロジェクト: fosstheory/PongGlobe
        public static int is_same(cef_value_t *self, cef_value_t *that)
        {
            is_same_delegate d;
            var p = self->_is_same;

            if (p == _p6)
            {
                d = _d6;
            }
            else
            {
                d = (is_same_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_same_delegate));
                if (_p6 == IntPtr.Zero)
                {
                    _d6 = d; _p6 = p;
                }
            }
            return(d(self, that));
        }
コード例 #22
0
ファイル: cef_value_t.g.cs プロジェクト: fosstheory/PongGlobe
        public static int is_read_only(cef_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));
        }
コード例 #23
0
ファイル: cef_value_t.g.cs プロジェクト: fosstheory/PongGlobe
        public static int set_double(cef_value_t *self, double value)
        {
            set_double_delegate d;
            var p = self->_set_double;

            if (p == _p14)
            {
                d = _d14;
            }
            else
            {
                d = (set_double_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_double_delegate));
                if (_p14 == IntPtr.Zero)
                {
                    _d14 = d; _p14 = p;
                }
            }
            return(d(self, value));
        }
コード例 #24
0
ファイル: cef_value_t.g.cs プロジェクト: fosstheory/PongGlobe
        public static int release(cef_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));
        }
コード例 #25
0
ファイル: cef_value_t.g.cs プロジェクト: fosstheory/PongGlobe
        public static int set_string(cef_value_t *self, cef_string_t *value)
        {
            set_string_delegate d;
            var p = self->_set_string;

            if (p == _p15)
            {
                d = _d15;
            }
            else
            {
                d = (set_string_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_string_delegate));
                if (_p15 == IntPtr.Zero)
                {
                    _d15 = d; _p15 = p;
                }
            }
            return(d(self, value));
        }
コード例 #26
0
ファイル: cef_value_t.g.cs プロジェクト: fosstheory/PongGlobe
        public static int has_one_ref(cef_value_t *self)
        {
            has_one_ref_delegate d;
            var p = self->_base._has_one_ref;

            if (p == _p2)
            {
                d = _d2;
            }
            else
            {
                d = (has_one_ref_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_one_ref_delegate));
                if (_p2 == IntPtr.Zero)
                {
                    _d2 = d; _p2 = p;
                }
            }
            return(d(self));
        }
コード例 #27
0
ファイル: cef_value_t.g.cs プロジェクト: fosstheory/PongGlobe
        public static int set_list(cef_value_t *self, cef_list_value_t *value)
        {
            set_list_delegate d;
            var p = self->_set_list;

            if (p == _p18)
            {
                d = _d18;
            }
            else
            {
                d = (set_list_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_list_delegate));
                if (_p18 == IntPtr.Zero)
                {
                    _d18 = d; _p18 = p;
                }
            }
            return(d(self, value));
        }
コード例 #28
0
ファイル: cef_value_t.g.cs プロジェクト: fosstheory/PongGlobe
        public static int get_int(cef_value_t *self)
        {
            get_int_delegate d;
            var p = self->_get_int;

            if (p == _pb)
            {
                d = _db;
            }
            else
            {
                d = (get_int_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_int_delegate));
                if (_pb == IntPtr.Zero)
                {
                    _db = d; _pb = p;
                }
            }
            return(d(self));
        }
コード例 #29
0
ファイル: cef_value_t.g.cs プロジェクト: fosstheory/PongGlobe
        public static CefValueType get_type(cef_value_t *self)
        {
            get_type_delegate d;
            var p = self->_get_type;

            if (p == _p9)
            {
                d = _d9;
            }
            else
            {
                d = (get_type_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_type_delegate));
                if (_p9 == IntPtr.Zero)
                {
                    _d9 = d; _p9 = p;
                }
            }
            return(d(self));
        }
コード例 #30
0
ファイル: cef_value_t.g.cs プロジェクト: fosstheory/PongGlobe
        public static int get_bool(cef_value_t *self)
        {
            get_bool_delegate d;
            var p = self->_get_bool;

            if (p == _pa)
            {
                d = _da;
            }
            else
            {
                d = (get_bool_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_bool_delegate));
                if (_pa == IntPtr.Zero)
                {
                    _da = d; _pa = p;
                }
            }
            return(d(self));
        }