class

OpenAI::ClickParam

Inherits JSON::Serializable < Reference < Object

A click action.

Constructors

new(type_value : ClickParamType = ClickParamType::Click, button : ClickButtonType = ClickButtonType::Left, x : Int64 = 0, y : Int64 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

button

Indicates which mouse button was pressed during the click. One of left, right, wheel, back, or forward.

Source
button=(button : ClickButtonType)

Indicates which mouse button was pressed during the click. One of left, right, wheel, back, or forward.

Source
type_value

Specifies the event type. For a click action, this property is always click.

Source
type_value=(type_value : ClickParamType)

Specifies the event type. For a click action, this property is always click.

Source
x

The x-coordinate where the click occurred.

Source
x=(x : Int64)

The x-coordinate where the click occurred.

Source
y

The y-coordinate where the click occurred.

Source
y=(y : Int64)

The y-coordinate where the click occurred.

Source