package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Drop_controller_motion/index.html

Module Wrappers.Drop_controller_motion

type t = [ `drop_controller_motion | `event_controller | `object_ ] Gobject.obj
val new_ : unit -> t

Create a new DropControllerMotion

val is_pointer : t -> bool

Returns if a Drag-and-Drop operation is within the widget @self, not one of its children.

val get_drop : t -> Ocgtk_gdk.Gdk.Wrappers.Drop.t option

Returns the `GdkDrop` of a current Drag-and-Drop operation over the widget of @self.

val contains_pointer : t -> bool

Returns if a Drag-and-Drop operation is within the widget @self or one of its children.

val on_enter : ?after:bool -> t -> callback:(x:float -> y:float -> unit) -> Gobject.Signal.handler_id
val on_leave : ?after:bool -> t -> callback:(unit -> unit) -> Gobject.Signal.handler_id
val on_motion : ?after:bool -> t -> callback:(x:float -> y:float -> unit) -> Gobject.Signal.handler_id