#include "llrect.h"
#include "llcontrol.h"
#include "llcoord.h"
#include "llhtmlhelp.h"
#include "llgl.h"
#include <stack>
Include dependency graph for llui.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Copyright (c) 2001-2007, Linden Research, Inc.
Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2
There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception
By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.
ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$
Definition in file llui.h.
typedef enum e_rounded_edge ERoundedEdge |
typedef enum e_widget_type EWidgetType |
typedef void(*) LLUIAudioCallback(const LLUUID &uuid) |
enum e_rounded_edge |
enum e_widget_type |
void gl_arc_2d | ( | F32 | center_x, | |
F32 | center_y, | |||
F32 | radius, | |||
S32 | steps, | |||
BOOL | filled, | |||
F32 | start_angle, | |||
F32 | end_angle | |||
) |
Definition at line 736 of file llui.cpp.
References cosf, f, F_TWO_PI, glBegin, glEnd, glPopMatrix, glTranslatef, glVertex2f, sinf, x, and y.
Referenced by LLManipRotate::renderSnapGuides().
Definition at line 779 of file llui.cpp.
References f, F_TWO_PI, glBegin, glEnd, glPopMatrix, glTranslatef, glVertex2f, x, and y.
Referenced by LLPieMenu::draw(), LLManipRotate::render(), and LLManipRotate::renderSnapGuides().
Definition at line 413 of file llui.cpp.
References LLImageGL::getHeight(), LLImageGL::getWidth(), and gl_draw_scaled_rotated_image().
Referenced by LLButton::draw(), LLFloaterColorPicker::draw(), LLFolderViewItem::draw(), LLJoystickCameraRotate::draw(), LLJoystickCameraZoom::draw(), LLNetMap::draw(), LLResizeHandle::draw(), LLToolGun::draw(), LLWorldMapView::drawAvatar(), drawDot(), LLWorldMapView::drawImage(), LLWorldMapView::drawImageStack(), and LLScrollListIcon::drawToWidth().
void gl_draw_rotated_image | ( | S32 | x, | |
S32 | y, | |||
F32 | degrees, | |||
LLImageGL * | image, | |||
const LLColor4 & | color = UI_VERTEX_COLOR | |||
) |
Definition at line 605 of file llui.cpp.
References LLImageGL::getHeight(), LLImageGL::getWidth(), and gl_draw_scaled_rotated_image().
void gl_draw_scaled_image | ( | S32 | x, | |
S32 | y, | |||
S32 | width, | |||
S32 | height, | |||
LLImageGL * | image, | |||
const LLColor4 & | color = UI_VERTEX_COLOR | |||
) |
Definition at line 418 of file llui.cpp.
References f, and gl_draw_scaled_rotated_image().
Referenced by LLButton::draw(), LLComboBox::draw(), LLFloaterAuction::draw(), LLFloaterPostcard::draw(), LLFloaterSnapshot::draw(), LLIconCtrl::draw(), LLPanelLogin::draw(), LLPreviewTexture::draw(), LLFloaterTexturePicker::draw(), LLTextureCtrl::draw(), and LLTextEditor::drawText().
void gl_draw_scaled_image_inverted | ( | S32 | x, | |
S32 | y, | |||
S32 | width, | |||
S32 | height, | |||
LLImageGL * | image, | |||
const LLColor4 & | color = UI_VERTEX_COLOR | |||
) |
Definition at line 656 of file llui.cpp.
References LLImageGL::bind(), f, glBegin, glColor4fv, glEnd, glPopMatrix, glTranslatef, llendl, llwarns, LLColor4::mV, and NULL.
void gl_draw_scaled_image_with_border | ( | S32 | x, | |
S32 | y, | |||
S32 | border_width, | |||
S32 | border_height, | |||
S32 | width, | |||
S32 | height, | |||
LLImageGL * | image, | |||
const LLColor4 & | color, | |||
BOOL | solid_color = FALSE | |||
) |
Definition at line 423 of file llui.cpp.
References LLImageGL::bind(), f, LLImageGL::getHeight(), LLImageGL::getWidth(), glBegin, glColor4fv, glEnd, glPopMatrix, glTranslatef, llendl, llfloor(), llmin(), llwarns, LLColor4::mV, NULL, S32, and stop_glerror.
Referenced by LLButton::draw(), LLConsole::draw(), LLProgressView::draw(), LLScrollbar::draw(), LLSlider::draw(), LLButton::drawBorder(), and LLManip::renderXYZ().
void gl_draw_scaled_rotated_image | ( | S32 | x, | |
S32 | y, | |||
S32 | width, | |||
S32 | height, | |||
F32 | degrees, | |||
LLImageGL * | image, | |||
const LLColor4 & | color = UI_VERTEX_COLOR | |||
) |
Definition at line 610 of file llui.cpp.
References LLImageGL::bind(), f, glBegin, glColor4fv, glEnd, glPopMatrix, glRotatef, glTranslatef, llendl, llwarns, LLColor4::mV, and NULL.
Referenced by LLFolderViewItem::draw(), LLTracker::drawMarker(), LLWorldMapView::drawTrackingArrow(), gl_draw_image(), gl_draw_rotated_image(), and gl_draw_scaled_image().
Definition at line 147 of file llui.cpp.
References glBegin, glColor4fv, glEnd, LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, LLRectBase< Type >::mTop, and LLColor4::mV.
Referenced by LLColorSwatchCtrl::draw(), LLFloaterTexturePicker::draw(), and LLTextureCtrl::draw().
void gl_drop_shadow | ( | S32 | left, | |
S32 | top, | |||
S32 | right, | |||
S32 | bottom, | |||
const LLColor4 & | start_color, | |||
S32 | lines | |||
) |
Definition at line 257 of file llui.cpp.
References glBegin, glColor4fv, glEnd, LLColor4::mV, stop_glerror, and VALPHA.
Referenced by LLAlertDialog::draw(), LLFloater::draw(), LLSnapshotLivePreview::draw(), LLMenuGL::draw(), LLModalDialog::draw(), LLStatusBar::draw(), and LLTextBox::draw().
Definition at line 338 of file llui.cpp.
References gGLManager, glBegin, glColor4fv, glEnd, LLGLManager::mATIOffsetVerticalLines, and LLColor4::mV.
Definition at line 319 of file llui.cpp.
References gGLManager, glBegin, glEnd, and LLGLManager::mATIOffsetVerticalLines.
Definition at line 248 of file llui.cpp.
References gl_rect_2d(), glColor4fv, LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, LLRectBase< Type >::mTop, and LLColor4::mV.
Definition at line 127 of file llui.h.
References gl_rect_2d(), LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, and LLRectBase< Type >::mTop.
Definition at line 186 of file llui.cpp.
References gGLManager, glBegin, glEnd, LLGLManager::mATIOffsetVerticalLines, and stop_glerror.
Definition at line 861 of file llui.cpp.
References f, FALSE, first, gl_rect_2d(), glPolygonStipple, i, j, S32, and TRUE.
Referenced by LLColorSwatchCtrl::draw(), LLFloaterImagePreview::draw(), LLFloaterImport::draw(), LLPreviewTexture::draw(), LLFloaterTexturePicker::draw(), and LLTextureCtrl::draw().
Definition at line 132 of file llui.h.
References gl_rect_2d_offset_local(), LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, and LLRectBase< Type >::mTop.
void gl_rect_2d_offset_local | ( | S32 | left, | |
S32 | top, | |||
S32 | right, | |||
S32 | bottom, | |||
S32 | pixel_offset = 0 , |
|||
BOOL | filled = TRUE | |||
) |
Definition at line 168 of file llui.cpp.
References gl_rect_2d(), glPopMatrix, llfloor(), LLCoord::mX, LLCoord::mY, LLFontGL::sCurOrigin, LLUI::sGLScaleFactor, VX, and VY.
void gl_rect_2d_offset_local | ( | S32 | left, | |
S32 | top, | |||
S32 | right, | |||
S32 | bottom, | |||
const LLColor4 & | color, | |||
S32 | pixel_offset = 0 , |
|||
BOOL | filled = TRUE | |||
) |
Definition at line 162 of file llui.cpp.
References gl_rect_2d_offset_local(), glColor4fv, and LLColor4::mV.
Definition at line 1022 of file llui.cpp.
References glBegin, and glEnd.
Referenced by LLPreviewAnimation::render(), LLImagePreviewAvatar::render(), LLImagePreviewSculpted::render(), LLTexLayerSet::render(), LLTexLayer::render(), LLTexLayerParamAlpha::render(), LLTexLayer::renderAlphaMasks(), and LLTexLayerSet::renderBump().
Definition at line 1003 of file llui.cpp.
References f, glBegin, and glEnd.
Referenced by LLColorSwatchCtrl::draw(), LLProgressView::draw(), LLTexLayerSet::render(), LLTexLayer::render(), LLTexLayerParamAlpha::render(), LLVisualParamHint::render(), render_disconnected_background(), LLTexLayer::renderAlphaMasks(), and LLTexLayer::renderImageRaw().
Definition at line 718 of file llui.cpp.
References glBegin, glColor4fv, glEnd, glLogicOp, stop_glerror, and LLColor4::white.
void gl_ring | ( | F32 | radius, | |
F32 | width, | |||
const LLColor4 & | center_color, | |||
const LLColor4 & | side_color, | |||
S32 | steps, | |||
BOOL | render_center | |||
) |
Definition at line 840 of file llui.cpp.
References f, gl_deep_circle(), gl_washer_2d(), glColor4fv, glPopMatrix, glTranslatef, and LLColor4::mV.
Referenced by LLManipRotate::render(), and LLManipRotate::renderActiveRing().
void gl_segmented_rect_2d_fragment_tex | ( | const S32 | left, | |
const S32 | top, | |||
const S32 | right, | |||
const S32 | bottom, | |||
const S32 | texture_width, | |||
const S32 | texture_height, | |||
const S32 | border_size, | |||
const F32 | start_fragment, | |||
const F32 | end_fragment, | |||
const U32 | edges = ROUNDED_RECT_ALL | |||
) |
Definition at line 1190 of file llui.cpp.
References f, glBegin, glEnd, glPopMatrix, glTranslatef, height, llabs(), llclamp(), llmax(), llmin(), LLVector2::mV, ROUNDED_RECT_BOTTOM, ROUNDED_RECT_LEFT, ROUNDED_RECT_RIGHT, ROUNDED_RECT_TOP, S32, VX, VY, width, and LLVector2::zero.
Referenced by LLFastTimerView::draw().
void gl_segmented_rect_2d_tex | ( | const S32 | left, | |
const S32 | top, | |||
const S32 | right, | |||
const S32 | bottom, | |||
const S32 | texture_width, | |||
const S32 | texture_height, | |||
const S32 | border_size, | |||
const U32 | edges = ROUNDED_RECT_ALL | |||
) |
Definition at line 1032 of file llui.cpp.
References f, glBegin, glEnd, glPopMatrix, glTranslatef, glVertex2f, height, llabs(), llmin(), LLVector2::mV, ROUNDED_RECT_BOTTOM, ROUNDED_RECT_LEFT, ROUNDED_RECT_RIGHT, ROUNDED_RECT_TOP, S32, VX, VY, width, and LLVector2::zero.
Referenced by LLFolderViewItem::draw(), LLHoverView::draw(), LLOverlayBar::draw(), LLNotifyBox::drawBackground(), and LLScrollListText::drawToWidth().
void gl_segmented_rect_3d_tex | ( | const LLVector2 & | border_scale, | |
const LLVector3 & | border_width, | |||
const LLVector3 & | border_height, | |||
const LLVector3 & | width_vec, | |||
const LLVector3 & | height_vec, | |||
U32 | edges = ROUNDED_RECT_ALL | |||
) |
Definition at line 1380 of file llui.cpp.
References f, glBegin, glEnd, LLVector3::mV, LLVector2::mV, ROUNDED_RECT_BOTTOM, ROUNDED_RECT_LEFT, ROUNDED_RECT_RIGHT, ROUNDED_RECT_TOP, VX, VY, and LLVector3::zero.
Referenced by gl_segmented_rect_3d_tex_top(), and LLHUDText::renderText().
void gl_segmented_rect_3d_tex_top | ( | const LLVector2 & | border_scale, | |
const LLVector3 & | border_width, | |||
const LLVector3 & | border_height, | |||
const LLVector3 & | width_vec, | |||
const LLVector3 & | height_vec | |||
) |
Definition at line 1512 of file llui.cpp.
References gl_segmented_rect_3d_tex(), and ROUNDED_RECT_TOP.
Referenced by LLHUDText::renderText().
Definition at line 132 of file llui.cpp.
References f, glOrtho, and stop_glerror.
Referenced by LLViewerWindow::setup2DRender().
void gl_stippled_line_3d | ( | const LLVector3 & | start, | |
const LLVector3 & | end, | |||
const LLColor4 & | color, | |||
F32 | phase = 0.f | |||
) |
Definition at line 694 of file llui.cpp.
References end, f, glBegin, glColor4f, glEnd, glLineStipple, LLColor4::mV, S32, LLUI::setLineWidth(), start, VALPHA, VBLUE, VGREEN, and VRED.
Referenced by LLManipScale::renderGuidelinesPart().
void gl_triangle_2d | ( | S32 | x1, | |
S32 | y1, | |||
S32 | x2, | |||
S32 | y2, | |||
S32 | x3, | |||
S32 | y3, | |||
const LLColor4 & | color, | |||
BOOL | filled | |||
) |
Definition at line 359 of file llui.cpp.
References glBegin, glColor4fv, glEnd, and LLColor4::mV.
Referenced by LLFloaterColorPicker::draw(), and LLSlider::draw().
void gl_washer_2d | ( | F32 | outer_radius, | |
F32 | inner_radius, | |||
S32 | steps, | |||
const LLColor4 & | inner_color, | |||
const LLColor4 & | outer_color | |||
) |
Definition at line 896 of file llui.cpp.
References COS_DELTA, DELTA, F_TWO_PI, glBegin, glColor4fv, glEnd, glVertex2f, LLColor4::mV, and SIN_DELTA.
Referenced by LLPieMenu::draw(), gl_ring(), and LLManipRotate::render().
void gl_washer_segment_2d | ( | F32 | outer_radius, | |
F32 | inner_radius, | |||
F32 | start_radians, | |||
F32 | end_radians, | |||
S32 | steps, | |||
const LLColor4 & | inner_color, | |||
const LLColor4 & | outer_color | |||
) |
Definition at line 933 of file llui.cpp.
References COS_DELTA, DELTA, glBegin, glColor4fv, glEnd, glVertex2f, LLColor4::mV, and SIN_DELTA.
Referenced by LLPieMenu::draw(), LLPieMenu::drawBackground(), and LLWorldMapView::drawTrackingCircle().
void gl_washer_spokes_2d | ( | F32 | outer_radius, | |
F32 | inner_radius, | |||
S32 | count, | |||
const LLColor4 & | inner_color, | |||
const LLColor4 & | outer_color | |||
) |
Definition at line 968 of file llui.cpp.
References COS_DELTA, DELTA, F_TWO_PI, glBegin, glColor4fv, glEnd, glVertex2f, LLColor4::mV, and SIN_DELTA.
Referenced by LLPieMenu::draw().
Definition at line 87 of file llui.cpp.
References LLUUID::isNull(), llendl, llinfos, llwarns, NULL, LLUI::sAudioCallback, and LLUI::sConfigGroup.
Referenced by add_duplicate(), LLTextEditor::addChar(), LLIMMgr::addMessage(), LLFloater::close(), derez_objects(), LLToolDragAndDrop::dropObject(), LLFloaterWorldMap::fly(), LLModalDialog::handleDoubleClick(), LLPieMenu::handleHover(), LLRadioGroup::handleKeyHere(), LLButton::handleMouseDown(), LLFolderViewItem::handleMouseDown(), LLMenuItemBranchDownGL::handleMouseDown(), LLModalDialog::handleMouseDown(), LLSlider::handleMouseDown(), LLTextBox::handleMouseDown(), LLButton::handleMouseUp(), LLMenuItemGL::handleMouseUp(), LLMenuItemBranchGL::handleMouseUp(), LLPieMenu::handleMouseUp(), LLSlider::handleMouseUp(), LLTextBox::handleMouseUp(), LLFolderViewItem::handleRightMouseDown(), LLPieMenu::hide(), LLTextEditor::insertStringNoUndo(), LLPanelFriends::onClickIM(), LLButton::onCommit(), LLFloaterNewIM::onStart(), LLFloater::open(), process_teleport_start(), LLSelectMgr::repeatDuplicate(), LLLineEditor::reportBadKeystroke(), LLTextEditor::reportBadKeystroke(), LLSliderCtrl::reportInvalidData(), LLSpinCtrl::reportInvalidData(), LLScrollListCtrl::reportInvalidInput(), LLSelectMgr::selectDelete(), LLSelectMgr::selectDuplicate(), LLSelectMgr::selectDuplicateOnRay(), LLStatusBar::setBalance(), LLAgent::setFlying(), LLStatusBar::setHealth(), LLFloater::setMinimized(), LLAlertDialog::setVisible(), LLPieMenu::show(), LLPanelGroups::startIM(), LLFloaterWorldMap::teleport(), and LLAgent::teleportCore().
Definition at line 67 of file llui.cpp.
Referenced by LLLineEditor::draw(), LLTextEditor::drawCursor(), LLViewerWindow::handleFocus(), and LLViewerWindow::handleFocusLost().
const LLColor4 UI_VERTEX_COLOR |
Referenced by LLJoystickCameraRotate::drawRotatedImage(), and LLViewBorder::drawTextures().