llui.h File Reference

UI implementation. More...

#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.

Classes

class  LLUI
class  LLUIInstanceMgr< T, INSTANCE_ADAPTOR >
class  LLUISingleton< T, INSTANCE_ADAPTOR >
class  LLClipRect
class  LLLocalClipRect

Typedefs

typedef enum e_rounded_edge ERoundedEdge
typedef void(*) LLUIAudioCallback (const LLUUID &uuid)
typedef enum e_widget_type EWidgetType

Enumerations

enum  e_rounded_edge {
  ROUNDED_RECT_LEFT = 0x1, ROUNDED_RECT_TOP = 0x2, ROUNDED_RECT_RIGHT = 0x4, ROUNDED_RECT_BOTTOM = 0x8,
  ROUNDED_RECT_ALL = 0xf
}
enum  e_widget_type {
  WIDGET_TYPE_VIEW = 0, WIDGET_TYPE_ROOT_VIEW, WIDGET_TYPE_FLOATER_VIEW, WIDGET_TYPE_BUTTON,
  WIDGET_TYPE_JOYSTICK_TURN, WIDGET_TYPE_JOYSTICK_SLIDE, WIDGET_TYPE_CHECKBOX, WIDGET_TYPE_COLOR_SWATCH,
  WIDGET_TYPE_COMBO_BOX, WIDGET_TYPE_LINE_EDITOR, WIDGET_TYPE_SEARCH_EDITOR, WIDGET_TYPE_SCROLL_LIST,
  WIDGET_TYPE_NAME_LIST, WIDGET_TYPE_WEBBROWSER, WIDGET_TYPE_SLIDER, WIDGET_TYPE_SLIDER_BAR,
  WIDGET_TYPE_VOLUME_SLIDER, WIDGET_TYPE_SPINNER, WIDGET_TYPE_TEXT_EDITOR, WIDGET_TYPE_TEXTURE_PICKER,
  WIDGET_TYPE_TEXT_BOX, WIDGET_TYPE_PAD, WIDGET_TYPE_RADIO_GROUP, WIDGET_TYPE_ICON,
  WIDGET_TYPE_LANDMARK_PICKER, WIDGET_TYPE_LOCATE, WIDGET_TYPE_VIEW_BORDER, WIDGET_TYPE_PANEL,
  WIDGET_TYPE_MENU, WIDGET_TYPE_PIE_MENU, WIDGET_TYPE_PIE_MENU_BRANCH, WIDGET_TYPE_MENU_ITEM,
  WIDGET_TYPE_MENU_ITEM_SEPARATOR, WIDGET_TYPE_MENU_SEPARATOR_VERTICAL, WIDGET_TYPE_MENU_ITEM_CALL, WIDGET_TYPE_MENU_ITEM_CHECK,
  WIDGET_TYPE_MENU_ITEM_BRANCH, WIDGET_TYPE_MENU_ITEM_BRANCH_DOWN, WIDGET_TYPE_MENU_ITEM_BLANK, WIDGET_TYPE_TEAROFF_MENU,
  WIDGET_TYPE_MENU_BAR, WIDGET_TYPE_TAB_CONTAINER, WIDGET_TYPE_SCROLL_CONTAINER, WIDGET_TYPE_SCROLLBAR,
  WIDGET_TYPE_INVENTORY_PANEL, WIDGET_TYPE_FLOATER, WIDGET_TYPE_DRAG_HANDLE_TOP, WIDGET_TYPE_DRAG_HANDLE_LEFT,
  WIDGET_TYPE_RESIZE_HANDLE, WIDGET_TYPE_RESIZE_BAR, WIDGET_TYPE_NAME_EDITOR, WIDGET_TYPE_MULTI_FLOATER,
  WIDGET_TYPE_MEDIA_REMOTE, WIDGET_TYPE_FOLDER_VIEW, WIDGET_TYPE_FOLDER_ITEM, WIDGET_TYPE_FOLDER,
  WIDGET_TYPE_STAT_GRAPH, WIDGET_TYPE_STAT_VIEW, WIDGET_TYPE_STAT_BAR, WIDGET_TYPE_DROP_TARGET,
  WIDGET_TYPE_TEXTURE_BAR, WIDGET_TYPE_TEX_MEM_BAR, WIDGET_TYPE_SNAPSHOT_LIVE_PREVIEW, WIDGET_TYPE_STATUS_BAR,
  WIDGET_TYPE_PROGRESS_VIEW, WIDGET_TYPE_TALK_VIEW, WIDGET_TYPE_OVERLAY_BAR, WIDGET_TYPE_HUD_VIEW,
  WIDGET_TYPE_HOVER_VIEW, WIDGET_TYPE_MORPH_VIEW, WIDGET_TYPE_NET_MAP, WIDGET_TYPE_PERMISSIONS_VIEW,
  WIDGET_TYPE_MENU_HOLDER, WIDGET_TYPE_DEBUG_VIEW, WIDGET_TYPE_SCROLLING_PANEL_LIST, WIDGET_TYPE_AUDIO_STATUS,
  WIDGET_TYPE_CONTAINER_VIEW, WIDGET_TYPE_CONSOLE, WIDGET_TYPE_FAST_TIMER_VIEW, WIDGET_TYPE_VELOCITY_BAR,
  WIDGET_TYPE_TEXTURE_VIEW, WIDGET_TYPE_MEMORY_VIEW, WIDGET_TYPE_FRAME_STAT_VIEW, WIDGET_TYPE_LAYOUT_STACK,
  WIDGET_TYPE_DONTCARE, WIDGET_TYPE_COUNT
}

