mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 07:05:41 +00:00
01acd7f576
* generator/Signal.cs : rmv Handle param to SignalCallback ctor calls. s/GtkSharp.Signal*/GLib.Signal*. * generator/SignalHandler.cs : rmv Handle param to ctors as it's redundant. s/GtkSharp.Signal*/GLib.Signal*. Use new Connect/Disconnect instead of generating DllImports into libgobject directly. * glib/SignalArgs.cs : move the the GLib namespace. * glib/SignalCallback.cs : expose Connect and Disconnect methods to hide some pinvokes that were previously generated. Also move to the GLib namespace. gnome/*Handler.cs : update to new SignalHandler API. gnome/CanvasProxy.cs : ditto gnome/void*Signal.cs : ditto svn path=/trunk/gtk-sharp/; revision=26778
53 lines
721 B
C#
53 lines
721 B
C#
// GLib.SignalArgs.cs - Signal argument class implementation
|
|
//
|
|
// Author: Mike Kestner <mkestner@speakeasy.net>
|
|
//
|
|
// (c) 2001 Mike Kestner
|
|
|
|
namespace GLib {
|
|
using System;
|
|
using System.Collections;
|
|
|
|
public class SignalArgs : EventArgs {
|
|
|
|
private object _ret;
|
|
private object[] _args;
|
|
|
|
public SignalArgs()
|
|
{
|
|
_ret = null;
|
|
_args = null;
|
|
}
|
|
|
|
public SignalArgs(object retval)
|
|
{
|
|
_ret = retval;
|
|
_args = null;
|
|
}
|
|
|
|
public SignalArgs(object retval, object[] args)
|
|
{
|
|
_ret = retval;
|
|
_args = args;
|
|
}
|
|
|
|
public object[] Args {
|
|
get {
|
|
return _args;
|
|
}
|
|
set {
|
|
_args = value;
|
|
}
|
|
}
|
|
|
|
public object RetVal {
|
|
get {
|
|
return _ret;
|
|
}
|
|
set {
|
|
_ret = value;
|
|
}
|
|
}
|
|
}
|
|
}
|