2021-07-11 22:59:29 -05:00
|
|
|
// Decompiled with JetBrains decompiler
|
|
|
|
|
// Type: Microsoft.Iris.Input.Cursor
|
|
|
|
|
// Assembly: UIX.RenderApi, Version=4.8.0.0, Culture=neutral, PublicKeyToken=ddd0da4d3e678217
|
|
|
|
|
// MVID: D47658B8-A8EA-43D6-8837-ECE823BFFFC1
|
|
|
|
|
// Assembly location: C:\Program Files\Zune\UIX.RenderApi.dll
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.Iris.Input
|
|
|
|
|
{
|
2021-07-11 23:04:40 -05:00
|
|
|
public class Cursor
|
2021-07-11 22:59:29 -05:00
|
|
|
{
|
2021-07-11 23:04:40 -05:00
|
|
|
public const int NoneResourceId = 1;
|
|
|
|
|
public const int MoveResourceId = 2;
|
|
|
|
|
public const int CopyResourceId = 3;
|
|
|
|
|
public static readonly Cursor Arrow = new Cursor(32512, CursorID.Arrow);
|
|
|
|
|
public static readonly Cursor AppStarting = new Cursor(32550, CursorID.AppStarting);
|
|
|
|
|
public static readonly Cursor Crosshair = new Cursor(32515, CursorID.Crosshair);
|
2021-07-11 23:07:04 -05:00
|
|
|
public static readonly Cursor Default = Arrow;
|
2021-07-11 23:04:40 -05:00
|
|
|
public static readonly Cursor Hand = new Cursor(32649, CursorID.Hand);
|
|
|
|
|
public static readonly Cursor Help = new Cursor(32651, CursorID.Help);
|
|
|
|
|
public static readonly Cursor IBeam = new Cursor(32513, CursorID.IBeam);
|
|
|
|
|
public static readonly Cursor No = new Cursor(32648, CursorID.No);
|
|
|
|
|
public static readonly Cursor Size = new Cursor(32646, CursorID.Size);
|
|
|
|
|
public static readonly Cursor SizeNS = new Cursor(32645, CursorID.SizeNS);
|
|
|
|
|
public static readonly Cursor SizeWE = new Cursor(32644, CursorID.SizeWE);
|
|
|
|
|
public static readonly Cursor SizeNWSE = new Cursor(32642, CursorID.SizeNWSE);
|
|
|
|
|
public static readonly Cursor SizeNESW = new Cursor(32643, CursorID.SizeNESW);
|
|
|
|
|
public static readonly Cursor WaitCursor = new Cursor(32514, CursorID.Wait);
|
|
|
|
|
public static readonly Cursor UpArrow = new Cursor(32516, CursorID.UpArrow);
|
|
|
|
|
public static readonly Cursor NullCursor = new Cursor(0, CursorID.None);
|
|
|
|
|
public static readonly Cursor Cancel = new Cursor(1, CursorID.Cancel);
|
|
|
|
|
public static readonly Cursor Move = new Cursor(2, CursorID.Move);
|
|
|
|
|
public static readonly Cursor Copy = new Cursor(3, CursorID.Copy);
|
|
|
|
|
private int m_idResource;
|
|
|
|
|
private CursorID m_idCursor;
|
|
|
|
|
|
|
|
|
|
public Cursor(int idResource, CursorID idCursor)
|
|
|
|
|
{
|
|
|
|
|
this.m_idResource = idResource;
|
|
|
|
|
this.m_idCursor = idCursor;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int ResourceId => this.m_idResource;
|
|
|
|
|
|
|
|
|
|
public CursorID CursorID => this.m_idCursor;
|
|
|
|
|
|
|
|
|
|
public static Cursor GetCursor(CursorID cursor)
|
|
|
|
|
{
|
|
|
|
|
switch (cursor)
|
|
|
|
|
{
|
|
|
|
|
case CursorID.Arrow:
|
2021-07-11 23:07:04 -05:00
|
|
|
return Arrow;
|
2021-07-11 23:04:40 -05:00
|
|
|
case CursorID.Cancel:
|
2021-07-11 23:07:04 -05:00
|
|
|
return Cancel;
|
2021-07-11 23:04:40 -05:00
|
|
|
case CursorID.Copy:
|
2021-07-11 23:07:04 -05:00
|
|
|
return Copy;
|
2021-07-11 23:04:40 -05:00
|
|
|
case CursorID.Crosshair:
|
2021-07-11 23:07:04 -05:00
|
|
|
return Crosshair;
|
2021-07-11 23:04:40 -05:00
|
|
|
case CursorID.IBeam:
|
2021-07-11 23:07:04 -05:00
|
|
|
return IBeam;
|
2021-07-11 23:04:40 -05:00
|
|
|
case CursorID.Hand:
|
2021-07-11 23:07:04 -05:00
|
|
|
return Hand;
|
2021-07-11 23:04:40 -05:00
|
|
|
case CursorID.Move:
|
2021-07-11 23:07:04 -05:00
|
|
|
return Move;
|
2021-07-11 23:04:40 -05:00
|
|
|
case CursorID.No:
|
2021-07-11 23:07:04 -05:00
|
|
|
return No;
|
2021-07-11 23:04:40 -05:00
|
|
|
case CursorID.None:
|
2021-07-11 23:07:04 -05:00
|
|
|
return NullCursor;
|
2021-07-11 23:04:40 -05:00
|
|
|
case CursorID.Size:
|
2021-07-11 23:07:04 -05:00
|
|
|
return Size;
|
2021-07-11 23:04:40 -05:00
|
|
|
case CursorID.SizeNS:
|
2021-07-11 23:07:04 -05:00
|
|
|
return SizeNS;
|
2021-07-11 23:04:40 -05:00
|
|
|
case CursorID.SizeWE:
|
2021-07-11 23:07:04 -05:00
|
|
|
return SizeWE;
|
2021-07-11 23:04:40 -05:00
|
|
|
case CursorID.SizeNWSE:
|
2021-07-11 23:07:04 -05:00
|
|
|
return SizeNWSE;
|
2021-07-11 23:04:40 -05:00
|
|
|
case CursorID.SizeNESW:
|
2021-07-11 23:07:04 -05:00
|
|
|
return SizeNESW;
|
2021-07-11 23:04:40 -05:00
|
|
|
case CursorID.UpArrow:
|
2021-07-11 23:07:04 -05:00
|
|
|
return UpArrow;
|
2021-07-11 23:04:40 -05:00
|
|
|
case CursorID.Wait:
|
2021-07-11 23:07:04 -05:00
|
|
|
return WaitCursor;
|
2021-07-11 23:04:40 -05:00
|
|
|
default:
|
2021-07-11 23:07:04 -05:00
|
|
|
return null;
|
2021-07-11 23:04:40 -05:00
|
|
|
}
|
|
|
|
|
}
|
2021-07-11 22:59:29 -05:00
|
|
|
}
|
|
|
|
|
}
|