Exemplo n.º 1
0
 /// <summary>
 /// XFlushを呼ぶ
 /// </summary>
 public static void Flush(TnkAppContext context, IWidget w)
 {
     NativeMethods.TNK_IMP_Flush(ref context, w.NativeHandle.Widget);
 }
Exemplo n.º 2
0
            public static extern int TNK_XtInitialize(
			     out TnkAppContext context,
                 [MarshalAs(UnmanagedType.LPStr)]string title,  string[] argv, int argc, string[] res, int resc);
Exemplo n.º 3
0
        public static IntPtr XtAppCreateShell(ref TnkAppContext context,string title, ref string[] argv, Native.Xt.XtArg[] res)
        {
            if (null == res || 0 == res.Length) {
                return NativeMethods.TNK_XtAppCreateShell(ref context, title, ref argv, argv.Length, null, 0);
            }

            Native.Xt.NativeXtArg[] au = new Native.Xt.NativeXtArg[res.Length];
            int argc = ExtremeSports.TnkConvertResourceEx(res, au, true);
            System.Diagnostics.Debug.WriteLine($"XM_CVT {au.Length} -> {argc}");

            var result = NativeMethods.TNK_XtAppCreateShell(ref context, title, ref argv, argv.Length, au, argc);

            ExtremeSports.TnkFreeDeepCopyArg(au);

            return result;
        }
Exemplo n.º 4
0
 public static int XtInitialize(out TnkAppContext context,string title, string[] argv, string[] res)
 {
     return NativeMethods.TNK_XtInitialize(out context, title, argv, argv.Length, res, res.Length);
 }
Exemplo n.º 5
0
 /// <summary>
 /// プライベートイベント発行
 /// </summary>
 public static void TriggerPrivateEvent(TnkAppContext context, IWidget w)
 {
     NativeMethods.TNK_IMP_TriggerPrivateEvent(ref context, w.NativeHandle.Widget);
 }