Functions

void make_ui_sound (const LLString &name)
BOOL ui_point_in_rect (S32 x, S32 y, S32 left, S32 top, S32 right, S32 bottom)
void gl_state_for_2d (S32 width, S32 height)
void gl_line_2d (S32 x1, S32 y1, S32 x2, S32 y2)
void gl_line_2d (S32 x1, S32 y1, S32 x2, S32 y2, const LLColor4 &color)
void gl_triangle_2d (S32 x1, S32 y1, S32 x2, S32 y2, S32 x3, S32 y3, const LLColor4 &color, BOOL filled)
void gl_rect_2d_simple (S32 width, S32 height)
void gl_draw_x (const LLRect &rect, const LLColor4 &color)
void gl_rect_2d (S32 left, S32 top, S32 right, S32 bottom, BOOL filled=TRUE)
void gl_rect_2d (S32 left, S32 top, S32 right, S32 bottom, const LLColor4 &color, BOOL filled=TRUE)
void gl_rect_2d_offset_local (S32 left, S32 top, S32 right, S32 bottom, const LLColor4 &color, S32 pixel_offset=0, BOOL filled=TRUE)
void gl_rect_2d_offset_local (S32 left, S32 top, S32 right, S32 bottom, S32 pixel_offset=0, BOOL filled=TRUE)
void gl_rect_2d (const LLRect &rect, BOOL filled=TRUE)
void gl_rect_2d (const LLRect &rect, const LLColor4 &color, BOOL filled=TRUE)
void gl_rect_2d_checkerboard (const LLRect &rect)
void gl_drop_shadow (S32 left, S32 top, S32 right, S32 bottom, const LLColor4 &start_color, S32 lines)
void gl_circle_2d (F32 x, F32 y, F32 radius, S32 steps, BOOL filled)
void gl_arc_2d (F32 center_x, F32 center_y, F32 radius, S32 steps, BOOL filled, F32 start_angle, F32 end_angle)
void gl_deep_circle (F32 radius, F32 depth)
void gl_ring (F32 radius, F32 width, const LLColor4 &center_color, const LLColor4 &side_color, S32 steps, BOOL render_center)
void gl_corners_2d (S32 left, S32 top, S32 right, S32 bottom, S32 length, F32 max_frac)
void gl_washer_2d (F32 outer_radius, F32 inner_radius, S32 steps, const LLColor4 &inner_color, const LLColor4 &outer_color)
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)
void gl_washer_spokes_2d (F32 outer_radius, F32 inner_radius, S32 count, const LLColor4 &inner_color, const LLColor4 &outer_color)
void gl_draw_image (S32 x, S32 y, LLImageGL *image, const LLColor4 &color=UI_VERTEX_COLOR)
void gl_draw_scaled_image (S32 x, S32 y, S32 width, S32 height, LLImageGL *image, const LLColor4 &color=UI_VERTEX_COLOR)
void gl_draw_rotated_image (S32 x, S32 y, F32 degrees, LLImageGL *image, const LLColor4 &color=UI_VERTEX_COLOR)
void gl_draw_scaled_rotated_image (S32 x, S32 y, S32 width, S32 height, F32 degrees, LLImageGL *image, const LLColor4 &color=UI_VERTEX_COLOR)
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)
void gl_draw_scaled_image_inverted (S32 x, S32 y, S32 width, S32 height, LLImageGL *image, const LLColor4 &color=UI_VERTEX_COLOR)
void gl_rect_2d_xor (S32 left, S32 top, S32 right, S32 bottom)
void gl_stippled_line_3d (const LLVector3 &start, const LLVector3 &end, const LLColor4 &color, F32 phase=0.f)
void gl_rect_2d_simple_tex (S32 width, S32 height)
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)
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)
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)
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)
void gl_rect_2d_offset_local (const LLRect &rect, S32 pixel_offset, BOOL filled)

