当前位置: 首页>>代码示例>>C#>>正文


C# GLibSharp类代码示例

本文整理汇总了C#中GLibSharp的典型用法代码示例。如果您正苦于以下问题:C# GLibSharp类的具体用法?C# GLibSharp怎么用?C# GLibSharp使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


GLibSharp类属于命名空间,在下文中一共展示了GLibSharp类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: InitAsyncCallback

		static void InitAsyncCallback (IntPtr initable, int io_priority, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data)
		{
			try {
				GLib.AsyncInitableImplementor __obj = GLib.Object.GetObject (initable, false) as GLib.AsyncInitableImplementor;
				GLibSharp.AsyncReadyCallbackInvoker cb_invoker = new GLibSharp.AsyncReadyCallbackInvoker (cb, user_data);
				__obj.InitAsync (io_priority, GLib.Object.GetObject(cancellable) as GLib.Cancellable, cb_invoker.Handler);
			} catch (Exception e) {
				GLib.ExceptionManager.RaiseUnhandledException (e, false);
			}
		}
开发者ID:Yetangitu,项目名称:f-spot,代码行数:10,代码来源:AsyncInitableAdapter.cs

示例2: LoadAsync_cb

		static void LoadAsync_cb (IntPtr inst, int size, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data)
		{
			try {
				ILoadableIconImplementor __obj = GLib.Object.GetObject (inst, false) as ILoadableIconImplementor;
				GLibSharp.AsyncReadyCallbackInvoker cb_invoker = new GLibSharp.AsyncReadyCallbackInvoker (cb, user_data);
				__obj.LoadAsync (size, GLib.Object.GetObject(cancellable) as GLib.Cancellable, cb_invoker.Handler);
			} catch (Exception e) {
				GLib.ExceptionManager.RaiseUnhandledException (e, false);
			}
		}
开发者ID:akrisiun,项目名称:gtk-sharp,代码行数:10,代码来源:LoadableIconAdapter.cs

示例3: ConnectAsync_cb

		static void ConnectAsync_cb (IntPtr inst, IntPtr connection, IntPtr proxy_address, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data)
		{
			try {
				IProxyImplementor __obj = GLib.Object.GetObject (inst, false) as IProxyImplementor;
				GLibSharp.AsyncReadyCallbackInvoker cb_invoker = new GLibSharp.AsyncReadyCallbackInvoker (cb, user_data);
				__obj.ConnectAsync (GLib.Object.GetObject(connection) as GLib.IOStream, GLib.Object.GetObject(proxy_address) as GLib.ProxyAddress, GLib.Object.GetObject(cancellable) as GLib.Cancellable, cb_invoker.Handler);
			} catch (Exception e) {
				GLib.ExceptionManager.RaiseUnhandledException (e, false);
			}
		}
开发者ID:akrisiun,项目名称:gtk-sharp,代码行数:10,代码来源:ProxyAdapter.cs

示例4: LookupAsync_cb

		static void LookupAsync_cb (IntPtr inst, IntPtr uri, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data)
		{
			try {
				IProxyResolverImplementor __obj = GLib.Object.GetObject (inst, false) as IProxyResolverImplementor;
				GLibSharp.AsyncReadyCallbackInvoker cb_invoker = new GLibSharp.AsyncReadyCallbackInvoker (cb, user_data);
				__obj.LookupAsync (GLib.Marshaller.Utf8PtrToString (uri), GLib.Object.GetObject(cancellable) as GLib.Cancellable, cb_invoker.Handler);
			} catch (Exception e) {
				GLib.ExceptionManager.RaiseUnhandledException (e, false);
			}
		}
开发者ID:akrisiun,项目名称:gtk-sharp,代码行数:10,代码来源:ProxyResolverAdapter.cs

示例5: g_dbus_proxy_new_for_bus

		static extern IntPtr g_dbus_proxy_new_for_bus(int bus_type, int flags, IntPtr info, IntPtr name, IntPtr object_path, IntPtr interface_name, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data);
开发者ID:akrisiun,项目名称:gtk-sharp,代码行数:1,代码来源:DBusProxy.cs

示例6: g_loadable_icon_load_async

		static extern void g_loadable_icon_load_async(IntPtr raw, int size, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data);
开发者ID:Yetangitu,项目名称:f-spot,代码行数:1,代码来源:FileIcon.cs

