#include <lldraghandle.h>
Inheritance diagram for LLDragHandleTop:
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 LLString & | getTitle () const |
virtual void | draw () |
virtual void | reshape (S32 width, S32 height, BOOL called_from_parent=TRUE) |
Private Member Functions | |
void | reshapeTitleBox () |
Definition at line 82 of file lldraghandle.h.
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.
References LL_DRAG_HANDLE_TOP_TAG.
EWidgetType LLDragHandleTop::getWidgetType | ( | ) | const [virtual] |
Implements LLView.
Definition at line 87 of file lldraghandle.cpp.
References WIDGET_TYPE_DRAG_HANDLE_TOP.
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().
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().