Class ScaledElementBase

java.lang.Object
org.rusherhack.client.api.ui.ElementBase
org.rusherhack.client.api.ui.ScaledElementBase
Direct Known Subclasses:
HudElement, PanelBase

public abstract class ScaledElementBase extends ElementBase
An ElementBase that can be scaled
  • Constructor Details

    • ScaledElementBase

      public ScaledElementBase()
  • Method Details

    • getScale

      public double getScale()
      Returns:
      The scale of this element
    • getScaledWidth

      public double getScaledWidth()
      Returns:
      The width of this element multiplied by the scale
    • getScaledHeight

      public double getScaledHeight()
      Returns:
      The height of this element multiplied by the scale