Skip to content

Commit

Permalink
More cursor work.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lloyd Kinsella committed Sep 28, 2018
1 parent a734f98 commit 4de6f1a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/Workshell.PE.Resources/Graphics/CursorInfo.cs
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
}
}
13 changes: 13 additions & 0 deletions src/Workshell.PE.Resources/Graphics/CursorResource.cs
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)
{
}
}
}

0 comments on commit 4de6f1a

Please sign in to comment.