// This file was generated by the Gtk# code generator. // Any changes made will be lost if regenerated. namespace GLib { using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using static GLib.AbiStructExtension; #region Autogenerated code public partial class SimpleIOStream : GLib.IOStream { public SimpleIOStream (IntPtr raw) : base(raw) {} [UnmanagedFunctionPointer (CallingConvention.Cdecl)] delegate IntPtr d_g_simple_io_stream_new(IntPtr input_stream, IntPtr output_stream); static d_g_simple_io_stream_new g_simple_io_stream_new = FuncLoader.LoadFunction(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_simple_io_stream_new")); public SimpleIOStream (GLib.InputStream input_stream, GLib.OutputStream output_stream) : base (IntPtr.Zero) { if (GetType () != typeof (SimpleIOStream)) { var vals = new List (); var names = new List (); if (input_stream != null) { names.Add ("input_stream"); vals.Add (new GLib.Value (input_stream)); } if (output_stream != null) { names.Add ("output_stream"); vals.Add (new GLib.Value (output_stream)); } CreateNativeObject (names.ToArray (), vals.ToArray ()); return; } Raw = g_simple_io_stream_new(input_stream == null ? IntPtr.Zero : input_stream.Handle, output_stream == null ? IntPtr.Zero : output_stream.Handle); } [GLib.Property ("input-stream")] public new GLib.InputStream InputStream { get { GLib.Value val = GetProperty ("input-stream"); GLib.InputStream ret = (GLib.InputStream) val; val.Dispose (); return ret; } } [GLib.Property ("output-stream")] public new GLib.OutputStream OutputStream { get { GLib.Value val = GetProperty ("output-stream"); GLib.OutputStream ret = (GLib.OutputStream) val; val.Dispose (); return ret; } } // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _class_abi = null; static public unsafe new GLib.AbiStruct class_abi { get { if (_class_abi == null) _class_abi = new GLib.AbiStruct (GLib.IOStream.class_abi.Fields); return _class_abi; } } // End of the ABI representation. [UnmanagedFunctionPointer (CallingConvention.Cdecl)] delegate IntPtr d_g_simple_io_stream_get_type(); static d_g_simple_io_stream_get_type g_simple_io_stream_get_type = FuncLoader.LoadFunction(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gio), "g_simple_io_stream_get_type")); public static new GLib.GType GType { get { IntPtr raw_ret = g_simple_io_stream_get_type(); GLib.GType ret = new GLib.GType(raw_ret); return ret; } } // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; static public unsafe new GLib.AbiStruct abi_info { get { if (_abi_info == null) _abi_info = new GLib.AbiStruct (GLib.IOStream.abi_info.Fields); return _abi_info; } } // End of the ABI representation. #endregion } }