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.gtk/Ocgtk_gtk/Gtk/Wrappers/Drop_target_async/index.html
Module Wrappers.Drop_target_async
type t = [ `drop_target_async | `event_controller | `object_ ] Gobject.objval new_ :
Ocgtk_gdk.Gdk.Wrappers.Content_formats.t option ->
Ocgtk_gdk.Gdk.dragaction ->
tCreate a new DropTargetAsync
val set_formats : t -> Ocgtk_gdk.Gdk.Wrappers.Content_formats.t option -> unitSets the data formats that this drop target will accept.
val set_actions : t -> Ocgtk_gdk.Gdk.dragaction -> unitSets the actions that this drop target supports.
val reject_drop : t -> Ocgtk_gdk.Gdk.Wrappers.Drop.t -> unitSets the @drop as not accepted on this drag site.
This function should be used when delaying the decision on whether to accept a drag or not until after reading the data.
val get_formats : t -> Ocgtk_gdk.Gdk.Wrappers.Content_formats.t optionGets the data formats that this drop target accepts.
If the result is %NULL, all formats are expected to be supported.
val get_actions : t -> Ocgtk_gdk.Gdk.dragactionGets the actions that this drop target supports.
val on_accept :
?after:bool ->
t ->
callback:(drop:Ocgtk_gdk.Gdk.Wrappers.Drop.t -> bool) ->
Gobject.Signal.handler_idval on_drag_enter :
?after:bool ->
t ->
callback:
(drop:Ocgtk_gdk.Gdk.Wrappers.Drop.t ->
x:float ->
y:float ->
Ocgtk_gdk.Gdk_enums.dragaction) ->
Gobject.Signal.handler_idval on_drag_leave :
?after:bool ->
t ->
callback:(drop:Ocgtk_gdk.Gdk.Wrappers.Drop.t -> unit) ->
Gobject.Signal.handler_idval on_drag_motion :
?after:bool ->
t ->
callback:
(drop:Ocgtk_gdk.Gdk.Wrappers.Drop.t ->
x:float ->
y:float ->
Ocgtk_gdk.Gdk_enums.dragaction) ->
Gobject.Signal.handler_idval on_drop :
?after:bool ->
t ->
callback:(drop:Ocgtk_gdk.Gdk.Wrappers.Drop.t -> x:float -> y:float -> bool) ->
Gobject.Signal.handler_id sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>