Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
Reflect.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 
5 namespace MonoDroid.Dialog
6 {
7  [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
8  public class EntryAttribute : Attribute
9  {
10  public string Placeholder;
11 
12  public EntryAttribute() : this(null)
13  {
14  }
15 
16  public EntryAttribute(string placeholder)
17  {
18  Placeholder = placeholder;
19  }
20  }
21 
22  [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
23  public class DateAttribute : Attribute
24  {
25  }
26 
27  [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
28  public class TimeAttribute : Attribute
29  {
30  }
31 
32  [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
33  public class CheckboxAttribute : Attribute
34  {
35  }
36 
37  [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
38  public class MultilineAttribute : Attribute
39  {
40  }
41 
42  [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
43  public class HtmlAttribute : Attribute
44  {
45  }
46 
47  [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
48  public class SkipAttribute : Attribute
49  {
50  }
51 
52  [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
53  public class StringAttribute : Attribute
54  {
55  }
56 
57  [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
59  {
60  public PasswordAttribute(string placeholder) : base(placeholder)
61  {
62  }
63  }
64 
65  [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
66  public class AlignmentAttribute : Attribute
67  {
68  public AlignmentAttribute(object alignment)
69  {
70  Alignment = alignment;
71  }
72  public object Alignment;
73  }
74 
75  [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
76  public class RadioSelectionAttribute : Attribute
77  {
78  public string Target;
79 
80  public RadioSelectionAttribute(string target)
81  {
82  Target = target;
83  }
84  }
85 
86  [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
87  public class OnTapAttribute : Attribute
88  {
89  public string Method;
90 
91  public OnTapAttribute(string method)
92  {
93  Method = method;
94  }
95  }
96 
97  [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
98  public class CaptionAttribute : Attribute
99  {
100  public string Caption;
101 
102  public CaptionAttribute(string caption)
103  {
104  Caption = caption;
105  }
106  }
107 
108  [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false)]
109  public class SectionAttribute : Attribute
110  {
111  public string Caption, Footer;
112 
114  {
115  }
116 
117  public SectionAttribute(string caption)
118  {
119  Caption = caption;
120  }
121 
122  public SectionAttribute(string caption, string footer)
123  {
124  Caption = caption;
125  Footer = footer;
126  }
127  }
128 
129  public class RangeAttribute : Attribute
130  {
131  public int High;
132  public int Low;
133  public bool ShowCaption;
134 
135  public RangeAttribute(int low, int high)
136  {
137  Low = low;
138  High = high;
139  }
140  }
141 }
OnTapAttribute(string method)
Definition: Reflect.cs:91
SectionAttribute(string caption, string footer)
Definition: Reflect.cs:122
CaptionAttribute(string caption)
Definition: Reflect.cs:102
AlignmentAttribute(object alignment)
Definition: Reflect.cs:68
RangeAttribute(int low, int high)
Definition: Reflect.cs:135
string Placeholder
Definition: Reflect.cs:10
PasswordAttribute(string placeholder)
Definition: Reflect.cs:60
EntryAttribute()
Definition: Reflect.cs:12
SectionAttribute(string caption)
Definition: Reflect.cs:117
Definition: Reflect.cs:8
EntryAttribute(string placeholder)
Definition: Reflect.cs:16