public byte SetValueFull(long length, GLib.DestroyNotify destroy) { byte value; g_tls_password_set_value_full(Handle, out value, new IntPtr(length), destroy); return(value); }
public MemoryInputStream(IntPtr data, long len, GLib.DestroyNotify destroy) : base(IntPtr.Zero) { if (GetType() != typeof(MemoryInputStream)) { throw new InvalidOperationException("Can't override this constructor."); } Raw = g_memory_input_stream_new_from_data(data, new IntPtr(len), destroy); }
public void SetUserData(IntPtr user_data, GLib.DestroyNotify notify) { 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); gst_video_codec_frame_set_user_data(this_as_native, user_data, notify); ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); }
public MemoryOutputStream(IntPtr data, ulong len, ReallocFunc realloc_fn, GLib.DestroyNotify destroy) : base(IntPtr.Zero) { if (GetType() != typeof(MemoryOutputStream)) { throw new InvalidOperationException("Can't override this constructor."); } var realloc_fn_wrapper = new GLibSharp.ReallocFuncWrapper(realloc_fn); Raw = g_memory_output_stream_new(data, new UIntPtr(len), realloc_fn_wrapper.NativeDelegate, destroy); }
static void SetValue_cb(IntPtr inst, out byte value, IntPtr length, GLib.DestroyNotify destroy) { try { TlsPassword __obj = GLib.Object.GetObject(inst, false) as TlsPassword; __obj.OnSetValue(out value, (long)length, destroy); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
private void InternalSetValue(out byte value, long length, GLib.DestroyNotify destroy) { SetValueNativeDelegate unmanaged = class_abi.BaseOverride <SetValueNativeDelegate>(this.LookupGType(), "set_value"); if (unmanaged == null) { throw new InvalidOperationException("No base method to invoke"); } unmanaged(this.Handle, out value, new IntPtr(length), destroy); }
public Task(Gst.TaskFunction func, IntPtr user_data, GLib.DestroyNotify notify) : base(IntPtr.Zero) { if (GetType() != typeof(Task)) { var vals = new List <GLib.Value> (); var names = new List <string> (); CreateNativeObject(names.ToArray(), vals.ToArray()); return; } GstSharp.TaskFunctionWrapper func_wrapper = new GstSharp.TaskFunctionWrapper(func); Raw = gst_task_new(func_wrapper.NativeDelegate, user_data, notify); }
private void InternalSetValue(out byte value, long length, GLib.DestroyNotify destroy) { SetValueNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("set_value")); unmanaged = (SetValueNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SetValueNativeDelegate)); } if (unmanaged == null) { throw new InvalidOperationException("No base method to invoke"); } unmanaged(this.Handle, out value, new IntPtr(length), destroy); }
internal AccelMapForeachInvoker(AccelMapForeachNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal GSourceFuncInvoker(GSourceFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal TriggerActionFunctionInvoker(TriggerActionFunctionNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal StylePropertyParserInvoker (StylePropertyParserNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal EventListenerInitInvoker (EventListenerInitNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal FormatterLoadFromURIMethodInvoker(FormatterLoadFromURIMethodNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
static void SetFilterFunc_cb(IntPtr inst, GtkSharp.FontFilterFuncNative filter, IntPtr user_data, GLib.DestroyNotify destroy) { try { IFontChooserImplementor __obj = GLib.Object.GetObject(inst, false) as IFontChooserImplementor; GtkSharp.FontFilterFuncInvoker filter_invoker = new GtkSharp.FontFilterFuncInvoker(filter, user_data, destroy); __obj.FilterFunc = filter_invoker.Handler; } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
internal AsyncReadyCallbackInvoker (AsyncReadyCallbackNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal RecentSortFuncInvoker (RecentSortFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal BuilderConnectFuncInvoker (BuilderConnectFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal CairoShapeRendererFuncInvoker (CairoShapeRendererFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal PropertyChangeHandlerInvoker (PropertyChangeHandlerNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal MenuDetachFuncInvoker (MenuDetachFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal DBusSignalCallbackInvoker (DBusSignalCallbackNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal EventListenerInvoker(EventListenerNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal TextCharPredicateInvoker (TextCharPredicateNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal SettingsGetMappingInvoker (SettingsGetMappingNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal TreeViewSearchEqualFuncInvoker (TreeViewSearchEqualFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal ClipboardTargetsReceivedFuncInvoker(ClipboardTargetsReceivedFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal ObjListToStringFuncInvoker (ObjListToStringFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal CalendarDetailFuncInvoker (CalendarDetailFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal TypeFindGetLengthFunctionInvoker(TypeFindGetLengthFunctionNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal CellLayoutDataFuncInvoker (CellLayoutDataFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal AttachmentSaveFuncInvoker (AttachmentSaveFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal EntryCompletionMatchFuncInvoker(EntryCompletionMatchFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal TextBufferSerializeFuncInvoker (TextBufferSerializeFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal PollableSourceFuncInvoker (PollableSourceFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal TreeSelectionFuncInvoker (TreeSelectionFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal TreeModelForeachFuncInvoker (TreeModelForeachFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal ColorSelectionChangePaletteWithScreenFuncInvoker (ColorSelectionChangePaletteWithScreenFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal StructureForeachFuncInvoker(StructureForeachFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal MenuTrackerInsertFuncInvoker(MenuTrackerInsertFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal CollectPadsQueryFunctionInvoker(CollectPadsQueryFunctionNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal BusNameAppearedCallbackInvoker (BusNameAppearedCallbackNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal TreeModelFilterVisibleFuncInvoker(TreeModelFilterVisibleFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
static extern void gst_mini_object_set_qdata(IntPtr raw, uint quark, IntPtr data, GLib.DestroyNotify destroy);
public void PopupForDevice(Gdk.Device device, Gtk.Widget parent_menu_shell, Gtk.Widget parent_menu_item, Gtk.MenuPositionFunc func, GLib.DestroyNotify destroy, uint button, uint activate_time) { GtkSharp.MenuPositionFuncWrapper func_wrapper = new GtkSharp.MenuPositionFuncWrapper(func); func_wrapper.PersistUntilCalled(); gtk_menu_popup_for_device(Handle, device == null ? IntPtr.Zero : device.Handle, parent_menu_shell == null ? IntPtr.Zero : parent_menu_shell.Handle, parent_menu_item == null ? IntPtr.Zero : parent_menu_item.Handle, func_wrapper.NativeDelegate, IntPtr.Zero, destroy, button, activate_time); }
internal FileProgressCallbackInvoker(FileProgressCallbackNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal AccelGroupFindFuncInvoker(AccelGroupFindFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
static extern void gtk_font_chooser_set_filter_func(IntPtr raw, GtkSharp.FontFilterFuncNative filter, IntPtr user_data, GLib.DestroyNotify destroy);
internal CellCallbackInvoker(CellCallbackNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal DBusSubtreeEnumerateFuncInvoker (DBusSubtreeEnumerateFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
static extern void gtk_cell_layout_set_cell_data_func(IntPtr raw, IntPtr cell, GtkSharp.CellLayoutDataFuncNative func, IntPtr func_data, GLib.DestroyNotify destroy);
internal PrintSettingsFuncInvoker (PrintSettingsFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal CellAllocCallbackInvoker (CellAllocCallbackNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal IOSchedulerJobFuncInvoker (IOSchedulerJobFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
public void SetQdata(uint quark, IntPtr data, GLib.DestroyNotify destroy) { gst_mini_object_set_qdata(Handle, quark, data, destroy); }
internal FileFilterFuncInvoker (FileFilterFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal MemoryCopyFunctionInvoker(MemoryCopyFunctionNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal PixbufDestroyNotifyInvoker (PixbufDestroyNotifyNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal TaskThreadFuncInvoker(TaskThreadFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }
internal KeySnoopFuncInvoker (KeySnoopFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify) { this.native_cb = native_cb; __data = data; __notify = notify; }