context: // This file was generated by the Gtk# code generator.
  // Any changes made will be lost if regenerated.
  
  namespace Gtk {
  
  	using System;
  	using System.Collections;
  	using System.Collections.Generic;
  	using System.Runtime.InteropServices;
  
  #region Autogenerated code
  	public partial class Label : Gtk.Misc {
  
  		public Label (IntPtr raw) : base(raw) {}
  
  		[DllImport("libgtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
  		static extern IntPtr gtk_label_new(IntPtr str);
  
  		public static Label New(string str)
  		{
  			IntPtr native_str = GLib.Marshaller.StringToPtrGStrdup (str);
  			Label result = new Label (gtk_label_new(native_str));
  			GLib.Marshaller.Free (native_str);
  			return result;
  		}
  
  		[DllImport("libgtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
  		static extern IntPtr gtk_label_new_with_mnemonic(IntPtr str);
  
  		public Label (string str) : base (IntPtr.Zero)
  		{
  			if (GetType () != typeof (Label)) {
  				var vals = new List<GLib.Value> ();
  				var names = new List<string> ();
  				names.Add ("label");
  				vals.Add (new GLib.Value (str));
  				CreateNativeObject (names.ToArray (), vals.ToArray ());
  				return;
  			}
  			IntPtr native_str = GLib.Marshaller.StringToPtrGStrdup (str);
  			Raw = gtk_label_new_with_mnemonic(native_str);
  			GLib.Marshaller.Free (native_str);
  		}
  
  		[DllImport("libgtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
  		static extern IntPtr gtk_label_get_label(IntPtr raw);
  
  		[DllImport("libgtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
  		static extern void gtk_label_set_label(IntPtr raw, IntPtr str);
  
  		[GLib.Property ("label")]
  		public string LabelProp {
  			get  {
  				IntPtr raw_ret = gtk_label_get_label(Handle);
  				string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
  				return ret;
  			}
  			set  {
  				IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
  				gtk_label_set_label(Handle, native_value);
  				GLib.Marshaller.Free (native_value);
  			}
  		}
  
  		[DllImport("libgtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
  		static extern IntPtr gtk_label_get_attributes(IntPtr raw);
  
  		[DllImport("libgtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
  		static extern void gtk_label_set_attributes(IntPtr raw, IntPtr attrs);
  
  		[GLib.Property ("attributes")]
  		public Pango.AttrList Attributes {
  			get  {
  				IntPtr raw_ret = gtk_label_get_attributes(Handle);
  				Pango.AttrList ret = raw_ret == IntPtr.Zero ? null : (Pango.AttrList) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.AttrList), false);
  				return ret;
  			}
  			set  {
  				gtk_label_set_attributes(Handle, value == null ? IntPtr.Zero : value.Handle);
  			}
  		}
  
  		[DllImport("libgtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
  		static extern bool gtk_label_get_use_markup(IntPtr raw);
  
  		[DllImport("libgtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
  		static extern void gtk_label_set_use_markup(IntPtr raw, bool setting);
  
  		[GLib.Property ("use-markup")]
  		public bool UseMarkup {
  			get  {
  				bool raw_ret = gtk_label_get_use_markup(Handle);
  				bool ret = raw_ret;
  				return ret;
  			}
  			set  {
  				gtk_label_set_use_markup(Handle, value);
  			}
  		}
  
  		[DllImport("libgtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
  		static extern bool gtk_label_get_use_underline(IntPtr raw);
  
  		[DllImport("libgtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
  		static extern void gtk_label_set_use_underline(IntPtr raw, bool setting);
  
  		[GLib.Property ("use-underline")]
  		public bool UseUnderline {
  			get  {
  				bool raw_ret = gtk_label_get_use_underline(Handle);
  				bool ret = raw_ret;
  				return ret;
  			}
  			set  {
  				gtk_label_set_use_underline(Handle, value);
  			}
  		}
  
  		[DllImport("libgtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
  		static extern int gtk_label_get_justify(IntPtr raw);
  
  		[DllImport("libgtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
  		static extern void gtk_label_set_justify(IntPtr raw, int jtype);
  
  		[GLib.Property ("justify")]
  		public Gtk.Justification Justify {
  			get  {
  				int raw_ret = gtk_label_get_justify(Handle);
  				Gtk.Justification ret = (Gtk.Justification) raw_ret;
  				return ret;
  			}
  			set  {
  				gtk_label_set_justify(Handle, (int) value);
  			}
  		}
  
  		[DllImport("libgtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
  		static extern void gtk_label_set_pattern(IntPtr raw, IntPtr pattern);
  
  		[GLib.Property ("pattern")]
  		public string Pattern {
  			set  {
  				IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
  				gtk_label_set_pattern(Handle, native_value);
  				GLib.Marshaller.Free (native_value);
  			}
  		}
  
  		[GLib.Property ("wrap")]
  		public bool Wrap {
  			get {
  				GLib.Value val = GetProperty ("wrap");
  				bool ret = (bool) val;
  				val.Dispose ();
  				return ret;
  			}
  			set {
  				GLib.Value val = new GLib.Value(value);
  				SetProperty("wrap", val);
  				val.Dispose ();
  			}
  		}
  
  		[DllImport("libgtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
  		static extern int gtk_label_get_line_wrap_mode(IntPtr raw);
  
  		[DllImport("libgtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
  		static extern void gtk_label_set_line_wrap_mode(IntPtr raw, int wrap_mode);
  
  		[GLib.Property ("wrap-mode")]
  		public Pango.WrapMode LineWrapMode {
  			get  {
  				int raw_ret = gtk_label_get_line_wrap_mode(Handle);
  				Pango.WrapMode ret = (Pango.WrapMode) raw_ret;
  				return ret;
  			}
  			set  {
  				gtk_label_set_line_wrap_mode(Handle, (int) value);
  			}
  		}
  
  		[DllImport("libgtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
  		static extern bool gtk_label_get_selectable(IntPtr raw);
  
  		[DllImport("libgtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
  		static extern void gtk_label_set_selectable(IntPtr raw, bool setting);
  
  		[GLib.Property ("selectable")]
  		public bool Selectable {
  			get  {
  				bool raw_ret = gtk_label_get_selectable(Handle);
  				bool ret = raw_ret;
  				return ret;
  			}
  			set  {
  				gtk_label_set_selectable(Handle, value);
  			}
  		}
  
  		[DllImport("libgtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
  		static extern uint gtk_label_get_mnemonic_keyval(IntPtr raw);
  
  		[GLib.Property ("mnemonic-keyval")]
  		public uint MnemonicKeyval {
  			get  {
  				uint raw_ret = gtk_label_get_mnemonic_keyval(Handle);
  				uint ret = raw_ret;
  				return ret;
  			}
  		}
  
  		[DllImport("libgtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
  		static extern IntPtr gtk_label_get_mnemonic_widget(IntPtr raw);
  
  		[DllImport("libgtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
  		static extern void gtk_label_set_mnemonic_widget(IntPtr raw, IntPtr widget);
  
  		[GLib.Property ("mnemonic-widget")]
  		public Gtk.Widget MnemonicWidget {
  			get  {
  				IntPtr raw_ret = gtk_label_get_mnemonic_widget(Handle);
  
gt: 				Gtk.Widget ret = GLib.Object.GetObject(raw_ret) as Gtk.Widget;