2004-05-05 18:24:04 +00:00
|
|
|
// GLib.SignalArgs.cs - Signal argument class implementation
|
2001-11-25 17:06:27 +00:00
|
|
|
//
|
|
|
|
// Author: Mike Kestner <mkestner@speakeasy.net>
|
|
|
|
//
|
|
|
|
// (c) 2001 Mike Kestner
|
|
|
|
|
2004-05-05 18:24:04 +00:00
|
|
|
namespace GLib {
|
2001-11-25 17:06:27 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|