/// <summary> /// XFlushを呼ぶ /// </summary> public static void Flush(TnkAppContext context, IWidget w) { NativeMethods.TNK_IMP_Flush(ref context, w.NativeHandle.Widget); }
public static extern int TNK_XtInitialize( out TnkAppContext context, [MarshalAs(UnmanagedType.LPStr)]string title, string[] argv, int argc, string[] res, int resc);
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; }
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); }
/// <summary> /// プライベートイベント発行 /// </summary> public static void TriggerPrivateEvent(TnkAppContext context, IWidget w) { NativeMethods.TNK_IMP_TriggerPrivateEvent(ref context, w.NativeHandle.Widget); }