Skip to content

API reference Obsidian.API.Client.Screens

ItemGridClick record struct

A click on an ItemGrid's cell.

public readonly record struct ItemGridClick : IEquatable<ItemGridClick>

In Obsidian.API.Client.

Constructors

ItemGridClick(int, int, bool)

public ItemGridClick(int Index, int Button, bool Shift);

A click on an ItemGrid's cell.

Parameters

Index
The cell's index in ItemGrid.Items, scrolled rows included; it can be past the list's end for an empty cell.
Button
The mouse button: 0 left, 1 right, 2 middle, like vanilla's.
Shift
Whether Shift was held.

Properties

Button

public int Button { get; init; }

The mouse button: 0 left, 1 right, 2 middle, like vanilla's.

Index

public int Index { get; init; }

The cell's index in ItemGrid.Items, scrolled rows included; it can be past the list's end for an empty cell.

Shift

public bool Shift { get; init; }

Whether Shift was held.

On this page