Esempio n. 1
0
        private void InternalGetRangeBorder(Gtk.Border border_)
        {
            GetRangeBorderNativeDelegate unmanaged = null;

            unsafe {
                IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("get_range_border"));
                unmanaged = (GetRangeBorderNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetRangeBorderNativeDelegate));
            }
            if (unmanaged == null)
            {
                return;
            }

            IntPtr native_border_ = GLib.Marshaller.StructureToPtrAlloc(border_);

            unmanaged(this.Handle, native_border_);
            Marshal.FreeHGlobal(native_border_);
        }
Esempio n. 2
0
		static void OverrideGetRangeBorder (GLib.GType gtype, GetRangeBorderNativeDelegate callback)
		{
			GtkRangeClass class_iface = GetClassStruct (gtype, false);
			class_iface.GetRangeBorder = callback;
			OverrideClassStruct (gtype, class_iface);
		}