コード例 #1
0
ファイル: Cocoa.cs プロジェクト: Bert1974/BB74.Controls.Xwt
        public static void Initialize()
        {
            if (AppKitLibrary != IntPtr.Zero)
            {
                return;
            }

            AppKitLibrary     = NS.LoadLibrary("/System/Library/Frameworks/AppKit.framework/AppKit");
            FoundationLibrary = NS.LoadLibrary("/System/Library/Frameworks/Foundation.framework/Foundation");
        }
コード例 #2
0
ファイル: Cocoa.cs プロジェクト: Bert1974/BB74.Controls.Xwt
        public static IntPtr GetStringConstant(IntPtr handle, string symbol)
        {
            var indirect = NS.GetSymbol(handle, symbol);

            if (indirect == IntPtr.Zero)
            {
                return(IntPtr.Zero);
            }

            var actual = Marshal.ReadIntPtr(indirect);

            if (actual == IntPtr.Zero)
            {
                return(IntPtr.Zero);
            }

            return(actual);
        }
コード例 #3
0
ファイル: AglContext.cs プロジェクト: zanzo420/opentk
 public IntPtr GetAddress(IntPtr function)
 {
     return(NS.GetAddress(function));
 }
コード例 #4
0
ファイル: AglContext.cs プロジェクト: zanzo420/opentk
 public IntPtr GetAddress(string function)
 {
     return(NS.GetAddress(function));
 }