Type Alias: GtkEventControllerScrollProps
GtkEventControllerScrollProps =
EventControllerBaseProps&object
Defined in: generated/jsx.ts:10259
Props for the GtkEventControllerScroll controller element.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
flags? | Gtk.EventControllerScrollFlags | The flags affecting event controller behavior. | generated/jsx.ts:10261 |
onDecelerate()? | (velX, velY, self) => void | null | Emitted after scroll is finished if the %GTK_EVENT_CONTROLLER_SCROLL_KINETIC flag is set. vel_x and vel_y express the initial velocity that was imprinted by the scroll events. vel_x and vel_y are expressed in pixels/ms. | generated/jsx.ts:10270 |
onScroll()? | (dx, dy, self) => boolean | null | Signals that the widget should scroll by the amount specified by dx and dy. For the representation unit of the deltas, see EventControllerScroll.get_unit. | generated/jsx.ts:10278 |
onScrollBegin()? | (self) => void | null | Signals that a new scrolling operation has begun. It will only be emitted on devices capable of it. | generated/jsx.ts:10284 |
onScrollEnd()? | (self) => void | null | Signals that a scrolling operation has finished. It will only be emitted on devices capable of it. | generated/jsx.ts:10290 |
ref? | Ref<Gtk.EventControllerScroll> | - | generated/jsx.ts:10291 |