#include <lldraghandle.h>
Public Member Functions | |
LLDragHandleTop (const LLString &name, const LLRect &rect, const LLString &title) | |
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 87 of file lldraghandle.h.
LLDragHandleTop::LLDragHandleTop | ( | const LLString & | name, | |
const LLRect & | rect, | |||
const LLString & | title | |||
) |
Definition at line 97 of file lldraghandle.cpp.
References LLView::setFollowsAll(), and setTitle().
void LLDragHandleTop::setTitle | ( | const LLString & | title | ) | [virtual] |
Implements LLDragHandle.
Definition at line 111 of file lldraghandle.cpp.
References LLFontGL::DROP_SHADOW_SOFT, FOLLOWS_LEFT, FOLLOWS_RIGHT, FOLLOWS_TOP, LLSingleton< LLResMgr >::getInstance(), LLView::getRect(), LLResMgr::getRes(), LLFONT_SANSSERIF, reshapeTitleBox(), LLView::setFollows(), LLTextBox::setFontStyle(), LLDragHandle::setTitleBox(), and LLStringBase< char >::trim().
Referenced by LLDragHandleTop().
const LLString & LLDragHandleTop::getTitle | ( | ) | const [virtual] |
Implements LLDragHandle.
Definition at line 126 of file lldraghandle.cpp.
References LLTextBox::getText(), LLDragHandle::getTitleBox(), LLStringBase< char >::null, and NULL.
void LLDragHandleTop::draw | ( | void | ) | [virtual] |
Reimplemented from LLView.
Definition at line 145 of file lldraghandle.cpp.
References LLView::draw(), LLDragHandle::getForeground(), LLDragHandle::getTitleBox(), and LLView::setEnabled().
Reimplemented from LLView.
Definition at line 260 of file lldraghandle.cpp.
References LLView::reshape(), and reshapeTitleBox().
void LLDragHandleTop::reshapeTitleBox | ( | ) | [private] |
Definition at line 239 of file lldraghandle.cpp.
References BORDER_PAD, LLSingleton< LLResMgr >::getInstance(), LLFontGL::getLineHeight(), LLDragHandle::getMaxTitleWidth(), LLView::getRect(), LLResMgr::getRes(), LLDragHandle::getTitleBox(), LLFontGL::getWidth(), LEFT_PAD, LLFONT_SANSSERIF, llmin(), llround(), RIGHT_PAD, S32, LLView::setRect(), and TITLE_PAD.
Referenced by reshape(), and setTitle().