LLUI Class Reference

#include <llui.h>

Collaboration diagram for LLUI:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

static void initClass (LLControlGroup *config, LLControlGroup *colors, LLControlGroup *assets, LLImageProviderInterface *image_provider, LLUIAudioCallback audio_callback=NULL, const LLVector2 *scale_factor=NULL, const LLString &language=LLString::null)
static void cleanupClass ()
static void pushMatrix ()
static void popMatrix ()
static void loadIdentity ()
static void translate (F32 x, F32 y, F32 z=0.0f)
static LLString locateSkin (const LLString &filename)
static void pushClipRect (const LLRect &rect)
static void popClipRect ()
static void setCursorPositionScreen (S32 x, S32 y)
static void setCursorPositionLocal (LLView *viewp, S32 x, S32 y)
static void setScaleFactor (const LLVector2 &scale_factor)
static void setLineWidth (F32 width)
static LLUUID findAssetUUIDByName (const LLString &name)
static LLVector2 getWindowSize ()
static void setHtmlHelp (LLHtmlHelp *html_help)

Static Public Attributes

static LLControlGroupsConfigGroup = NULL
static LLControlGroupsColorsGroup = NULL
static LLControlGroupsAssetsGroup = NULL
static LLImageProviderInterfacesImageProvider = NULL
static LLUIAudioCallback sAudioCallback = NULL
static LLVector2 sGLScaleFactor
static LLWindowsWindow = NULL
static BOOL sShowXUINames = FALSE
static LLHtmlHelpsHtmlHelp = NULL
static std::stack< LLRectsClipRectStack

Static Private Member Functions

static void setScissorRegionScreen (const LLRect &rect)
static void setScissorRegionLocal (const LLRect &rect)

Detailed Description

Definition at line 150 of file llui.h.


Member Function Documentation

void LLUI::cleanupClass (  )  [static]

Definition at line 1549 of file llui.cpp.

Referenced by cleanup_app().

LLUUID LLUI::findAssetUUIDByName ( const LLString name  )  [static]

Definition at line 1699 of file llui.cpp.

References LLControlGroup::findString(), LLUUID::null, LLStringBase< char >::null, sAssetsGroup, and sConfigGroup.

Referenced by LLJoystickCameraZoom::LLJoystickCameraZoom(), LLButton::setImageDisabled(), LLButton::setImageDisabledSelected(), LLButton::setImageHoverSelected(), LLButton::setImageHoverUnselected(), LLButton::setImageOverlay(), LLButton::setImageSelected(), and LLButton::setImageUnselected().

LLVector2 LLUI::getWindowSize (  )  [static]

Definition at line 1690 of file llui.cpp.

References LLWindow::getSize(), LLVector2::mV, LLCoord::mX, LLCoord::mY, sGLScaleFactor, sWindow, VX, and VY.

Referenced by LLModalDialog::centerOnScreen().

void LLUI::initClass ( LLControlGroup config,
LLControlGroup colors,
LLControlGroup assets,
LLImageProviderInterface image_provider,
LLUIAudioCallback  audio_callback = NULL,
const LLVector2 scale_factor = NULL,
const LLString language = LLString::null 
) [static]

Definition at line 1528 of file llui.cpp.

References LLObservable::addListener(), f, LLControlGroup::getBOOL(), LLControlGroup::getColor(), LLControlGroup::getControl(), NULL, sAssetsGroup, sAudioCallback, sColorsGroup, sConfigGroup, sGLScaleFactor, show_xui_names_listener, sImageProvider, LLFontGL::sShadowColor, sShowXUINames, and sWindow.

Referenced by main().

void LLUI::loadIdentity (  )  [static]

Definition at line 1579 of file llui.cpp.

References LLCoord::mX, LLCoord::mY, LLCoordFont::mZ, and LLFontGL::sCurOrigin.

Referenced by hud_render_text().

LLString LLUI::locateSkin ( const LLString filename  )  [static]

Definition at line 1656 of file llui.cpp.

References LLControlGroup::controlExists(), LLDir::fileExists(), gDirUtilp, LLDir::getDirDelimiter(), LLDir::getExpandedFilename(), LLControlGroup::getString(), LL_PATH_APP_SETTINGS, LL_PATH_SKINS, LL_PATH_USER_SETTINGS, and sConfigGroup.

Referenced by idle_startup().

void LLUI::popClipRect (  )  [static]

Definition at line 1732 of file llui.cpp.

References sClipRectStack, and setScissorRegionScreen().

Referenced by LLClipRect::~LLClipRect(), and LLLocalClipRect::~LLLocalClipRect().

void LLUI::popMatrix (  )  [static]

Definition at line 1571 of file llui.cpp.

References glPopMatrix, LLFontGL::sCurOrigin, and LLFontGL::sOriginStack.

