You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
836 B
50 lines
836 B
package mightypork.rogue.bus.events;
|
|
|
|
|
|
import mightypork.utils.control.bus.Handleable;
|
|
import mightypork.utils.math.coord.Coord;
|
|
|
|
|
|
public class ScreenChangeEvent implements Handleable<ScreenChangeEvent.Listener> {
|
|
|
|
private boolean fullscreen;
|
|
private Coord screenSize;
|
|
private boolean fsChanged;
|
|
|
|
|
|
public ScreenChangeEvent(boolean fsChanged, boolean fullscreen, Coord size) {
|
|
this.fullscreen = fullscreen;
|
|
this.screenSize = size;
|
|
this.fsChanged = fsChanged;
|
|
}
|
|
|
|
|
|
public boolean isFullscreen()
|
|
{
|
|
return fullscreen;
|
|
}
|
|
|
|
|
|
public boolean fullscreenChanged()
|
|
{
|
|
return fsChanged;
|
|
}
|
|
|
|
|
|
public Coord getScreenSize()
|
|
{
|
|
return screenSize;
|
|
}
|
|
|
|
|
|
@Override
|
|
public void handleBy(Listener handler)
|
|
{
|
|
handler.receive(this);
|
|
}
|
|
|
|
public interface Listener {
|
|
|
|
public void receive(ScreenChangeEvent event);
|
|
}
|
|
}
|
|
|