servicepoint/crates/servicepoint_binding_cs/ServicePoint/Constants.cs

25 lines
685 B
C#
Raw Normal View History

2024-10-15 22:54:32 +02:00
using ServicePoint.BindGen;
namespace ServicePoint;
2024-05-13 00:17:40 +02:00
public static class Constants
{
/// size of a single tile in one dimension
2024-10-16 20:02:06 +02:00
public const nuint TileSize = NativeMethods.SP_TILE_SIZE;
2024-05-13 00:17:40 +02:00
/// tile count in the x-direction
2024-10-16 20:02:06 +02:00
public const nuint TileWidth = NativeMethods.SP_TILE_WIDTH;
2024-05-13 00:17:40 +02:00
/// tile count in the y-direction
2024-10-16 20:02:06 +02:00
public const nuint TileHeight = NativeMethods.SP_TILE_SIZE;
2024-05-13 00:17:40 +02:00
/// screen width in pixels
2024-10-16 20:02:06 +02:00
public const nuint PixelWidth = TileWidth * TileSize;
2024-05-13 00:17:40 +02:00
/// screen height in pixels
2024-10-16 20:02:06 +02:00
public const nuint PixelHeight = TileHeight * TileSize;
2024-05-13 00:17:40 +02:00
/// pixel count on whole screen
2024-10-16 20:02:06 +02:00
public const nuint PixelCount = PixelWidth * PixelHeight;
2024-05-13 00:17:40 +02:00
}