Gtk.HandleBox.prototype.set_snap_edge

function set_snap_edge(edge:Gtk.PositionType):void {
    // Gjs wrapper for gtk_handle_box_set_snap_edge()
}

Sets the snap edge of a handlebox. The snap edge is the edge of the detached child that must be aligned with the corresponding edge of the "ghost" left behind when the child was detached to reattach the torn-off window. Usually, the snap edge should be chosen so that it stays in the same place on the screen when the handlebox is torn off.

If the snap edge is not set, then an appropriate value will be guessed from the handle position. If the handle position is Gtk.PositionType.right or Gtk.PositionType.left, then the snap edge will be Gtk.PositionType.top, otherwise it will be Gtk.PositionType.left.

edge

the snap edge, or -1 to unset the value; in which case GTK+ will try to guess an appropriate value in the future.