瀏覽代碼

* Added frames to .NET bindings

tags/v0.99.beta14
Jean-Yves Lamoureux jylam 18 年之前
父節點
當前提交
e96d4ab9ee
共有 1 個文件被更改,包括 37 次插入0 次删除
  1. +37
    -0
      DotNet/Cucul.cs

+ 37
- 0
DotNet/Cucul.cs 查看文件

@@ -106,6 +106,18 @@ namespace libCucul
[DllImport("libCucul.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
public static extern Int32 cucul_attr_to_ansi_bg(Int64 a);

[DllImport("libCucul.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
public static extern Int32 cucul_get_frame_count(IntPtr qq);
[DllImport("libCucul.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
public static extern Int32 cucul_set_frame(IntPtr qq, Int32 f);
[DllImport("libCucul.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
public static extern string cucul_get_frame_name(IntPtr qq);
[DllImport("libCucul.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
public static extern Int32 cucul_set_frame_name(IntPtr qq, string n);
[DllImport("libCucul.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
public static extern Int32 cucul_create_frame(IntPtr qq, Int32 f);
[DllImport("libCucul.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
public static extern Int32 cucul_free_frame(IntPtr qq, Int32 f);


/* Constants */
@@ -281,6 +293,31 @@ namespace libCucul



public Int32 getFrameCount()
{
return cucul_get_frame_count(qq);
}
public Int32 setFrame(Int32 f)
{
return cucul_set_frame(qq, f);
}
public string getFrameName()
{
return cucul_get_frame_name(qq);
}
public Int32 setFrameName(string n)
{
return cucul_set_frame_name(qq, n);
}
public Int32 createFrame(Int32 f)
{
return cucul_create_frame(qq, f);
}
public Int32 freeFrame(Int32 f)
{
return cucul_free_frame(qq, f);
}






Loading…
取消
儲存