-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lloyd Kinsella
committed
Sep 28, 2018
1 parent
a734f98
commit 4de6f1a
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Drawing; | ||
using System.Text; | ||
|
||
namespace Workshell.PE.Resources.Graphics | ||
{ | ||
public sealed class CursorInfo | ||
{ | ||
internal CursorInfo(CursorResource cursor, ResourceLanguage language, ushort hotspotX, ushort hotspotY, ushort width, ushort height, byte colors, byte[] dib, bool isPNG) | ||
{ | ||
Cursor = cursor; | ||
Language = language; | ||
Hotspot = new Point(hotspotX, hotspotY); | ||
Size = new Size(width, height); | ||
Colors = colors; | ||
DIB = dib; | ||
IsPNG = isPNG; | ||
} | ||
|
||
#region Properties | ||
|
||
public CursorResource Cursor { get; } | ||
public ResourceLanguage Language { get; } | ||
public Point Hotspot { get; } | ||
public Size Size { get; } | ||
public byte Colors { get; } | ||
public byte[] DIB { get; } | ||
public bool IsPNG { get; } | ||
|
||
#endregion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Workshell.PE.Resources.Graphics | ||
{ | ||
public sealed class CursorResource : Resource | ||
{ | ||
public CursorResource(PortableExecutableImage image, ResourceType type, ResourceDirectoryEntry entry, ResourceId id) : base(image, type, entry, id) | ||
{ | ||
} | ||
} | ||
} |