Class OnResolutionChangeEvent

java.lang.Object
com.avrix.events.Event
com.avrix.events.OnResolutionChangeEvent

public abstract class OnResolutionChangeEvent extends Event
Triggered when game resolution has changed.
  • Constructor Details

    • OnResolutionChangeEvent

      public OnResolutionChangeEvent()
  • Method Details

    • getEventName

      public String getEventName()
      Getting the event name
      Specified by:
      getEventName in class Event
      Returns:
      name of the event being implemented
    • handleEvent

      public abstract void handleEvent(Integer oldWidth, Integer oldHeight, Integer newWidth, Integer newHeight)
      Called Event Handling Method
      Parameters:
      oldWidth - The old width of the screen.
      oldHeight - The old height of the screen.
      newWidth - The new width of the screen.
      newHeight - The new height of the screen.