Variables

const LLColor4 UI_VERTEX_COLOR
BOOL gShowTextEditCursor


Detailed Description

UI implementation.

LicenseInfo
firstyear=2001&license=viewergpl

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 Documentation

typedef enum e_rounded_edge ERoundedEdge

typedef enum e_widget_type EWidgetType

typedef void(*) LLUIAudioCallback(const LLUUID &uuid)

Definition at line 148 of file llui.h.


Enumeration Type Documentation

enum e_rounded_edge

Enumerator:
ROUNDED_RECT_LEFT 
ROUNDED_RECT_TOP 
ROUNDED_RECT_RIGHT 
ROUNDED_RECT_BOTTOM 
ROUNDED_RECT_ALL 

Definition at line 112 of file llui.h.

enum e_widget_type

Enumerator:
WIDGET_TYPE_VIEW 
WIDGET_TYPE_ROOT_VIEW 
WIDGET_TYPE_FLOATER_VIEW 
WIDGET_TYPE_BUTTON 
WIDGET_TYPE_JOYSTICK_TURN 
WIDGET_TYPE_JOYSTICK_SLIDE 
WIDGET_TYPE_CHECKBOX 
WIDGET_TYPE_COLOR_SWATCH 
WIDGET_TYPE_COMBO_BOX 
WIDGET_TYPE_LINE_EDITOR 
WIDGET_TYPE_SEARCH_EDITOR 
WIDGET_TYPE_SCROLL_LIST 
WIDGET_TYPE_NAME_LIST 
WIDGET_TYPE_WEBBROWSER 
WIDGET_TYPE_SLIDER 
WIDGET_TYPE_SLIDER_BAR 
WIDGET_TYPE_VOLUME_SLIDER 
WIDGET_TYPE_SPINNER 
WIDGET_TYPE_TEXT_EDITOR 
WIDGET_TYPE_TEXTURE_PICKER 
WIDGET_TYPE_TEXT_BOX 
WIDGET_TYPE_PAD 
WIDGET_TYPE_RADIO_GROUP 
WIDGET_TYPE_ICON 
WIDGET_TYPE_LANDMARK_PICKER 
WIDGET_TYPE_LOCATE 
WIDGET_TYPE_VIEW_BORDER 
WIDGET_TYPE_PANEL 
WIDGET_TYPE_MENU 
WIDGET_TYPE_PIE_MENU 
WIDGET_TYPE_PIE_MENU_BRANCH 
WIDGET_TYPE_MENU_ITEM 
WIDGET_TYPE_MENU_ITEM_SEPARATOR 
WIDGET_TYPE_MENU_SEPARATOR_VERTICAL 
WIDGET_TYPE_MENU_ITEM_CALL 
WIDGET_TYPE_MENU_ITEM_CHECK 
WIDGET_TYPE_MENU_ITEM_BRANCH 
WIDGET_TYPE_MENU_ITEM_BRANCH_DOWN 
WIDGET_TYPE_MENU_ITEM_BLANK 
WIDGET_TYPE_TEAROFF_MENU 
WIDGET_TYPE_MENU_BAR 
WIDGET_TYPE_TAB_CONTAINER 
WIDGET_TYPE_SCROLL_CONTAINER 
WIDGET_TYPE_SCROLLBAR 
WIDGET_TYPE_INVENTORY_PANEL 
WIDGET_TYPE_FLOATER 
WIDGET_TYPE_DRAG_HANDLE_TOP 
WIDGET_TYPE_DRAG_HANDLE_LEFT 
WIDGET_TYPE_RESIZE_HANDLE 
WIDGET_TYPE_RESIZE_BAR 
WIDGET_TYPE_NAME_EDITOR 
WIDGET_TYPE_MULTI_FLOATER 
WIDGET_TYPE_MEDIA_REMOTE 
WIDGET_TYPE_FOLDER_VIEW 
WIDGET_TYPE_FOLDER_ITEM 
WIDGET_TYPE_FOLDER 
WIDGET_TYPE_STAT_GRAPH 
WIDGET_TYPE_STAT_VIEW 
WIDGET_TYPE_STAT_BAR 
WIDGET_TYPE_DROP_TARGET 
WIDGET_TYPE_TEXTURE_BAR 
WIDGET_TYPE_TEX_MEM_BAR 
WIDGET_TYPE_SNAPSHOT_LIVE_PREVIEW 
WIDGET_TYPE_STATUS_BAR 
WIDGET_TYPE_PROGRESS_VIEW 
WIDGET_TYPE_TALK_VIEW 
WIDGET_TYPE_OVERLAY_BAR 
WIDGET_TYPE_HUD_VIEW 
WIDGET_TYPE_HOVER_VIEW 
WIDGET_TYPE_MORPH_VIEW 
WIDGET_TYPE_NET_MAP 
WIDGET_TYPE_PERMISSIONS_VIEW 
WIDGET_TYPE_MENU_HOLDER 
WIDGET_TYPE_DEBUG_VIEW 
WIDGET_TYPE_SCROLLING_PANEL_LIST 
WIDGET_TYPE_AUDIO_STATUS 
WIDGET_TYPE_CONTAINER_VIEW 
WIDGET_TYPE_CONSOLE 
WIDGET_TYPE_FAST_TIMER_VIEW 
WIDGET_TYPE_VELOCITY_BAR 
WIDGET_TYPE_TEXTURE_VIEW 
WIDGET_TYPE_MEMORY_VIEW 
WIDGET_TYPE_FRAME_STAT_VIEW 
WIDGET_TYPE_LAYOUT_STACK 
WIDGET_TYPE_DONTCARE 
WIDGET_TYPE_COUNT 

