X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fbackend%2FBackend.java;h=eaed7e64966228e6386d21349c757ae80efaa5e2;hb=505be508ae7d3fb48122be548b310a238cfb91eb;hp=d1863288c54dabd8dfe4f0bb5b59f9356397db8b;hpb=88a99379dca67603ee80819cb31716e52aa72362;p=fanfix.git diff --git a/src/jexer/backend/Backend.java b/src/jexer/backend/Backend.java index d186328..eaed7e6 100644 --- a/src/jexer/backend/Backend.java +++ b/src/jexer/backend/Backend.java @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (C) 2017 Kevin Lamonte + * Copyright (C) 2019 Kevin Lamonte * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -60,6 +60,13 @@ public interface Backend { */ public void flushScreen(); + /** + * Check if there are events in the queue. + * + * @return if true, getEvents() has something to return to the application + */ + public boolean hasEvents(); + /** * Classes must provide an implementation to get keyboard, mouse, and * screen resize events. @@ -89,4 +96,9 @@ public interface Backend { */ public void setListener(final Object listener); + /** + * Reload backend options from System properties. + */ + public void reloadOptions(); + }