コード例 #1
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern bool g_type_check_value_holds(ref Value val, IntPtr gtype);
コード例 #2
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern void g_value_set_string(ref Value val, IntPtr data);
コード例 #3
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern void g_value_set_uint(ref Value val, uint data);
コード例 #4
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern void g_value_set_float(ref Value val, float data);
コード例 #5
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern void g_value_set_param(ref Value val, IntPtr data);
コード例 #6
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern void g_value_set_boolean(ref Value val, bool data);
コード例 #7
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern void g_value_set_double(ref Value val, double data);
コード例 #8
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern uint g_value_get_flags(ref Value val);
コード例 #9
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern float g_value_get_float(ref Value val);
コード例 #10
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern double g_value_get_double(ref Value val);
コード例 #11
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern int g_value_get_enum(ref Value val);
コード例 #12
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern sbyte g_value_get_char(ref Value val);
コード例 #13
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern IntPtr g_value_get_boxed(ref Value val);
コード例 #14
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern bool g_value_get_boolean(ref Value val);
コード例 #15
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern uint g_value_get_uint(ref Value val);
コード例 #16
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern int g_value_get_int(ref Value val);
コード例 #17
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern ulong g_value_get_uint64(ref Value val);
コード例 #18
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern long g_value_get_int64(ref Value val);
コード例 #19
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern void g_value_set_boxed(ref Value val, IntPtr data);
コード例 #20
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern IntPtr g_value_get_object(ref Value val);
コード例 #21
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern void g_value_set_enum(ref Value val, int data);
コード例 #22
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern IntPtr g_value_get_param(ref Value val);
コード例 #23
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern void g_value_set_object(ref Value val, IntPtr data);
コード例 #24
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern IntPtr g_value_get_pointer(ref Value val);
コード例 #25
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern void g_value_set_pointer(ref Value val, IntPtr data);
コード例 #26
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern IntPtr g_value_get_string(ref Value val);
コード例 #27
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern void g_value_set_uchar(ref Value val, byte data);
コード例 #28
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern byte g_value_get_uchar(ref Value val);
コード例 #29
0
ファイル: Value.cs プロジェクト: sciyoshi/netgir
 static extern void g_value_set_uint64(ref Value val, ulong data);
コード例 #30
0
ファイル: Signal.cs プロジェクト: sciyoshi/netgir
 bool NativeInvoker(InvocationHint ihint, object[] pvals)
 {
     int val_sz = Marshal.SizeOf (typeof (Value));
     IntPtr buf = Marshal.AllocHGlobal (pvals.Length * val_sz);
     Value[] vals = new Value [pvals.Length];
     for (int i = 0; i < pvals.Length; i++) {
         vals [i] = new Value (pvals [i]);
         IntPtr p = new IntPtr ((long) buf + i * val_sz);
         Marshal.StructureToPtr (vals [i], p, false);
     }
     bool result = cb (ref ihint, (uint) pvals.Length, buf, user_data);
     foreach (Value v in vals)
         v.Dispose ();
     Marshal.FreeHGlobal (buf);
     return result;
 }