# CrosshairRegion record struct

> A rectangle of a texture in whole texels, from a record's region = [x, y, width, height]: the part of an image a crosshair style or a weapon icon draws, so one sheet can hold many. The readers refuse one whose numbers aren't whole or whose size isn't above 0.

Namespace `EvilEngine.Formats.Records`, assembly `EvilEngine.Formats`. Engine commit 4ff877b1.

```csharp
public readonly record struct CrosshairRegion
```

A rectangle of a texture in whole texels, from a record's `region = [x, y, width, height]`: the part of an image a crosshair style or a [weapon icon](/docs/api/weaponicon#region) draws, so one sheet can hold many. The readers refuse one whose numbers aren't whole or whose size isn't above 0.

## Members

### CrosshairRegion (constructor)

```csharp
public CrosshairRegion(int X, int Y, int Width, int Height)
```

Makes a region from its left and top edges and its size.

### X (property)

```csharp
public int X { get; init; }
```

The left edge, in texels from the image's left.

### Y (property)

```csharp
public int Y { get; init; }
```

The top edge, in texels from the image's top.

### Width (property)

```csharp
public int Width { get; init; }
```

How many texels wide.

### Height (property)

```csharp
public int Height { get; init; }
```

How many texels tall.
