package ocgtk
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
OCaml bindings for GTK 4
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gdk/Ocgtk_gdk/Gdk/Wrappers/Scroll_event/index.html
Module Wrappers.Scroll_event
type t = [ `scroll_event | `event ] Gobject.objval is_stop : t -> boolCheck whether a scroll event is a stop scroll event.
Scroll sequences with smooth scroll information may provide a stop scroll event once the interaction with the device finishes, e.g. by lifting a finger. This stop scroll event is the signal that a widget may trigger kinetic scrolling based on the current velocity.
Stop scroll events always have a delta of 0/0.
val get_unit : t -> Gdk_enums.scrollunitExtracts the scroll delta unit of a scroll event.
The unit will always be %GDK_SCROLL_UNIT_WHEEL if the scroll direction is not %GDK_SCROLL_SMOOTH.
val get_direction : t -> Gdk_enums.scrolldirectionExtracts the direction of a scroll event.
val get_deltas : t -> float * floatExtracts the scroll deltas of a scroll event.
The deltas will be zero unless the scroll direction is %GDK_SCROLL_SMOOTH.
For the representation unit of these deltas, see method@Gdk.ScrollEvent.get_unit.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>