Class TabMotion

java.lang.Object
net.ixdarklord.folios.internal.client.TabMotion

public final class TabMotion extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Starts a frame: how much time has passed is read once for every tab.
    float
    out(String tab, boolean hovered, boolean here)
    How far a tab is out, swinging towards where it should be: 0 at rest, 0.55 under the pointer, 1 while its part of the book is open; below 0 for a moment when knocked in.
    void
     
    float
    How pressed in a tab is, 1 just pressed to 0, eased.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TabMotion

      public TabMotion()
  • Method Details

    • frame

      public void frame()
      Starts a frame: how much time has passed is read once for every tab.
    • out

      public float out(String tab, boolean hovered, boolean here)
      How far a tab is out, swinging towards where it should be: 0 at rest, 0.55 under the pointer, 1 while its part of the book is open; below 0 for a moment when knocked in.
    • pressed

      public float pressed(String tab)
      How pressed in a tab is, 1 just pressed to 0, eased.
    • press

      public void press(String tab)