Adds the isFocused instance var and changes the intersects function to public.
@@ -24,6 +24,8 @@ public class Component {
/** The function used to redraw the parent of the component. */
@Setter @NonNull protected Runnable redrawFunction = () -> {};
+ @Getter @Setter private boolean isFocused = false;
+
/**
* Constructs a new Component.
*
@@ -60,7 +62,7 @@ public class Component {
* @return
* Whether or not the point intersects this component.
*/
- protected boolean intersects(final Point point) {
+ public boolean intersects(final Point point) {
if (point == null) {
return false;
}
