예제 #1
0
 public static void Free(cef_window_info_t_linux *ptr)
 {
     if (ptr != null)
     {
         Marshal.FreeHGlobal((IntPtr)ptr);
     }
 }
예제 #2
0
        public CefWindowInfoLinuxImpl(cef_window_info_t* ptr)
            : base(false)
        {
            if (CefRuntime.Platform != CefRuntimePlatform.Linux)
                throw new InvalidOperationException();

            _self = (cef_window_info_t_linux*)ptr;
        }
예제 #3
0
 public static void Free(cef_window_info_t_linux *ptr)
 {
     if (ptr != null)
     {
         libcef.string_clear(&ptr->window_name);
         Marshal.FreeHGlobal((IntPtr)ptr);
     }
 }
예제 #4
0
        public CefWindowInfoLinuxImpl(cef_window_info_t *ptr)
            : base(false)
        {
            if (CefRuntime.Platform != CefRuntimePlatform.Linux)
            {
                throw new InvalidOperationException();
            }

            _self = (cef_window_info_t_linux *)ptr;
        }
예제 #5
0
 protected internal override void DisposeNativePointer()
 {
     cef_window_info_t_linux.Free(_self);
     _self = null;
 }
예제 #6
0
 public CefWindowInfoLinuxImpl()
     : base(true)
 {
     _self = cef_window_info_t_linux.Alloc();
 }
예제 #7
0
 public CefWindowInfoLinuxImpl()
     : base(true)
 {
     _self = cef_window_info_t_linux.Alloc();
 }
예제 #8
0
 protected internal override void DisposeNativePointer()
 {
     cef_window_info_t_linux.Free(_self);
     _self = null;
 }