2 // System.Windows.Forms.Cursor
5 // Alberto Fernandez (infjaf00@yahoo.es)
9 namespace System
.Windows
.Forms
{
13 using System
.Runtime
.Serialization
;
16 public sealed class Cursor
: IDisposable
, ISerializable
{
21 public Cursor (IntPtr handle
){
22 if (handle
== IntPtr
.Zero
){
23 throw new ArgumentException();
27 public Cursor (Stream stream
){
30 public Cursor (string fileName
){
33 public Cursor (Type type
, string resource
){
36 public static Rectangle Clip
{
37 // Rectángulo por el que se puede mover el cursor.
38 // Generalmente toda la pantalla.
39 get {throw new NotImplementedException();}
40 set {throw new NotImplementedException();}
43 public static Cursor Current
{
44 // Si se pone en un valor que no sea default, la aplicación
45 // deja de oir a los eventos de mouse.
46 // cuando este en Cursor.Default, la aplicación vuelve
47 // a escuchar los eventos de ratón.
49 get {throw new NotImplementedException();}
50 set {throw new NotImplementedException();}
53 public IntPtr Handle
{
54 get {throw new Exception();}
57 public static Point Position
{
58 get {throw new NotImplementedException();}
59 set {throw new NotImplementedException();}
63 get {throw new NotImplementedException();}
66 public IntPtr
CopyHandle (){
67 throw new NotImplementedException();
70 public void Dispose (){
71 throw new NotImplementedException();
74 public void Draw (Graphics g
, Rectangle targetRect
){
75 throw new NotImplementedException();
78 public void DrawStretched(Graphics g
, Rectangle targetRect
){
79 throw new NotImplementedException();
82 public override bool Equals (Object obj
){
83 throw new NotImplementedException();
89 public override int GetHashCode(){
90 throw new NotImplementedException();
93 void ISerializable
.GetObjectData (SerializationInfo si
, StreamingContext context
){
94 throw new NotImplementedException();
97 public static void Hide(){
98 throw new NotImplementedException();
101 public static void Show(){
102 throw new NotImplementedException();
105 public override String
ToString(){
106 return base.ToString();
108 public static bool operator==(Cursor left
, Cursor right
){
109 return left
.Equals(right
);
111 public static bool operator!=(Cursor left
, Cursor right
) {
112 return ( !(left
== right
));