示例7: CloseAsync_cb

		static void CloseAsync_cb (IntPtr inst, int io_priority, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data)
		{
			try {
				IOStream __obj = GLib.Object.GetObject (inst, false) as IOStream;
				GLibSharp.AsyncReadyCallbackInvoker cb_invoker = new GLibSharp.AsyncReadyCallbackInvoker (cb, user_data);
				__obj.OnCloseAsync (io_priority, GLib.Object.GetObject(cancellable) as GLib.Cancellable, cb_invoker.Handler);
			} catch (Exception e) {
				GLib.ExceptionManager.RaiseUnhandledException (e, false);
			}
		}
开发者ID:akrisiun,项目名称:gtk-sharp,代码行数:10,代码来源:IOStream.cs

示例8: AppendToAsyncCallback

		static void AppendToAsyncCallback (IntPtr file, int flags, int io_priority, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data)
		{
			try {
				GLib.FileImplementor __obj = GLib.Object.GetObject (file, false) as GLib.FileImplementor;
				GLibSharp.AsyncReadyCallbackInvoker cb_invoker = new GLibSharp.AsyncReadyCallbackInvoker (cb, user_data);
				__obj.AppendToAsync ((GLib.FileCreateFlags) flags, io_priority, GLib.Object.GetObject(cancellable) as GLib.Cancellable, cb_invoker.Handler);
			} catch (Exception e) {
				GLib.ExceptionManager.RaiseUnhandledException (e, false);
			}
		}
开发者ID:Yetangitu,项目名称:f-spot,代码行数:10,代码来源:FileAdapter.cs

示例9: QueryInfoAsyncCallback

		static void QueryInfoAsyncCallback (IntPtr file, IntPtr attributes, int flags, int io_priority, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data)
		{
			try {
				GLib.FileImplementor __obj = GLib.Object.GetObject (file, false) as GLib.FileImplementor;
				GLibSharp.AsyncReadyCallbackInvoker cb_invoker = new GLibSharp.AsyncReadyCallbackInvoker (cb, user_data);
				__obj.QueryInfoAsync (GLib.Marshaller.Utf8PtrToString (attributes), (GLib.FileQueryInfoFlags) flags, io_priority, GLib.Object.GetObject(cancellable) as GLib.Cancellable, cb_invoker.Handler);
			} catch (Exception e) {
				GLib.ExceptionManager.RaiseUnhandledException (e, false);
			}
		}
开发者ID:Yetangitu,项目名称:f-spot,代码行数:10,代码来源:FileAdapter.cs

示例10: g_file_enumerate_children_async

		static extern void g_file_enumerate_children_async(IntPtr raw, IntPtr attributes, int flags, int io_priority, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data);
开发者ID:Yetangitu,项目名称:f-spot,代码行数:1,代码来源:FileAdapter.cs

示例11: g_file_set_attributes_async

		static extern void g_file_set_attributes_async(IntPtr raw, IntPtr info, int flags, int io_priority, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data);
开发者ID:Yetangitu,项目名称:f-spot,代码行数:1,代码来源:FileAdapter.cs

示例12: g_file_load_partial_contents_async

		static extern void g_file_load_partial_contents_async(IntPtr raw, IntPtr cancellable, GLibSharp.FileReadMoreCallbackNative read_more_callback, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data);
开发者ID:Yetangitu,项目名称:f-spot,代码行数:1,代码来源:FileAdapter.cs

示例13: g_file_load_contents_async

		static extern void g_file_load_contents_async(IntPtr raw, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data);
开发者ID:Yetangitu,项目名称:f-spot,代码行数:1,代码来源:FileAdapter.cs

示例14: g_file_eject_mountable_with_operation

		static extern void g_file_eject_mountable_with_operation(IntPtr raw, int flags, IntPtr mount_operation, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data);
开发者ID:Yetangitu,项目名称:f-spot,代码行数:1,代码来源:FileAdapter.cs

示例15: PollMountableCallback

		static void PollMountableCallback (IntPtr file, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data)
		{
			try {
				GLib.FileImplementor __obj = GLib.Object.GetObject (file, false) as GLib.FileImplementor;
				GLibSharp.AsyncReadyCallbackInvoker cb_invoker = new GLibSharp.AsyncReadyCallbackInvoker (cb, user_data);
				__obj.PollMountable (GLib.Object.GetObject(cancellable) as GLib.Cancellable, cb_invoker.Handler);
			} catch (Exception e) {
				GLib.ExceptionManager.RaiseUnhandledException (e, false);
			}
		}
开发者ID:Yetangitu,项目名称:f-spot,代码行数:10,代码来源:FileAdapter.cs


注:本文中的GLibSharp类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。