コード例 #1
0
        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);
        }
コード例 #2
0
 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);
 }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
 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;
     }
 }
コード例 #6
0
        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);
        }
コード例 #7
0
 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);
 }
コード例 #8
0
        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);
        }
コード例 #9
0
 internal AccelMapForeachInvoker(AccelMapForeachNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
コード例 #10
0
 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;
 }
コード例 #12
0
		internal StylePropertyParserInvoker (StylePropertyParserNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #13
0
		internal EventListenerInitInvoker (EventListenerInitNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #14
0
 internal FormatterLoadFromURIMethodInvoker(FormatterLoadFromURIMethodNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
コード例 #15
0
 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);
     }
 }
コード例 #16
0
		internal AsyncReadyCallbackInvoker (AsyncReadyCallbackNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #17
0
		internal RecentSortFuncInvoker (RecentSortFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #18
0
		internal BuilderConnectFuncInvoker (BuilderConnectFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #19
0
		internal CairoShapeRendererFuncInvoker (CairoShapeRendererFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #20
0
		internal PropertyChangeHandlerInvoker (PropertyChangeHandlerNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #21
0
		internal MenuDetachFuncInvoker (MenuDetachFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #22
0
		internal DBusSignalCallbackInvoker (DBusSignalCallbackNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #23
0
 internal EventListenerInvoker(EventListenerNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
コード例 #24
0
		internal TextCharPredicateInvoker (TextCharPredicateNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #25
0
		internal SettingsGetMappingInvoker (SettingsGetMappingNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #26
0
		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;
 }
コード例 #28
0
		internal ObjListToStringFuncInvoker (ObjListToStringFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #29
0
		internal CalendarDetailFuncInvoker (CalendarDetailFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #30
0
 internal TypeFindGetLengthFunctionInvoker(TypeFindGetLengthFunctionNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
       __data = data;
       __notify = notify;
 }
コード例 #31
0
		internal CellLayoutDataFuncInvoker (CellLayoutDataFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #32
0
		internal AttachmentSaveFuncInvoker (AttachmentSaveFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #33
0
 internal EntryCompletionMatchFuncInvoker(EntryCompletionMatchFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
コード例 #34
0
		internal TextBufferSerializeFuncInvoker (TextBufferSerializeFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #35
0
		internal PollableSourceFuncInvoker (PollableSourceFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #36
0
		internal TreeSelectionFuncInvoker (TreeSelectionFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #37
0
		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;
		}
コード例 #39
0
 internal StructureForeachFuncInvoker(StructureForeachFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
コード例 #40
0
 internal MenuTrackerInsertFuncInvoker(MenuTrackerInsertFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
コード例 #41
0
 internal CollectPadsQueryFunctionInvoker(CollectPadsQueryFunctionNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
コード例 #42
0
		internal BusNameAppearedCallbackInvoker (BusNameAppearedCallbackNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #43
0
 internal TreeModelFilterVisibleFuncInvoker(TreeModelFilterVisibleFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
コード例 #44
0
 static extern void gst_mini_object_set_qdata(IntPtr raw, uint quark, IntPtr data, GLib.DestroyNotify destroy);
コード例 #45
0
 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;
 }
コード例 #47
0
 internal AccelGroupFindFuncInvoker(AccelGroupFindFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
コード例 #48
0
 static extern void gtk_font_chooser_set_filter_func(IntPtr raw, GtkSharp.FontFilterFuncNative filter, IntPtr user_data, GLib.DestroyNotify destroy);
コード例 #49
0
 internal CellCallbackInvoker(CellCallbackNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
コード例 #50
0
		internal DBusSubtreeEnumerateFuncInvoker (DBusSubtreeEnumerateFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #51
0
 static extern void gtk_cell_layout_set_cell_data_func(IntPtr raw, IntPtr cell, GtkSharp.CellLayoutDataFuncNative func, IntPtr func_data, GLib.DestroyNotify destroy);
コード例 #52
0
		internal PrintSettingsFuncInvoker (PrintSettingsFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #53
0
		internal CellAllocCallbackInvoker (CellAllocCallbackNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #54
0
		internal IOSchedulerJobFuncInvoker (IOSchedulerJobFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #55
0
 public void SetQdata(uint quark, IntPtr data, GLib.DestroyNotify destroy)
 {
     gst_mini_object_set_qdata(Handle, quark, data, destroy);
 }
コード例 #56
0
		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;
 }
コード例 #58
0
		internal PixbufDestroyNotifyInvoker (PixbufDestroyNotifyNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}
コード例 #59
0
 internal TaskThreadFuncInvoker(TaskThreadFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
 {
     this.native_cb = native_cb;
     __data         = data;
     __notify       = notify;
 }
コード例 #60
0
		internal KeySnoopFuncInvoker (KeySnoopFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
		{
			this.native_cb = native_cb;
			__data = data;
			__notify = notify;
		}