Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
102 lines (84 sloc) 2.21 KB
//
// DialogAttributes.cs
//
// Initial version from:
// http://github.com/migueldeicaza/MonoTouch.Dialog/blob/master/MonoTouch.Dialog/Reflect.cs
//
// Author:
// Miguel de Icaza (miguel@gnome.org)
//
// Copyright 2010, Novell, Inc.
//
// Code licensed under the MIT X11 license
using System;
using System.Collections.Generic;
namespace Pinta.Gui.Widgets
{
[AttributeUsage (AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
public class SkipAttribute : Attribute
{
}
[AttributeUsage (AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
public class CaptionAttribute : Attribute
{
public CaptionAttribute (string caption)
{
Caption = caption;
}
public string Caption;
}
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
public class DigitsValueAttribute : Attribute
{
public DigitsValueAttribute(int value)
{
Value = value;
}
public int Value;
}
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
public class IncrementValueAttribute : Attribute
{
public IncrementValueAttribute(double value)
{
Value = value;
}
public double Value;
}
[AttributeUsage (AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
public class MinimumValueAttribute : Attribute
{
public MinimumValueAttribute (int value)
{
Value = value;
}
public int Value;
}
[AttributeUsage (AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
public class MaximumValueAttribute : Attribute
{
public MaximumValueAttribute (int value)
{
Value = value;
}
public int Value;
}
[AttributeUsage (AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
public class HintAttribute : Attribute
{
public HintAttribute (string caption)
{
Hint = caption;
}
public string Hint;
}
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
public class StaticListAttribute : Attribute
{
public StaticListAttribute (string dict)
{
this.dictionaryName = dict;
}
public string dictionaryName;
}
}
Jump to Line
Something went wrong with that request. Please try again.