Skip to main content

GUIUtils

class GUIUtils

Class responsible for determining touches based on a position, size and with an event.


public class GUIUtils

— Static Methods (7) —

NameDescription
boolean isTouchInside([Touch] touch, int x, int y, int width, int height)Returns true if the touch defined to be "touch" argument is equal (if the touch enters the area defined in the arguments) the X position to be "x" argument, the Y position to be "y" argument, the width to be "width" argument and the height to be "height" argument, false if not.
[Touch] determineTouch(int x, int y, int width, int height)Define a current touch area with its X position defined to be "x" argument, Y position to be "y" argument, width to be "width" argument and height to be "height" argument.
[Touch] determineTouch(int x, int y, int width, int height, [TouchFilter] touchFilter)Defines a current touch area with its X position defined to be "x" argument, Y position to be "y" argument, width to be "width" argument, height to be "height" argument and event("All", "Pressed", "Down", "Up", "DownAndPressed", "DownAndUp" or "PressedAndUp") to be "touchFilter" argument.
[Touch][] determineTouches(int x, int y, int width, int height)Defines an area of current touches with its X positions defined to be "x" argument, Y positions to be "y" argument, widths to be "width" argument and heights to be "height" argument.
[Touch][] determineTouches(int x, int y, int width, int height, [TouchFilter] touchFilter)Defines an area of current touches with its X positions defined to be "x" argument, Y positions to be "y" argument, widths to be "width" argument, heights to be "height" argument and events("All", "Pressed", "Down", "Up", "DownAndPressed", "DownAndUp" or "PressedAndUp") to be "touchFilter" argument.
List\<[Touch]> determineTouchList(int x, int y, int width, int height)Defines an area list of current touches with their X positions defined to be "x" argument, Y positions to be "y" argument, widths to be "width" argument and heights to be "height" argument.
List\<[Touch]> determineTouchList(int x, int y, int width, int height, [TouchFilter] touchFilter)Defines an area list of current touches with their X positions defined to be "x" argument, Y positions to be "y" argument, widths to be "width" argument, heights to be "height" argument and events("All", "Pressed", "Down", "Up", "DownAndPressed", "DownAndUp" or "PressedAndUp") to be "touchFilter" argument.