LLDragHandleTop Class Reference

#include <lldraghandle.h>

Inheritance diagram for LLDragHandleTop:

Inheritance graph
Collaboration diagram for LLDragHandleTop:

Collaboration graph
List of all members.

Public Member Functions

 LLDragHandleTop (const LLString &name, const LLRect &rect, const LLString &title)
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
virtual void setTitle (const LLString &title)
virtual const LLStringgetTitle () const
virtual void draw ()
virtual void reshape (S32 width, S32 height, BOOL called_from_parent=TRUE)

Private Member Functions

void reshapeTitleBox ()

Detailed Description

Definition at line 82 of file lldraghandle.h.

Constructor & Destructor Documentation

LLDragHandleTop::LLDragHandleTop ( const LLString name,
const LLRect rect,
const LLString title 

Definition at line 80 of file lldraghandle.cpp.

References LLView::setFollowsAll(), and setTitle().

Member Function Documentation

void LLDragHandleTop::draw (  )  [virtual]

Implements LLDragHandle.

Definition at line 166 of file lldraghandle.cpp.

References LLView::draw(), LLDragHandle::mForeground, LLDragHandle::mTitleBox, and LLView::setEnabled().

const LLString & LLDragHandleTop::getTitle (  )  const [virtual]

Implements LLDragHandle.

Definition at line 140 of file lldraghandle.cpp.

References LLTextBox::getText(), and LLDragHandle::mTitleBox.

LLString LLDragHandleTop::getWidgetTag (  )  const [virtual]

Implements LLView.

Definition at line 92 of file lldraghandle.cpp.


EWidgetType LLDragHandleTop::getWidgetType (  )  const [virtual]

Implements LLView.

Definition at line 87 of file lldraghandle.cpp.


void LLDragHandleTop::reshape ( S32  width,
S32  height,
BOOL  called_from_parent = TRUE 
) [virtual]

Implements LLDragHandle.

Definition at line 277 of file lldraghandle.cpp.

References LLView::reshape(), and reshapeTitleBox().

void LLDragHandleTop::reshapeTitleBox (  )  [private]

Definition at line 260 of file lldraghandle.cpp.

References BORDER_PAD, LLRectBase< Type >::getHeight(), LLFontGL::getLineHeight(), LLResMgr::getRes(), LLTextBox::getText(), LLRectBase< Type >::getWidth(), LLFontGL::getWidth(), gResMgr, LEFT_PAD, LLFONT_SANSSERIF, llmin(), llround(), LLDragHandle::mMaxTitleWidth, LLView::mRect, LLDragHandle::mTitleBox, RIGHT_PAD, S32, LLView::setRect(), and TITLE_PAD.

Referenced by reshape(), and setTitle().

void LLDragHandleTop::setTitle ( const LLString title  )  [virtual]

Implements LLDragHandle.

Definition at line 114 of file lldraghandle.cpp.

References LLView::addChild(), LLFontGL::DROP_SHADOW_SOFT, FOLLOWS_LEFT, FOLLOWS_RIGHT, FOLLOWS_TOP, LLResMgr::getRes(), gResMgr, LLFONT_SANSSERIF, LLView::mRect, LLDragHandle::mTitleBox, LLStringBase< char >::null, LLView::removeChild(), reshapeTitleBox(), LLView::setFollows(), LLTextBox::setFontStyle(), LLTextBox::setText(), and LLStringBase< char >::trim().

Referenced by LLDragHandleTop().

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