class

OpenAI::Scroll

Inherits JSON::Serializable < Reference < Object

A scroll action.

Constructors

new(type_value : ScrollType = ScrollType::Scroll, x : Int64 = 0, y : Int64 = 0, scroll_x : Int64 = 0, scroll_y : Int64 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

scroll_x

The horizontal scroll distance.

Source
scroll_x=(scroll_x : Int64)

The horizontal scroll distance.

Source
scroll_y

The vertical scroll distance.

Source
scroll_y=(scroll_y : Int64)

The vertical scroll distance.

Source
type_value

Specifies the event type. For a scroll action, this property is always set to scroll.

Source
type_value=(type_value : ScrollType)

Specifies the event type. For a scroll action, this property is always set to scroll.

Source
x

The x-coordinate where the scroll occurred.

Source
x=(x : Int64)

The x-coordinate where the scroll occurred.

Source
y

The y-coordinate where the scroll occurred.

Source
y=(y : Int64)

The y-coordinate where the scroll occurred.

Source