Class ScrollPaneSnapAction.ValueSlot
java.lang.Object
net.dermetfan.gdx.scenes.scene2d.ui.ScrollPaneSnapAction.Slot
net.dermetfan.gdx.scenes.scene2d.ui.ScrollPaneSnapAction.ValueSlot
- All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.EventListener
- Enclosing class:
- ScrollPaneSnapAction
public static class ScrollPaneSnapAction.ValueSlot extends ScrollPaneSnapAction.Slot
a Slot determined by
Values- Since:
- 0.10.0
-
Constructor Summary
Constructors Constructor Description ValueSlot(com.badlogic.gdx.scenes.scene2d.ui.Value valueX, com.badlogic.gdx.scenes.scene2d.ui.Value valueY) -
Method Summary
Modifier and Type Method Description voidgetSlot(com.badlogic.gdx.scenes.scene2d.Actor actor, com.badlogic.gdx.math.Vector2 slot)com.badlogic.gdx.scenes.scene2d.ui.ValuegetValueX()com.badlogic.gdx.scenes.scene2d.ui.ValuegetValueY()voidsetValueX(com.badlogic.gdx.scenes.scene2d.ui.Value valueX)voidsetValueY(com.badlogic.gdx.scenes.scene2d.ui.Value valueY)Methods inherited from class net.dermetfan.gdx.scenes.scene2d.ui.ScrollPaneSnapAction.Slot
handleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ValueSlot
public ValueSlot(com.badlogic.gdx.scenes.scene2d.ui.Value valueX, com.badlogic.gdx.scenes.scene2d.ui.Value valueY)- Parameters:
valueX- thevalueXto setvalueY- thevalueYto set
-
-
Method Details
-
getSlot
public void getSlot(com.badlogic.gdx.scenes.scene2d.Actor actor, com.badlogic.gdx.math.Vector2 slot)- Specified by:
getSlotin classScrollPaneSnapAction.Slot- Parameters:
actor- the Actor which slot to getslot- the Vector2 to store the slot position in
-
getValueX
public com.badlogic.gdx.scenes.scene2d.ui.Value getValueX()- Returns:
- the
valueX
-
setValueX
public void setValueX(com.badlogic.gdx.scenes.scene2d.ui.Value valueX)- Parameters:
valueX- thevalueXto set
-
getValueY
public com.badlogic.gdx.scenes.scene2d.ui.Value getValueY()- Returns:
- the
valueY
-
setValueY
public void setValueY(com.badlogic.gdx.scenes.scene2d.ui.Value valueY)- Parameters:
valueY- thevalueYto set
-