Fix mouse on menu line
[nikiroo-utils.git] / src / jexer / menu / TMenu.java
index 7cf6eb5d10d0ac2b5676f6bacc649a44c1065c84..b9641e1eab4a31fd0179ffed4cb53e4e040d66e8 100644 (file)
@@ -56,6 +56,29 @@ public final class TMenu extends TWindow {
      */
     boolean isSubMenu = false;
 
+    /**
+     * The X position of the menu's title.
+     */
+    private int titleX;
+
+    /**
+     * Set the menu title X position.
+     *
+     * @param titleX the position
+     */
+    public void setTitleX(final int titleX) {
+        this.titleX = titleX;
+    }
+
+    /**
+     * Get the menu title X position.
+     *
+     * @return the position
+     */
+    public int getTitleX() {
+        return titleX;
+    }
+
     /**
      * The shortcut and title.
      */