From 92fbd4b4c5404c0d8c62e9778327f8ddde78052d Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 10 Sep 2002 10:50:04 +0000 Subject: raise and lower functions --- src/Basemenu.cc | 13 ++++++++++--- src/Basemenu.hh | 4 +++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/Basemenu.cc b/src/Basemenu.cc index 2f7de99..1d1abc2 100644 --- a/src/Basemenu.cc +++ b/src/Basemenu.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Basemenu.cc,v 1.29 2002/09/09 10:01:41 fluxgen Exp $ +// $Id: Basemenu.cc,v 1.30 2002/09/10 10:50:04 fluxgen Exp $ //use GNU extensions #ifndef _GNU_SOURCE @@ -160,7 +160,7 @@ m_alignment(ALIGNDONTCARE) { } -Basemenu::~Basemenu(void) { +Basemenu::~Basemenu() { XUnmapWindow(m_display, menu.window); if (shown && shown->windowID() == windowID()) @@ -254,8 +254,15 @@ int Basemenu::remove(unsigned int index) { return menuitems.size(); } +void Basemenu::raise() { + XRaiseWindow(BaseDisplay::getXDisplay(), windowID()); +} + +void Basemenu::lower() { + XLowerWindow(BaseDisplay::getXDisplay(), windowID()); +} -void Basemenu::update(void) { +void Basemenu::update() { I18n *i18n = I18n::instance(); if (i18n->multibyte()) { diff --git a/src/Basemenu.hh b/src/Basemenu.hh index 29bb3ac..9e87ef4 100644 --- a/src/Basemenu.hh +++ b/src/Basemenu.hh @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Basemenu.hh,v 1.16 2002/08/04 15:55:13 fluxgen Exp $ +// $Id: Basemenu.hh,v 1.17 2002/09/10 10:48:44 fluxgen Exp $ #ifndef BASEMENU_HH #define BASEMENU_HH @@ -63,6 +63,8 @@ public: inline void setAlignment(Alignment a) { m_alignment = a; } inline void setTorn() { torn = true; } inline void removeParent() { if (internal_menu) m_parent = 0; } + void raise(); + void lower(); /** @name event handlers */ -- cgit v0.11.2