2003-03-15 21:02:25 +00:00
|
|
|
// WidgetAttribute.cs
|
2003-01-01 21:37:45 +00:00
|
|
|
//
|
|
|
|
// Author: Rachel Hestilow <hestilow@ximian.com>
|
|
|
|
//
|
|
|
|
// (c) 2003 Rachel Hestilow
|
|
|
|
|
|
|
|
namespace Glade {
|
|
|
|
using System;
|
|
|
|
|
|
|
|
[AttributeUsage (AttributeTargets.Field)]
|
2003-03-15 21:02:25 +00:00
|
|
|
public class WidgetAttribute : Attribute
|
2003-01-01 21:37:45 +00:00
|
|
|
{
|
|
|
|
private string name;
|
2003-01-01 23:53:21 +00:00
|
|
|
private bool specified;
|
2003-01-01 21:37:45 +00:00
|
|
|
|
2003-03-15 21:02:25 +00:00
|
|
|
public WidgetAttribute (string name)
|
2003-01-01 21:37:45 +00:00
|
|
|
{
|
2003-01-01 23:53:21 +00:00
|
|
|
specified = true;
|
2003-01-01 21:37:45 +00:00
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
|
2003-03-15 21:02:25 +00:00
|
|
|
public WidgetAttribute ()
|
2003-01-01 23:53:21 +00:00
|
|
|
{
|
|
|
|
specified = false;
|
|
|
|
}
|
|
|
|
|
2003-01-01 21:37:45 +00:00
|
|
|
public string Name
|
|
|
|
{
|
|
|
|
get { return name; }
|
|
|
|
}
|
2003-01-01 23:53:21 +00:00
|
|
|
|
|
|
|
public bool Specified
|
|
|
|
{
|
|
|
|
get { return specified; }
|
|
|
|
}
|
2003-01-01 21:37:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|