Exemplo n.º 1
0
 static void OverrideToggleCursorRow(GLib.GType gtype, ToggleCursorRowNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("toggle_cursor_row"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
Exemplo n.º 2
0
        private void InternalToggleCursorRow()
        {
            ToggleCursorRowNativeDelegate unmanaged = class_abi.BaseOverride <ToggleCursorRowNativeDelegate>(this.LookupGType(), "toggle_cursor_row");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle);
        }
Exemplo n.º 3
0
        private void InternalToggleCursorRow()
        {
            ToggleCursorRowNativeDelegate unmanaged = null;

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

            unmanaged(this.Handle);
        }
Exemplo n.º 4
0
		static void OverrideToggleCursorRow (GLib.GType gtype, ToggleCursorRowNativeDelegate callback)
		{
			GtkTreeViewClass class_iface = GetClassStruct (gtype, false);
			class_iface.ToggleCursorRow = callback;
			OverrideClassStruct (gtype, class_iface);
		}