Referenced by LLViewerWindow::draw(), LLView::draw(), LLTabContainerVertical::draw(), LLTabContainer::draw(), LLNotifyBox::draw(), LLMenuHolderGL::draw(), LLView::drawChild(), LLScrollListCtrl::drawItems(), hud_render_text(), and LLHUDText::renderText().

void LLUI::pushClipRect ( const LLRect rect  )  [static]

Definition at line 1720 of file llui.cpp.

References LLRectBase< Type >::intersectWith(), sClipRectStack, and setScissorRegionScreen().

Referenced by LLClipRect::LLClipRect(), and LLLocalClipRect::LLLocalClipRect().

void LLUI::pushMatrix (  )  [static]

Definition at line 1564 of file llui.cpp.

References LLFontGL::sCurOrigin, and LLFontGL::sOriginStack.

Referenced by LLViewerWindow::draw(), LLView::draw(), LLTabContainerVertical::draw(), LLTabContainer::draw(), LLNotifyBox::draw(), LLMenuHolderGL::draw(), LLView::drawChild(), LLScrollListCtrl::drawItems(), hud_render_text(), and LLHUDText::renderText().

void LLUI::setCursorPositionLocal ( LLView viewp,
S32  x,
S32  y 
) [static]

Definition at line 1647 of file llui.cpp.

References LLView::localPointToScreen(), S32, and setCursorPositionScreen().

Referenced by LLFloaterImagePreview::handleHover(), LLFloaterAnimPreview::handleHover(), LLWorldMapView::handleMouseUp(), and LLPieMenu::show().

void LLUI::setCursorPositionScreen ( S32  x,
S32  y 
) [static]

Definition at line 1634 of file llui.cpp.

References LLWindow::convertCoords(), LLView::getWindow(), llround(), LLVector2::mV, S32, LLWindow::setCursorPosition(), sGLScaleFactor, VX, and VY.

Referenced by LLManipTranslate::handleMouseDownOnPart(), LLToolCamera::handleMouseUp(), LLViewerWindow::moveCursorToCenter(), LLToolGrab::onMouseCaptureLost(), and setCursorPositionLocal().

void LLUI::setHtmlHelp ( LLHtmlHelp html_help  )  [static]

Definition at line 1714 of file llui.cpp.

References sHtmlHelp.

void LLUI::setLineWidth ( F32  width  )  [static]

Definition at line 1628 of file llui.cpp.

References lerp(), LLVector2::mV, sGLScaleFactor, VX, and VY.

Referenced by LLViewerWindow::draw(), LLPieMenu::draw(), LLFloater::draw(), drawDot(), LLViewBorder::drawOnePixelLines(), gl_stippled_line_3d(), LLManipTranslate::renderArrow(), LLManip::renderGuidelines(), LLViewerParcelMgr::renderRect(), LLHUDText::renderText(), LLManipTranslate::renderTranslationHandles(), LLViewerObject::setLineWidthForWindowSize(), and LLManip::setupSnapGuideRenderPass().

void LLUI::setScaleFactor ( const LLVector2 scale_factor  )  [static]

Definition at line 1622 of file llui.cpp.

References sGLScaleFactor.

Referenced by LLViewerWindow::LLViewerWindow(), and LLViewerWindow::reshape().

void LLUI::setScissorRegionLocal ( const LLRect rect  )  [static, private]

Definition at line 1601 of file llui.cpp.

References LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), glScissor, llmax(), llround(), LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLVector2::mV, LLCoord::mX, LLCoord::mY, S32, LLFontGL::sCurOrigin, sGLScaleFactor, stop_glerror, VX, VY, x, and y.

void LLUI::setScissorRegionScreen ( const LLRect rect  )  [static, private]

Definition at line 1588 of file llui.cpp.

References LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), glScissor, llround(), LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLVector2::mV, S32, sGLScaleFactor, stop_glerror, VX, VY, x, and y.

Referenced by popClipRect(), and pushClipRect().

void LLUI::translate ( F32  x,
F32  y,
F32  z = 0.0f 
) [static]

Definition at line 1555 of file llui.cpp.

References glTranslatef, LLCoord::mX, LLCoord::mY, LLCoordFont::mZ, S32, and LLFontGL::sCurOrigin.

Referenced by LLViewerWindow::draw(), LLView::draw(), LLTabContainerVertical::draw(), LLTabContainer::draw(), LLNotifyBox::draw(), LLMenuHolderGL::draw(), LLView::drawChild(), LLScrollListCtrl::drawItems(), hud_render_text(), and LLHUDText::renderText().


Member Data Documentation

LLControlGroup * LLUI::sAssetsGroup = NULL [static]

Definition at line 186 of file llui.h.

Referenced by LLSlider::draw(), LLColumnHeader::draw(), LLScrollbar::draw(), findAssetUUIDByName(), LLIconCtrl::fromXML(), initClass(), LLComboBox::LLComboBox(), LLIconCtrl::LLIconCtrl(), and LLScrollListText::LLScrollListText().

