* UnsafeNativeMethods.cs: added IEnumVariant interface,
[mono.git] / mcs / class / System.Windows.Forms / System.Windows.Forms / UICuesEventArgs.cs
1 //
2 // System.Windows.Forms.UICuesEventArgs
3 //
4 // Author:
5 //       stubbed out by Stefan Warnke (StefanW@POBox.com)
6 //   Dennis Hayes (dennish@Raytek.com)
7 //   Gianandrea Terzi (gianandrea.terzi@lario.com)
8 //
9 // (C) Ximian, Inc., 2002
10 //
11 using System;
12
13 namespace System.Windows.Forms {
14
15         // <summary>
16         // </summary>
17
18
19         /// <summary>
20         /// UICuesEventArgs specifies which user interface feature changed and its new value.
21         /// </summary>
22         public class UICuesEventArgs : EventArgs {
23                 
24                 private UICues uicues;
25
26 //              /// --- Constructor ---
27
28                 public UICuesEventArgs(UICues uicues) 
29                 {
30                         this.uicues = uicues;
31                 }
32
33                 /// --- Public Properties ---
34                 #region Public Properties
35
36                 // Gets the bitwise combination of the UICues values
37                 public UICues Changed {
38                         get {
39                                 return uicues;
40                         }
41                 }
42                 
43                 // Gets a value indicating whether the state of the focus cues has changed.
44                 public bool ChangeFocus {
45                         get {
46                                 return (uicues & UICues.ChangeFocus) == 0;
47                         }
48                 }
49
50                 // Gets a value indicating whether the state of the keyboard cues has changed
51                 public bool ChangeKeyboard {
52                         get {
53                                 return (uicues & UICues.ChangeKeyboard) == 0;
54                         }
55                 }
56
57                 // Gets a value indicating whether focus rectangles are shown after the change
58                 public bool ShowFocus {
59                         get {
60                                 return (uicues & UICues.ShowFocus) == 0;
61                         }
62                 }
63
64                 // Gets a value indicating whether keyboard cues are underlined after the change
65                 public bool ShowKeyboard {
66                         get {
67                                 return (uicues & UICues.ShowKeyboard) == 0;
68
69                         }
70                 }
71                 #endregion // Public Properties
72         }
73 }