本文整理汇总了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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
示例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);
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
示例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);
示例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);
示例13: g_file_load_contents_async
static extern void g_file_load_contents_async(IntPtr raw, IntPtr cancellable, GLibSharp.AsyncReadyCallbackNative cb, IntPtr user_data);
示例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);
示例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);
}
}