#include <llmenugl.h>
Public Member Functions | |
LLMenuHolderGL () | |
LLMenuHolderGL (const LLString &name, const LLRect &rect, BOOL mouse_opaque, U32 follows=FOLLOWS_NONE) | |
virtual | ~LLMenuHolderGL () |
virtual BOOL | hideMenus () |
void | reshape (S32 width, S32 height, BOOL called_from_parent=TRUE) |
void | setCanHide (BOOL can_hide) |
virtual void | draw () |
virtual BOOL | handleMouseDown (S32 x, S32 y, MASK mask) |
virtual BOOL | handleRightMouseDown (S32 x, S32 y, MASK mask) |
virtual const LLRect | getMenuRect () const |
virtual BOOL | hasVisibleMenu () const |
Static Public Member Functions | |
static void | setActivatedItem (LLMenuItemGL *item) |
Private Attributes | |
BOOL | mCanHide |
Static Private Attributes | |
static LLHandle< LLView > | sItemLastSelectedHandle |
static LLFrameTimer | sItemActivationTimer |
Definition at line 726 of file llmenugl.h.
LLMenuHolderGL::LLMenuHolderGL | ( | ) |
============================================================================ Class LLMenuHolderGL ============================================================================
Definition at line 4112 of file llmenugl.cpp.
References FALSE, mCanHide, LLView::setMouseOpaque(), sItemActivationTimer, LLFrameTimer::stop(), and TRUE.
LLMenuHolderGL::LLMenuHolderGL | ( | const LLString & | name, | |
const LLRect & | rect, | |||
BOOL | mouse_opaque, | |||
U32 | follows = FOLLOWS_NONE | |||
) |
Definition at line 4120 of file llmenugl.cpp.
References mCanHide, LLView::setMouseOpaque(), sItemActivationTimer, LLFrameTimer::stop(), and TRUE.
virtual LLMenuHolderGL::~LLMenuHolderGL | ( | ) | [inline, virtual] |
Definition at line 731 of file llmenugl.h.
BOOL LLMenuHolderGL::hideMenus | ( | ) | [virtual] |
Reimplemented in LLViewerMenuHolderGL.
Definition at line 4204 of file llmenugl.cpp.
References FALSE, LLView::getChildList(), LLView::getVisible(), hasVisibleMenu(), mCanHide, NULL, LLMenuGL::setKeyboardMode(), and LLView::setVisible().
Referenced by LLMenuItemGL::doIt(), LLFolderView::handleKeyHere(), handleMouseDown(), LLPieMenu::handleMouseUp(), handleRightMouseDown(), LLPieMenu::handleRightMouseUp(), LLFolderView::handleUnicodeCharHere(), LLViewerMenuHolderGL::hideMenus(), and reshape().
Reimplemented from LLView.
Definition at line 4181 of file llmenugl.cpp.
References LLView::getRect(), hideMenus(), and LLView::reshape().
void LLMenuHolderGL::setCanHide | ( | BOOL | can_hide | ) | [inline] |
void LLMenuHolderGL::draw | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 4129 of file llmenugl.cpp.
References ACTIVATE_HIGHLIGHT_TIME, LLMenuItemGL::buildDrawLabel(), LLMenuItemGL::draw(), LLView::draw(), LLMenuGL::drawBackground(), LLHandle< T >::get(), LLFrameTimer::getElapsedTimeF32(), LLMenuItemGL::getHighlightBGColor(), LLView::getLocalRect(), LLMenuItemGL::getMenu(), LLFrameTimer::getStarted(), lerp(), LLView::localRectToOtherView(), LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLUI::popMatrix(), LLUI::pushMatrix(), sItemActivationTimer, sItemLastSelectedHandle, LLUI::translate(), VALPHA, VBLUE, VGREEN, and VRED.
Reimplemented from LLView.
Definition at line 4159 of file llmenugl.cpp.
References LLView::childrenHandleMouseDown(), hideMenus(), and NULL.
Reimplemented from LLView.
Definition at line 4170 of file llmenugl.cpp.
References LLView::childrenHandleRightMouseDown(), hideMenus(), and NULL.
virtual const LLRect LLMenuHolderGL::getMenuRect | ( | ) | const [inline, virtual] |
Reimplemented in LLViewerMenuHolderGL.
Definition at line 742 of file llmenugl.h.
References LLView::getLocalRect().
Referenced by LLMenuGL::arrange(), LLMenuItemBranchGL::openMenu(), LLPieMenu::show(), and LLMenuGL::showPopup().
BOOL LLMenuHolderGL::hasVisibleMenu | ( | ) | const [virtual] |
Definition at line 4190 of file llmenugl.cpp.
References FALSE, LLView::getChildList(), LLView::getVisible(), NULL, and TRUE.
Referenced by hideMenus().
void LLMenuHolderGL::setActivatedItem | ( | LLMenuItemGL * | item | ) | [static] |
Definition at line 4233 of file llmenugl.cpp.
References LLView::getHandle(), sItemActivationTimer, sItemLastSelectedHandle, and LLFrameTimer::start().
Referenced by LLMenuItemBranchDownGL::handleAcceleratorKey(), and LLMenuGL::setItemLastSelected().
LLHandle< LLView > LLMenuHolderGL::sItemLastSelectedHandle [static, private] |
LLFrameTimer LLMenuHolderGL::sItemActivationTimer [static, private] |
Definition at line 749 of file llmenugl.h.
Referenced by draw(), LLMenuHolderGL(), and setActivatedItem().
BOOL LLMenuHolderGL::mCanHide [private] |
Definition at line 751 of file llmenugl.h.
Referenced by hideMenus(), LLMenuHolderGL(), and setCanHide().