X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTWindow.java;fp=src%2Fjexer%2FTWindow.java;h=cde0113a009b01a26c397b4badf814cb7281532f;hb=fe0770f988e64fc0ccafd3d3b086b4a0eb559d3b;hp=406eb7897a21a152329dbfc9c6ddee3bd52251aa;hpb=df602ccf5e32585c26dc618dd3b4a759b6820943;p=fanfix.git diff --git a/src/jexer/TWindow.java b/src/jexer/TWindow.java index 406eb78..cde0113 100644 --- a/src/jexer/TWindow.java +++ b/src/jexer/TWindow.java @@ -547,6 +547,27 @@ public class TWindow extends TWidget { // General behavior ------------------------------------------------------- // ------------------------------------------------------------------------ + /** + * See if this window is undergoing any movement/resize/etc. + * + * @return true if the window is moving + */ + public boolean inMovements() { + if (inWindowResize || inWindowMove || inKeyboardResize) { + return true; + } + return false; + } + + /** + * Stop any pending movement/resize/etc. + */ + public void stopMovements() { + inWindowResize = false; + inWindowMove = false; + inKeyboardResize = false; + } + /** * Returns true if this window is modal. *