LLUIAudioCallback LLUI::sAudioCallback = NULL [static]

Definition at line 188 of file llui.h.

Referenced by initClass(), and make_ui_sound().

std::stack< LLRect > LLUI::sClipRectStack [static]

Definition at line 193 of file llui.h.

Referenced by popClipRect(), and pushClipRect().

LLControlGroup * LLUI::sColorsGroup = NULL [static]

Definition at line 185 of file llui.h.

Referenced by LLView::addColorXML(), LLFloater::buildButtons(), LLAlertDialog::createDialog(), LLTextBox::draw(), LLStatusBar::draw(), LLModalDialog::draw(), LLPieMenu::draw(), LLMenuGL::draw(), LLFloater::draw(), LLButton::draw(), LLAlertDialog::draw(), LLTextEditor::drawClippedSegment(), LLCheckBoxCtrl::fromXML(), LLUICtrlFactory::getAttributeColor(), LLFocusMgr::getFocusColor(), LLPanel::init(), LLButton::init(), initClass(), LLButton::LLButton(), LLNotifyBox::LLNotifyBox(), LLSearchEditor::LLSearchEditor(), LLSquareButton::LLSquareButton(), LLView::saveColorToXML(), and LLPanel::setPanelParameters().

LLControlGroup * LLUI::sConfigGroup = NULL [static]

Definition at line 184 of file llui.h.

Referenced by LLFloater::applyRectControl(), LLPanelMsgs::buildLists(), LLMenuBarGL::checkMenuTrigger(), LLView::createRect(), LLTextBox::draw(), LLStatusBar::draw(), LLModalDialog::draw(), LLPieMenu::draw(), LLMenuGL::draw(), LLFloater::draw(), LLComboBox::draw(), LLAlertDialog::draw(), LLScrollListCtrl::drawItems(), findAssetUUIDByName(), LLView::findControl(), LLView::focusNextItem(), LLView::focusPrevItem(), LLResizeHandle::handleHover(), LLResizeBar::handleHover(), LLMenuBarGL::handleKeyHere(), LLScrollListCtrl::handleUnicodeCharHere(), initClass(), LLColumnHeader::LLColumnHeader(), LLDragHandle::LLDragHandle(), LLResizeHandle::LLResizeHandle(), locateSkin(), make_ui_sound(), LLComboBox::setAllowTextEntry(), LLComboBox::setButtonVisible(), LLView::setControlValue(), LLUICtrlFactory::setupPaths(), and LLPanel::storeRectControl().

LLVector2 LLUI::sGLScaleFactor [static]

Definition at line 189 of file llui.h.

Referenced by LLViewerWindow::draw(), LLLineEditor::draw(), LLButton::draw(), LLTextEditor::drawCursor(), getWindowSize(), gl_rect_2d_offset_local(), LLViewerWindow::handlePerFrameHover(), LLToolSelectRect::handleRectangleSelection(), initClass(), main(), render_ui_2d(), LLViewerWindow::reshape(), setCursorPositionScreen(), setLineWidth(), setScaleFactor(), setScissorRegionLocal(), setScissorRegionScreen(), and LLComboBox::showList().

LLHtmlHelp * LLUI::sHtmlHelp = NULL [static]

Definition at line 192 of file llui.h.

Referenced by clicked_help(), and setHtmlHelp().

LLImageProviderInterface * LLUI::sImageProvider = NULL [static]

Definition at line 187 of file llui.h.

Referenced by LLScrollListCtrl::addElement(), LLSlider::draw(), LLColumnHeader::draw(), LLScrollbar::draw(), initClass(), LLComboBox::LLComboBox(), LLResizeHandle::LLResizeHandle(), LLScrollListText::LLScrollListText(), LLStyle::setImage(), LLIconCtrl::setImage(), LLButton::setImageDisabledID(), LLButton::setImageDisabledSelectedID(), LLButton::setImageHoverSelectedID(), LLButton::setImageHoverUnselectedID(), LLButton::setImageOverlay(), LLButton::setImageSelectedID(), LLButton::setImageUnselectedID(), and LLViewBorder::setTexture().

BOOL LLUI::sShowXUINames = FALSE [static]

Definition at line 191 of file llui.h.

Referenced by LLUICtrlFactory::buildFloater(), LLUICtrlFactory::buildMenu(), LLUICtrlFactory::buildPanel(), LLUICtrlFactory::buildPieMenu(), LLShowXUINamesListener::handleEvent(), LLViewerWindow::handlePerFrameHover(), LLView::handleToolTip(), LLComboBox::handleToolTip(), and initClass().

LLWindow * LLUI::sWindow = NULL [static]

Definition at line 190 of file llui.h.

Referenced by LLView::getWindow(), getWindowSize(), LLView::handleHover(), initClass(), and main().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:54 2010 for Second Life Viewer by  doxygen 1.4.7