Examples of intersectsWith()


Examples of cofh.lib.gui.element.ElementBase.intersectsWith()

    int wheelMovement = Mouse.getEventDWheel();

    if (wheelMovement != 0) {
      for (int i = elements.size(); i-- > 0;) {
        ElementBase c = elements.get(i);
        if (!c.isVisible() || !c.isEnabled() || !c.intersectsWith(mouseX, mouseY)) {
          continue;
        }
        if (c.onMouseWheel(mouseX, mouseY, wheelMovement)) {
          return;
        }
View Full Code Here

Examples of cofh.lib.gui.element.ElementBase.intersectsWith()

    mX -= guiLeft;
    mY -= guiTop;

    for (int i = elements.size(); i-- > 0;) {
      ElementBase c = elements.get(i);
      if (!c.isVisible() || !c.isEnabled() || !c.intersectsWith(mX, mY)) {
        continue;
      }
      if (c.onMousePressed(mX, mY, mouseButton)) {
        return;
      }
View Full Code Here

Examples of cofh.lib.gui.element.ElementBase.intersectsWith()

  protected ElementBase getElementAtPosition(int mX, int mY) {

    for (int i = elements.size(); i-- > 0;) {
      ElementBase element = elements.get(i);
      if (element.intersectsWith(mX, mY)) {
        return element;
      }
    }
    return null;
  }
View Full Code Here

Examples of cofh.lib.gui.element.TabBase.intersectsWith()

      if (!tab.isVisible() || tab.side == TabBase.RIGHT) {
        continue;
      }
      tab.currentShiftX = xShift;
      tab.currentShiftY = yShift;
      if (tab.intersectsWith(mX, mY, xShift, yShift)) {
        return tab;
      }
      yShift += tab.currentHeight;
    }
View Full Code Here

Examples of cofh.lib.gui.element.TabBase.intersectsWith()

      if (!tab.isVisible() || tab.side == TabBase.LEFT) {
        continue;
      }
      tab.currentShiftX = xShift;
      tab.currentShiftY = yShift;
      if (tab.intersectsWith(mX, mY, xShift, yShift)) {
        return tab;
      }
      yShift += tab.currentHeight;
    }
    return null;
View Full Code Here

Examples of com.pahimar.repackage.cofh.lib.gui.element.ElementBase.intersectsWith()

        int wheelMovement = Mouse.getEventDWheel();

        if (wheelMovement != 0) {
            for (int i = elements.size(); i-- > 0; ) {
                ElementBase c = elements.get(i);
                if (!c.isVisible() || !c.isEnabled() || !c.intersectsWith(mouseX, mouseY)) {
                    continue;
                }
                if (c.onMouseWheel(mouseX, mouseY, wheelMovement)) {
                    return;
                }
View Full Code Here

Examples of com.pahimar.repackage.cofh.lib.gui.element.ElementBase.intersectsWith()

        mX -= guiLeft;
        mY -= guiTop;

        for (int i = elements.size(); i-- > 0; ) {
            ElementBase c = elements.get(i);
            if (!c.isVisible() || !c.isEnabled() || !c.intersectsWith(mX, mY)) {
                continue;
            }
            if (c.onMousePressed(mX, mY, mouseButton)) {
                return;
            }
View Full Code Here

Examples of com.pahimar.repackage.cofh.lib.gui.element.ElementBase.intersectsWith()

    protected ElementBase getElementAtPosition(int mX, int mY) {

        for (int i = elements.size(); i-- > 0; ) {
            ElementBase element = elements.get(i);
            if (element.intersectsWith(mX, mY)) {
                return element;
            }
        }
        return null;
    }
View Full Code Here

Examples of com.pahimar.repackage.cofh.lib.gui.element.TabBase.intersectsWith()

            if (!tab.isVisible() || tab.side == TabBase.RIGHT) {
                continue;
            }
            tab.currentShiftX = xShift;
            tab.currentShiftY = yShift;
            if (tab.intersectsWith(mX, mY, xShift, yShift)) {
                return tab;
            }
            yShift += tab.currentHeight;
        }
View Full Code Here

Examples of com.pahimar.repackage.cofh.lib.gui.element.TabBase.intersectsWith()

            if (!tab.isVisible() || tab.side == TabBase.LEFT) {
                continue;
            }
            tab.currentShiftX = xShift;
            tab.currentShiftY = yShift;
            if (tab.intersectsWith(mX, mY, xShift, yShift)) {
                return tab;
            }
            yShift += tab.currentHeight;
        }
        return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.