Esempio n. 1
0
        public static string getDimensions(int mgView, float[] vars)
        {
            Floats v     = new Floats(vars.Length);
            Chars  types = new Chars(vars.Length);
            int    n     = DemoCmdsGate.getDimensions(mgView, v, types);

            if (n > 0)
            {
                StringBuilder buf = new StringBuilder(n);
                for (int i = 0; i < n; i++)
                {
                    buf.Append(v.get(i));
                    vars[i] = v.get(i);
                }
                return(buf.ToString());
            }
            return("");
        }
Esempio n. 2
0
 // mgView: WPFViewHelper.cmdViewHandle()
 public static int registerCmds(int mgView)
 {
     return(DemoCmdsGate.registerCmds(mgView));
 }
Esempio n. 3
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(DemoCmdsGate obj)
 {
     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }
Esempio n. 4
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(DemoCmdsGate obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }