# Functions
Add adds a set of spaces to the rtree.
Clear resets the default collision tree.
EventOn converts a generic positioned mouse event into its variant indicating it occurred on a CallerID targetted entity.
GetEventName returns a string event name given some mobile/mouse information.
HitLabel acts like hits, but reutrns the first space within hits that matches one of the input labels.
Hits returns the set of spaces which are colliding with the passed in space.
NewEvent creates an event.
PhaseCollision binds to the entity behind the space's CID so that it will receive MouseCollisionStart and MouseCollisionStop events, appropriately when the mouse begins to hover or stops hovering over the input space.
Remove removes a space from the rtree.
ShiftSpace adds x and y to a space and updates its position in the collision rtree that should not be a package global.
UpdateSpace resets a space's location to a given rtreego.Rect.
# Constants
Valid Button event types.
Valid Button event types.
Valid Button event types.
Valid Button event types.
Valid Button event types.
Valid Button event types.
Valid Button event types.
Valid Button event types.
Min and Max Z layer inform what range of z layer values will be checked on mouse collision interactions.
Min and Max Z layer inform what range of z layer values will be checked on mouse collision interactions.
# Variables
Click is triggered when a Release follows a press for the same mouse key without other mouse key presses intertwining.
DefaultTree is a collision tree intended to be used by default if no other is instantiated.
Drag is triggered when the mouse is moved.
LastEvent is the last triggered mouse event, tracked for continuous mouse responsiveness on events that don't take in a mouse event.
LastPress is the last triggered mouse event, where the mouse event was a press.
Press is triggered when a mouse key is pressed down.
The 'On' Variants of all mouse events are triggered when a mouse event occurs on a specific entity in a mouse collision tree.
Relative variants are like 'On' variants, but their mouse position data is relative to the window's current viewport.
Release is triggered when a mouse key, pressed, is released.
ScrollDown is triggered when a mouse's scroll wheel scrolls downward.
ScrollUp is triggered when a mouse's scroll wheel scrolls upward.
MouseCollisionStart/Stop: see collision Start/Stop, for mouse collision.
MouseCollisionStart/Stop: see collision Start/Stop, for mouse collision.
# Structs
CollisionPhase is a component that can be placed into another struct to enable PhaseCollision on the struct.
An Event is passed in through all Mouse related event bindings to indicate what type of mouse event was triggered, where it was triggered, and which mouse button it concerns.
# Type aliases
Button represents a mouse interaction type, like a left button or mouse wheel movement.