• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# GLibSharp类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: g_file_mount_enclosing_volume

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


示例17: g_file_append_to_async

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


示例18: g_file_move

		static extern bool g_file_move(IntPtr raw, IntPtr destination, int flags, IntPtr cancellable, GLibSharp.FileProgressCallbackNative progress_callback, IntPtr progress_callback_data, out IntPtr error);
开发者ID:Yetangitu,项目名称:f-spot,代码行数:1,代码来源:FileAdapter.cs


示例19: g_file_unmount_mountable

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


示例20: g_file_find_enclosing_mount_async

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# GLibSharp.AsyncReadyCallbackWrapper类代码示例发布时间:2022-05-24
下一篇:
C# GLib.ValueArray类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap