Changeset 1423 for libcaca


Ignore:
Timestamp:
Nov 18, 2006, 12:34:40 PM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Added frames to .NET bindings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/DotNet/Cucul.cs

    r1422 r1423  
    107107      public static extern Int32 cucul_attr_to_ansi_bg(Int64 a);
    108108
     109    [DllImport("libCucul.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
     110       public static extern Int32 cucul_get_frame_count(IntPtr qq);
     111    [DllImport("libCucul.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
     112       public static extern Int32 cucul_set_frame(IntPtr qq, Int32 f);
     113    [DllImport("libCucul.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
     114       public static extern string cucul_get_frame_name(IntPtr qq);
     115    [DllImport("libCucul.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
     116       public static extern Int32 cucul_set_frame_name(IntPtr qq, string n);
     117    [DllImport("libCucul.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
     118       public static extern Int32 cucul_create_frame(IntPtr qq, Int32 f);
     119    [DllImport("libCucul.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
     120       public static extern Int32 cucul_free_frame(IntPtr qq, Int32 f);
    109121
    110122
     
    282294
    283295
     296        public Int32 getFrameCount()
     297            {
     298            return cucul_get_frame_count(qq);
     299            }
     300        public Int32 setFrame(Int32 f)
     301            {
     302            return cucul_set_frame(qq, f);
     303            }
     304        public string getFrameName()
     305            {
     306            return cucul_get_frame_name(qq);
     307            }
     308        public Int32 setFrameName(string n)
     309            {
     310            return cucul_set_frame_name(qq, n);
     311            }
     312        public Int32 createFrame(Int32 f)
     313            {
     314            return cucul_create_frame(qq, f);
     315            }
     316        public Int32 freeFrame(Int32 f)
     317            {
     318            return cucul_free_frame(qq, f);
     319            }
     320
    284321
    285322
Note: See TracChangeset for help on using the changeset viewer.