X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTWindow.java;fp=src%2Fjexer%2FTWindow.java;h=16945496e1f792d526240f3982aca67fc0f8a6a9;hb=9696a8f6da9a0d204740420d6d8571176ab81944;hp=e50e16fd1c5a9eec4f6b45c4e836a5d31b6bbdec;hpb=c1d8e2b874088d4336bd3ba0a04623176d2039a0;p=fanfix.git diff --git a/src/jexer/TWindow.java b/src/jexer/TWindow.java index e50e16f..1694549 100644 --- a/src/jexer/TWindow.java +++ b/src/jexer/TWindow.java @@ -91,6 +91,11 @@ public class TWindow extends TWidget { */ public static final int HIDEONCLOSE = 0x40; + /** + * Menus cannot be used when this window is active (default no). + */ + public static final int OVERRIDEMENU = 0x80; + // ------------------------------------------------------------------------ // Variables -------------------------------------------------------------- // ------------------------------------------------------------------------ @@ -1251,6 +1256,20 @@ public class TWindow extends TWidget { return false; } + /** + * Returns true if this window does not want menus to work while it is + * visible. + * + * @return true if this window does not want menus to work while it is + * visible + */ + public final boolean hasOverriddenMenu() { + if ((flags & OVERRIDEMENU) != 0) { + return true; + } + return false; + } + /** * Retrieve the background color. *