From dc3df3edd5843bde0c1335d6a8e460b2c832aa48 Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Sat, 17 Jun 2017 08:12:18 +0300 Subject: full project files --- .../cpw/mods/fml/client/config/HoverChecker.html | 344 +++++++++++++++++++++ 1 file changed, 344 insertions(+) create mode 100644 javadoc/cpw/mods/fml/client/config/HoverChecker.html (limited to 'javadoc/cpw/mods/fml/client/config/HoverChecker.html') diff --git a/javadoc/cpw/mods/fml/client/config/HoverChecker.html b/javadoc/cpw/mods/fml/client/config/HoverChecker.html new file mode 100644 index 0000000..a36ced1 --- /dev/null +++ b/javadoc/cpw/mods/fml/client/config/HoverChecker.html @@ -0,0 +1,344 @@ + + + + + +HoverChecker (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
cpw.mods.fml.client.config
+

Class HoverChecker

+
+
+ +
+
    +
  • +
    +
    +
    public class HoverChecker
    +extends java.lang.Object
    +
    This class implements an easy way to check if the mouse has hovered within a certain region of the screen for a given + period of time. The region can be defined manually or by supplying a GuiButton object.
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      HoverChecker(GuiButton button, + int threshold) 
      HoverChecker(int top, + int bottom, + int left, + int right, + int threshold) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      booleancheckHover(int mouseX, + int mouseY) +
      Checks if the mouse is in the hover region.
      +
      booleancheckHover(int mouseX, + int mouseY, + boolean canHover) +
      Checks if the mouse is in the hover region.
      +
      voidresetHoverTimer() +
      Manually resets the hover timer.
      +
      voidupdateBounds(int top, + int bottom, + int left, + int right) +
      Call this method if the intended region has changed such as if the region must follow a scrolling list.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HoverChecker

        +
        public HoverChecker(int top,
        +            int bottom,
        +            int left,
        +            int right,
        +            int threshold)
        +
      • +
      + + + +
        +
      • +

        HoverChecker

        +
        public HoverChecker(GuiButton button,
        +            int threshold)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        updateBounds

        +
        public void updateBounds(int top,
        +                int bottom,
        +                int left,
        +                int right)
        +
        Call this method if the intended region has changed such as if the region must follow a scrolling list. + It is not necessary to call this method if a GuiButton defines the hover region.
        +
      • +
      + + + +
        +
      • +

        checkHover

        +
        public boolean checkHover(int mouseX,
        +                 int mouseY)
        +
        Checks if the mouse is in the hover region. If the specified time period has elapsed the method returns true. + The hover timer is reset if the mouse is not within the region.
        +
      • +
      + + + +
        +
      • +

        checkHover

        +
        public boolean checkHover(int mouseX,
        +                 int mouseY,
        +                 boolean canHover)
        +
        Checks if the mouse is in the hover region. If the specified time period has elapsed the method returns true. + The hover timer is reset if the mouse is not within the region.
        +
      • +
      + + + +
        +
      • +

        resetHoverTimer

        +
        public void resetHoverTimer()
        +
        Manually resets the hover timer.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + -- cgit v1.2.3