Package de.lessvoid.nifty

Examples of de.lessvoid.nifty.NiftyMouse


  public void execute(
      final Element element,
      final float normalizedTime,
      final Falloff falloff,
      final NiftyRenderEngine r) {
    NiftyMouse niftyMouse = nifty.getNiftyMouse();

    int newPosX = borderCheck(niftyMouse.getX() + offsetX, element.getWidth(), r.getWidth());
    element.setConstraintX(new SizeValue(newPosX + "px"));

    int newPosY = borderCheck(niftyMouse.getY() + offsetY, element.getHeight(), r.getHeight());
    element.setConstraintY(new SizeValue(newPosY + "px"));

    element.getParent().layoutElements();
  }
View Full Code Here

TOP

Related Classes of de.lessvoid.nifty.NiftyMouse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.