Class DraggingKt
-
- All Implemented Interfaces:
public final class DraggingKt
-
-
Method Summary
Modifier and Type Method Description final static <S extends Inputtable> Sdraggable(S $self, Boolean withX, Boolean withY, Boolean free)Make this component draggable by the user with their mouse. final static <S extends Inputtable> SmakeRearrangeableGrid(S $self)Turn this component into a 'rearrangeable grid', meaning that the children in it can be dragged around and rearranged in any order by the user. final static <S extends Inputtable> SonDrag(S $self, Function2<S, Event.Mouse.Drag, Unit> func)final static <S extends Inputtable> SonDragStart(S $self, Function2<S, Event.Mouse.Drag.Started, Unit> func)final static <S extends Inputtable> SonDragEndZ(S $self, Function2<S, Event.Mouse.Drag.Ended, Boolean> func)final static <S extends Inputtable> SonDragEnd(S $self, Function2<S, Event.Mouse.Drag.Ended, Unit> func)-
-
Method Detail
-
draggable
final static <S extends Inputtable> S draggable(S $self, Boolean withX, Boolean withY, Boolean free)
Make this component draggable by the user with their mouse.
- Parameters:
free- if this is true, the component will be able to be dragged outside its parent.
-
makeRearrangeableGrid
final static <S extends Inputtable> S makeRearrangeableGrid(S $self)
Turn this component into a 'rearrangeable grid', meaning that the children in it can be dragged around and rearranged in any order by the user. It will automatically adapt and insert the children in the correct order.
- Since:
1.6.1
-
onDrag
final static <S extends Inputtable> S onDrag(S $self, Function2<S, Event.Mouse.Drag, Unit> func)
-
onDragStart
final static <S extends Inputtable> S onDragStart(S $self, Function2<S, Event.Mouse.Drag.Started, Unit> func)
-
onDragEndZ
final static <S extends Inputtable> S onDragEndZ(S $self, Function2<S, Event.Mouse.Drag.Ended, Boolean> func)
-
onDragEnd
final static <S extends Inputtable> S onDragEnd(S $self, Function2<S, Event.Mouse.Drag.Ended, Unit> func)
-
-
-
-