Definition at line 199 of file llui.h.


Function Documentation

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().

void gl_circle_2d ( F32  x,
F32  y,
F32  radius,
S32  steps,
BOOL  filled 
)

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().

void gl_corners_2d ( S32  left,
S32  top,
S32  right,
S32  bottom,
S32  length,
F32  max_frac 
)

Definition at line 379 of file llui.cpp.

References glBegin, glEnd, llmin(), and S32.

void gl_deep_circle ( F32  radius,
F32  depth 
)

void gl_draw_image ( S32  x,
S32  y,
LLImageGL image,
const LLColor4 color = UI_VERTEX_COLOR 
)

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().

void gl_draw_x ( const LLRect rect,
const LLColor4 color 
)

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().

void gl_line_2d ( S32  x1,
S32  y1,
S32  x2,
S32  y2,
const LLColor4 color 
)

Definition at line 338 of file llui.cpp.

References gGLManager, glBegin, glColor4fv, glEnd, LLGLManager::mATIOffsetVerticalLines, and LLColor4::mV.

void gl_line_2d ( S32  x1,
S32  y1,
S32  x2,
S32  y2 
)

Definition at line 319 of file llui.cpp.

References gGLManager, glBegin, glEnd, and LLGLManager::mATIOffsetVerticalLines.

void gl_rect_2d ( const LLRect rect,
const LLColor4 color,
BOOL  filled = TRUE 
)

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.

void gl_rect_2d ( const LLRect rect,
BOOL  filled = TRUE 
) [inline]

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.

void gl_rect_2d ( S32  left,
S32  top,
S32  right,
S32  bottom,
const LLColor4 color,
BOOL  filled = TRUE 
)

Definition at line 241 of file llui.cpp.

References gl_rect_2d(), glColor4fv, and LLColor4::mV.

void gl_rect_2d ( S32  left,
S32  top,
S32  right,
S32  bottom,
BOOL  filled = TRUE 
)

Definition at line 186 of file llui.cpp.

References gGLManager, glBegin, glEnd, LLGLManager::mATIOffsetVerticalLines, and stop_glerror.

void gl_rect_2d_checkerboard ( const LLRect rect  ) 

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().

void gl_rect_2d_offset_local ( const LLRect rect,
S32  pixel_offset,
BOOL  filled 
) [inline]

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.

void gl_rect_2d_simple ( S32  width,
S32  height 
)

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().

void gl_rect_2d_simple_tex ( S32  width,
S32  height 
)

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().

void gl_rect_2d_xor ( S32  left,
S32  top,
S32  right,
S32  bottom 
)

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().

void gl_state_for_2d ( S32  width,
S32  height 
)

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().

void make_ui_sound ( const LLString name  ) 

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().

BOOL ui_point_in_rect ( S32  x,
S32  y,
S32  left,
S32  top,
S32  right,
S32  bottom 
)

Definition at line 122 of file llui.cpp.

References FALSE, and TRUE.


Variable Documentation

BOOL gShowTextEditCursor

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().


Generated on Thu Jul 1 06:10:44 2010 for Second Life Viewer by  doxygen 1.4.7