コード例 #1
0
ファイル: CfxStructure.cs プロジェクト: xmcy0011/NanUI
 // Case 1) User created structure:
 // allocate native on creation, free native on dispose.
 internal CfxStructure(CfxApi.cfx_ctor_delegate cfx_ctor, CfxApi.cfx_dtor_delegate cfx_dtor)
 {
     this.m_cfx_dtor = cfx_dtor;
     //this might happen if the application tries to instanciate a platform specific struct
     //on the wrong platform.
     if(cfx_ctor == null)
         return;
     CreateNative(cfx_ctor);
 }
コード例 #2
0
ファイル: CfxStructure.cs プロジェクト: SmartFire/ChromiumFX
 // Case 1) User created structure:
 // allocate native on creation, free native on dispose.
 internal CfxStructure(CfxApi.cfx_ctor_delegate cfx_ctor, CfxApi.cfx_dtor_delegate cfx_dtor)
 {
     this.m_cfx_dtor = cfx_dtor;
     //this might happen if the application tries to instanciate a platform specific struct
     //on the wrong platform.
     if (cfx_ctor == null)
     {
         return;
     }
     CreateNative(cfx_ctor);
 }
コード例 #3
0
        // Case 1) User created structure:
        // allocate native on creation, free native on dispose.
        internal CfxStructure(CfxApi.cfx_ctor_delegate cfx_ctor, CfxApi.cfx_dtor_delegate cfx_dtor)
        {
            this.m_cfx_dtor = cfx_dtor;
            //this might happen if the application tries to instanciate a platform specific struct
            //on the wrong platform.
            if (cfx_ctor == null)
            {
                return;
            }
            var nativePtr = cfx_ctor();

            if (nativePtr == IntPtr.Zero)
            {
                throw new OutOfMemoryException();
            }
            SetNative(nativePtr);
        }
コード例 #4
0
 internal CfxWindowInfoLinux(IntPtr nativePtr, CfxApi.cfx_dtor_delegate cfx_dtor) : base(nativePtr, cfx_dtor)
 {
 }
コード例 #5
0
 internal CfxBrowserSettings(IntPtr nativePtr, CfxApi.cfx_dtor_delegate cfx_dtor) : base(nativePtr, cfx_dtor)
 {
 }
コード例 #6
0
 internal CfxCursorInfo(IntPtr nativePtr, CfxApi.cfx_dtor_delegate cfx_dtor) : base(nativePtr, cfx_dtor)
 {
 }
コード例 #7
0
ファイル: CfxCookie.cs プロジェクト: 386845154a/NanUI-1
 internal CfxCookie(IntPtr nativePtr, CfxApi.cfx_dtor_delegate cfx_dtor) : base(nativePtr, cfx_dtor)
 {
 }
コード例 #8
0
ファイル: CfxKeyEvent.cs プロジェクト: 386845154a/NanUI-1
 internal CfxKeyEvent(IntPtr nativePtr, CfxApi.cfx_dtor_delegate cfx_dtor) : base(nativePtr, cfx_dtor)
 {
 }
コード例 #9
0
 internal CfxDraggableRegion(IntPtr nativePtr, CfxApi.cfx_dtor_delegate cfx_dtor) : base(nativePtr, cfx_dtor)
 {
 }
コード例 #10
0
 // Case 3) struct passed in from framework as a return value
 // native layer makes a copy -> free native pointer on dispose
 internal CfxStructure(IntPtr nativePtr, CfxApi.cfx_dtor_delegate cfx_dtor)
 {
     this.m_cfx_dtor = cfx_dtor;
     SetNative(nativePtr);
 }
コード例 #11
0
 internal CfxPopupFeatures(IntPtr nativePtr, CfxApi.cfx_dtor_delegate cfx_dtor) : base(nativePtr, cfx_dtor)
 {
 }
コード例 #12
0
 internal CfxInsets(IntPtr nativePtr, CfxApi.cfx_dtor_delegate cfx_dtor) : base(nativePtr, cfx_dtor)
 {
 }
コード例 #13
0
ファイル: CfxGeoposition.cs プロジェクト: 386845154a/NanUI-1
 internal CfxGeoposition(IntPtr nativePtr, CfxApi.cfx_dtor_delegate cfx_dtor) : base(nativePtr, cfx_dtor)
 {
 }
コード例 #14
0
ファイル: CfxStructure.cs プロジェクト: xmcy0011/NanUI
 // Case 3) struct passed in from framework as a return value
 // native layer makes a copy -> free native pointer on dispose
 internal CfxStructure(IntPtr nativePtr, CfxApi.cfx_dtor_delegate cfx_dtor)
 {
     this.m_cfx_dtor = cfx_dtor;
     SetNative(nativePtr);
 }
コード例 #15
0
 internal CfxPageRange(IntPtr nativePtr, CfxApi.cfx_dtor_delegate cfx_dtor) : base(nativePtr, cfx_dtor)
 {
 }