public static Pango.Gravity GravityGetForMatrix(Pango.Matrix matrix) { IntPtr native_matrix = GLib.Marshaller.StructureToPtrAlloc(matrix); int raw_ret = pango_gravity_get_for_matrix(native_matrix); Pango.Gravity ret = (Pango.Gravity)raw_ret; Marshal.FreeHGlobal(native_matrix); return(ret); }
public void Concat(Pango.Matrix new_matrix) { IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this)); System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false); IntPtr native_new_matrix = GLib.Marshaller.StructureToPtrAlloc(new_matrix); pango_matrix_concat(this_as_native, native_new_matrix); ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); Marshal.FreeHGlobal(native_new_matrix); }
static void ReadNative(IntPtr native, ref Pango.Matrix target) { target = New(native); }