LLButton Class Reference

#include <llbutton.h>

Inheritance diagram for LLButton:

Inheritance graph
[legend]
Collaboration diagram for LLButton:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLButton (const LLString &name, const LLRect &rect, const LLString &control_name=LLString(), void(*on_click)(void *)=NULL, void *data=NULL)
 LLButton (const LLString &name, const LLRect &rect, const LLString &unselected_image, const LLString &selected_image, const LLString &control_name, void(*click_callback)(void *), void *callback_data=NULL, const LLFontGL *mGLFont=NULL, const LLString &unselected_label=LLString::null, const LLString &selected_label=LLString::null)
virtual ~LLButton ()
void init (void(*click_callback)(void *), void *callback_data, const LLFontGL *font, const LLString &control_name)
void addImageAttributeToXML (LLXMLNodePtr node, const LLString &imageName, const LLUUID &imageID, const LLString &xmlTagName) const
virtual LLXMLNodePtr getXML (bool save_children=true) const
virtual BOOL handleUnicodeCharHere (llwchar uni_char)
virtual BOOL handleKeyHere (KEY key, MASK mask)
virtual BOOL handleMouseDown (S32 x, S32 y, MASK mask)
virtual BOOL handleMouseUp (S32 x, S32 y, MASK mask)
virtual BOOL handleHover (S32 x, S32 y, MASK mask)
virtual void draw ()
virtual void onMouseCaptureLost ()
virtual void onCommit ()
void setUnselectedLabelColor (const LLColor4 &c)
void setSelectedLabelColor (const LLColor4 &c)
void setClickedCallback (void(*cb)(void *data), void *data=NULL)
void setMouseDownCallback (void(*cb)(void *data))
void setMouseUpCallback (void(*cb)(void *data))
void setHeldDownCallback (void(*cb)(void *data))
void setHeldDownDelay (F32 seconds, S32 frames=0)
F32 getHeldDownTime () const
BOOL getIsToggle () const
void setIsToggle (BOOL is_toggle)
BOOL toggleState ()
BOOL getToggleState () const
void setToggleState (BOOL b)
void setFlashing (BOOL b)
BOOL getFlashing () const
void setHAlign (LLFontGL::HAlign align)
LLFontGL::HAlign getHAlign () const
void setLeftHPad (S32 pad)
void setRightHPad (S32 pad)
const LLString getLabelUnselected () const
const LLString getLabelSelected () const
void setImageColor (const LLString &color_control)
void setImageColor (const LLColor4 &c)
virtual void setColor (const LLColor4 &c)
void setImages (const LLString &image_name, const LLString &selected_name)
void setDisabledImages (const LLString &image_name, const LLString &selected_name)
void setDisabledImages (const LLString &image_name, const LLString &selected_name, const LLColor4 &c)
void setHoverImages (const LLString &image_name, const LLString &selected_name)
void setDisabledImageColor (const LLColor4 &c)
void setDisabledSelectedLabelColor (const LLColor4 &c)
void setImageOverlay (const LLString &image_name, LLFontGL::HAlign alignment=LLFontGL::HCENTER, const LLColor4 &color=LLColor4::white)
LLPointer< LLUIImagegetImageOverlay ()
virtual void setValue (const LLSD &value)
virtual LLSD getValue () const
void setLabel (const LLStringExplicit &label)
virtual BOOL setLabelArg (const LLString &key, const LLStringExplicit &text)
void setLabelUnselected (const LLStringExplicit &label)
void setLabelSelected (const LLStringExplicit &label)
void setDisabledLabel (const LLStringExplicit &disabled_label)
void setDisabledSelectedLabel (const LLStringExplicit &disabled_label)
void setDisabledLabelColor (const LLColor4 &c)
void setFont (const LLFontGL *font)
void setScaleImage (BOOL scale)
BOOL getScaleImage () const
void setDropShadowedText (BOOL b)
void setBorderEnabled (BOOL b)
void setHoverGlowStrength (F32 strength)
void setImageUnselected (const LLString &image_name)
const LLStringgetImageUnselectedName () const
void setImageSelected (const LLString &image_name)
const LLStringgetImageSelectedName () const
void setImageHoverSelected (const LLString &image_name)
void setImageHoverUnselected (const LLString &image_name)
void setImageDisabled (const LLString &image_name)
void setImageDisabledSelected (const LLString &image_name)
void setImageUnselected (LLPointer< LLUIImage > image)
void setImageSelected (LLPointer< LLUIImage > image)
void setImageHoverSelected (LLPointer< LLUIImage > image)
void setImageHoverUnselected (LLPointer< LLUIImage > image)
void setImageDisabled (LLPointer< LLUIImage > image)
void setImageDisabledSelected (LLPointer< LLUIImage > image)
void setCommitOnReturn (BOOL commit)
BOOL getCommitOnReturn () const
void setHelpURLCallback (const LLString &help_url)
const LLStringgetHelpURL () const

Static Public Member Functions

static LLViewfromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory)
static void onHeldDown (void *userdata)

Protected Member Functions

virtual void drawBorder (const LLColor4 &color, S32 size)
void setImageUnselectedID (const LLUUID &image_id)
const LLUUIDgetImageUnselectedID () const
void setImageSelectedID (const LLUUID &image_id)
const LLUUIDgetImageSelectedID () const
void setImageHoverSelectedID (const LLUUID &image_id)
void setImageHoverUnselectedID (const LLUUID &image_id)
void setImageDisabledID (const LLUUID &image_id)
void setImageDisabledSelectedID (const LLUUID &image_id)
const LLPointer< LLUIImage > & getImageUnselected () const
const LLPointer< LLUIImage > & getImageSelected () const

Protected Attributes

LLFrameTimer mMouseDownTimer

Private Attributes

void(* mClickedCallback )(void *data)
void(* mMouseDownCallback )(void *data)
void(* mMouseUpCallback )(void *data)
void(* mHeldDownCallback )(void *data)
const LLFontGLmGLFont
S32 mMouseDownFrame
F32 mHeldDownDelay
S32 mHeldDownFrameDelay
LLPointer< LLUIImagemImageOverlay
LLFontGL::HAlign mImageOverlayAlignment
LLColor4 mImageOverlayColor
LLPointer< LLUIImagemImageUnselected
LLUIString mUnselectedLabel
LLColor4 mUnselectedLabelColor
LLPointer< LLUIImagemImageSelected
LLUIString mSelectedLabel
LLColor4 mSelectedLabelColor
LLPointer< LLUIImagemImageHoverSelected
LLPointer< LLUIImagemImageHoverUnselected
LLPointer< LLUIImagemImageDisabled
LLUIString mDisabledLabel
LLColor4 mDisabledLabelColor
LLPointer< LLUIImagemImageDisabledSelected
LLUIString mDisabledSelectedLabel
LLColor4 mDisabledSelectedLabelColor
LLUUID mImageUnselectedID
LLUUID mImageSelectedID
LLUUID mImageHoverSelectedID
LLUUID mImageHoverUnselectedID
LLUUID mImageDisabledID
LLUUID mImageDisabledSelectedID
LLString mImageUnselectedName
LLString mImageSelectedName
LLString mImageHoverSelectedName
LLString mImageHoverUnselectedName
LLString mImageDisabledName
LLString mImageDisabledSelectedName
LLColor4 mHighlightColor
LLColor4 mUnselectedBgColor
LLColor4 mSelectedBgColor
LLColor4 mImageColor
LLColor4 mDisabledImageColor
BOOL mIsToggle
BOOL mToggleState
BOOL mScaleImage
BOOL mDropShadowedText
BOOL mBorderEnabled
BOOL mFlashing
LLFontGL::HAlign mHAlign
S32 mLeftHPad
S32 mRightHPad
F32 mHoverGlowStrength
F32 mCurGlowStrength
BOOL mNeedsHighlight
BOOL mCommitOnReturn
LLString mHelpURL
LLPointer< LLUIImagemImagep
LLFrameTimer mFlashingTimer


Detailed Description

Definition at line 70 of file llbutton.h.


Constructor & Destructor Documentation

LLButton::LLButton ( const LLString name,
const LLRect rect,
const LLString control_name = LLString(),
void(*)(void *)  on_click = NULL,
void *  data = NULL 
)

Definition at line 65 of file llbutton.cpp.

References LLControlGroup::getColor(), init(), mDisabledImageColor, mImageColor, mSelectedLabel, mUnselectedLabel, NULL, LLUI::sColorsGroup, setImageDisabled(), setImageDisabledSelected(), setImageSelected(), and setImageUnselected().

Referenced by fromXML().

Here is the call graph for this function:

Here is the caller graph for this function:

LLButton::LLButton ( const LLString name,
const LLRect rect,
const LLString unselected_image,
const LLString selected_image,
const LLString control_name,
void(*)(void *)  click_callback,
void *  callback_data = NULL,
const LLFontGL mGLFont = NULL,
const LLString unselected_label = LLString::null,
const LLString selected_label = LLString::null 
)

LLButton::~LLButton (  )  [virtual]

Definition at line 219 of file llbutton.cpp.

References gFocusMgr, LLView::hasMouseCapture(), NULL, and LLFocusMgr::setMouseCapture().

Here is the call graph for this function:


Member Function Documentation

void LLButton::init ( void(*)(void *)  click_callback,
void *  callback_data,
const LLFontGL font,
const LLString control_name 
)

void LLButton::addImageAttributeToXML ( LLXMLNodePtr  node,
const LLString imageName,
const LLUUID imageID,
const LLString xmlTagName 
) const

Definition at line 954 of file llbutton.cpp.

References LLUUID::null, and TRUE.

Referenced by LLJoystick::getXML(), and getXML().

Here is the caller graph for this function:

LLXMLNodePtr LLButton::getXML ( bool  save_children = true  )  const [virtual]

LLView * LLButton::fromXML ( LLXMLNodePtr  node,
LLView parent,
LLUICtrlFactory factory 
) [static]

BOOL LLButton::handleUnicodeCharHere ( llwchar  uni_char  )  [virtual]

Reimplemented from LLView.

Definition at line 270 of file llbutton.cpp.

References FALSE, LLKeyboard::getKeyRepeated(), gKeyboard, LLUICtrl::mCallbackUserData, mClickedCallback, mIsToggle, toggleState(), and TRUE.

Here is the call graph for this function:

BOOL LLButton::handleKeyHere ( KEY  key,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 290 of file llbutton.cpp.

References FALSE, LLKeyboard::getKeyRepeated(), gKeyboard, KEY_RETURN, MASK_NONE, LLUICtrl::mCallbackUserData, mClickedCallback, mCommitOnReturn, mIsToggle, toggleState(), and TRUE.

Here is the call graph for this function:

BOOL LLButton::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLButton::handleMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

BOOL LLButton::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

void LLButton::draw ( void   )  [virtual]

Reimplemented from LLView.

Reimplemented in LLJoystickCameraRotate, and LLJoystickCameraZoom.

Definition at line 406 of file llbutton.cpp.

References LLFontGL::BOTTOM, LLWindow::convertCoords(), drawBorder(), LLView::drawDebugRect(), LLFontGL::DROP_SHADOW_SOFT, LLUIString::empty(), FALSE, LLRectBase< Type >::getCenterX(), LLRectBase< Type >::getCenterY(), LLWindow::getCursorPosition(), LLFrameTimer::getElapsedTimeF32(), LLView::getEnabled(), LLFocusMgr::getFocusColor(), LLFocusMgr::getFocusFlashAmt(), LLRectBase< Type >::getHeight(), LLCriticalDamp::getInterpolant(), LLKeyboard::getKeyDown(), LLView::getLocalRect(), LLView::getName(), LLView::getRect(), LLControlGroup::getS32(), LLUICtrl::getTentative(), LLRectBase< Type >::getWidth(), LLView::getWindow(), gFocusMgr, gKeyboard, gl_rect_2d(), LLUICtrl::hasFocus(), LLView::hasMouseCapture(), LLFontGL::HCENTER, LLPointer< Type >::isNull(), KEY_RETURN, LLFontGL::LEFT, lerp(), LLBUTTON_V_PAD, llendl, llmin(), llround(), llwarns, mCommitOnReturn, mCurGlowStrength, mDisabledImageColor, mDisabledLabel, mDisabledLabelColor, mDisabledSelectedLabel, mDisabledSelectedLabelColor, mDropShadowedText, mFlashing, mFlashingTimer, mGLFont, mHAlign, mHoverGlowStrength, mImageColor, mImageDisabled, mImageDisabledSelected, mImageHoverSelected, mImageHoverUnselected, mImageOverlay, mImageOverlayAlignment, mImageOverlayColor, mImagep, mImageSelected, mImageUnselected, mLeftHPad, mNeedsHighlight, mRightHPad, mScaleImage, mSelectedLabel, mSelectedLabelColor, mToggleState, mUnselectedLabel, mUnselectedLabelColor, LLColor4::mV, LLVector2::mV, LLCoord::mX, LLCoord::mY, LLFontGL::NORMAL, LLPointer< Type >::notNull(), NULL, LLColor4::pink1, LLView::pointInView(), LLFontGL::render(), LLFontGL::RIGHT, S32, LLUI::sConfigGroup, LLView::screenPointToLocal(), LLView::sDebugRects, LLView::sEditingUI, LLView::sEditingUIView, LLUI::sGLScaleFactor, LLStringBase< T >::trim(), TRUE, U32_MAX, VALPHA, VX, and VY.

Referenced by LLTabContainer::draw().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLButton::onMouseCaptureLost (  )  [virtual]

Reimplemented from LLView.

Definition at line 894 of file llbutton.cpp.

References mMouseDownTimer, LLFrameTimer::reset(), and LLFrameTimer::stop().

Here is the call graph for this function:

void LLButton::onCommit (  )  [virtual]

void LLButton::setUnselectedLabelColor ( const LLColor4 c  )  [inline]

Definition at line 108 of file llbutton.h.

References mUnselectedLabelColor.

void LLButton::setSelectedLabelColor ( const LLColor4 c  )  [inline]

Definition at line 109 of file llbutton.h.

References mSelectedLabelColor.

void LLButton::setClickedCallback ( void(*)(void *data)  cb,
void *  data = NULL 
)

void LLButton::setMouseDownCallback ( void(*)(void *data)  cb  )  [inline]

Definition at line 112 of file llbutton.h.

References mMouseDownCallback.

Referenced by LLColumnHeader::LLColumnHeader(), LLComboBox::LLComboBox(), and LLScrollingPanelParam::LLScrollingPanelParam().

Here is the caller graph for this function:

void LLButton::setMouseUpCallback ( void(*)(void *data)  cb  )  [inline]

Definition at line 113 of file llbutton.h.

References mMouseUpCallback.

Referenced by LLScrollingPanelParam::LLScrollingPanelParam(), and LLVoiceRemoteCtrl::postBuild().

Here is the caller graph for this function:

void LLButton::setHeldDownCallback ( void(*)(void *data)  cb  )  [inline]

void LLButton::setHeldDownDelay ( F32  seconds,
S32  frames = 0 
) [inline]

F32 LLButton::getHeldDownTime (  )  const [inline]

Definition at line 117 of file llbutton.h.

References LLFrameTimer::getElapsedTimeF32(), and mMouseDownTimer.

Referenced by LLJoystick::getElapsedHeldDownTime(), and handleHover().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLButton::getIsToggle (  )  const [inline]

Definition at line 119 of file llbutton.h.

References mIsToggle.

Referenced by fromXML().

Here is the caller graph for this function:

void LLButton::setIsToggle ( BOOL  is_toggle  )  [inline]

Definition at line 120 of file llbutton.h.

References mIsToggle.

Referenced by fromXML().

Here is the caller graph for this function:

BOOL LLButton::toggleState (  ) 

Definition at line 757 of file llbutton.cpp.

References mToggleState, and setToggleState().

Referenced by LLPreviewAnim::auditionAnim(), handleKeyHere(), handleMouseUp(), handleUnicodeCharHere(), onCommit(), LLPreviewAnim::playAnim(), and LLCheckBoxCtrl::toggle().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLButton::getToggleState (  )  const [inline]

void LLButton::setToggleState ( BOOL  b  ) 

void LLButton::setFlashing ( BOOL  b  ) 

Definition at line 747 of file llbutton.cpp.

References mFlashing, mFlashingTimer, and LLFrameTimer::reset().

Referenced by LLTabContainer::draw(), and LLTabContainer::setTabPanelFlashing().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLButton::getFlashing (  )  const [inline]

Definition at line 126 of file llbutton.h.

References mFlashing.

Referenced by LLTabContainer::draw(), and LLTabContainer::getTabPanelFlashing().

Here is the caller graph for this function:

void LLButton::setHAlign ( LLFontGL::HAlign  align  )  [inline]

Definition at line 128 of file llbutton.h.

References mHAlign.

Referenced by LLTabContainer::addTabPanel(), LLJoystickAgentSlide::fromXML(), LLJoystickAgentTurn::fromXML(), fromXML(), LLComboBox::LLComboBox(), and LLFlyoutButton::LLFlyoutButton().

Here is the caller graph for this function:

LLFontGL::HAlign LLButton::getHAlign (  )  const [inline]

Definition at line 129 of file llbutton.h.

References mHAlign.

Referenced by LLJoystick::getXML().

Here is the caller graph for this function:

void LLButton::setLeftHPad ( S32  pad  )  [inline]

Definition at line 130 of file llbutton.h.

References mLeftHPad.

Referenced by LLTabContainer::addTabPanel().

Here is the caller graph for this function:

void LLButton::setRightHPad ( S32  pad  )  [inline]

Definition at line 131 of file llbutton.h.

References mRightHPad.

Referenced by LLTabContainer::addTabPanel(), LLComboBox::LLComboBox(), LLFlyoutButton::LLFlyoutButton(), and LLTabContainer::setTabImage().

Here is the caller graph for this function:

const LLString LLButton::getLabelUnselected (  )  const [inline]

Definition at line 133 of file llbutton.h.

References mUnselectedLabel, and wstring_to_utf8str().

Referenced by getXML(), and LLFloaterEditUI::refreshButton().

Here is the call graph for this function:

Here is the caller graph for this function:

const LLString LLButton::getLabelSelected (  )  const [inline]

Definition at line 134 of file llbutton.h.

References mSelectedLabel, and wstring_to_utf8str().

Referenced by LLTabContainer::getPanelTitle(), getXML(), LLComboBox::hideList(), LLTabContainer::setTabImage(), LLColumnHeader::showList(), and LLComboBox::updateLayout().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLButton::setImageColor ( const LLString color_control  ) 

Referenced by LLFloater::buildButtons(), LLVoiceRemoteCtrl::draw(), LLNotifyBox::LLNotifyBox(), and setColor().

Here is the caller graph for this function:

void LLButton::setImageColor ( const LLColor4 c  ) 

Definition at line 824 of file llbutton.cpp.

References mImageColor.

void LLButton::setColor ( const LLColor4 c  )  [virtual]

Reimplemented from LLUICtrl.

Definition at line 829 of file llbutton.cpp.

References setImageColor().

Here is the call graph for this function:

void LLButton::setImages ( const LLString image_name,
const LLString selected_name 
)

Definition at line 812 of file llbutton.cpp.

References setImageSelected(), and setImageUnselected().

Referenced by LLTabContainer::addTabPanel(), LLFloaterColorPicker::postBuild(), LLFloaterAnimPreview::postBuild(), and LLFloaterAnimPreview::refresh().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLButton::setDisabledImages ( const LLString image_name,
const LLString selected_name 
)

Definition at line 861 of file llbutton.cpp.

References mImageColor, LLColor4::mV, and VALPHA.

Referenced by LLFloaterAnimPreview::postBuild().

Here is the caller graph for this function:

void LLButton::setDisabledImages ( const LLString image_name,
const LLString selected_name,
const LLColor4 c 
)

Definition at line 849 of file llbutton.cpp.

References mDisabledImageColor, setImageDisabled(), and setImageDisabledSelected().

Here is the call graph for this function:

void LLButton::setHoverImages ( const LLString image_name,
const LLString selected_name 
)

Definition at line 873 of file llbutton.cpp.

References setImageHoverSelected(), and setImageHoverUnselected().

Referenced by LLFloater::buildButtons().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLButton::setDisabledImageColor ( const LLColor4 c  )  [inline]

Definition at line 146 of file llbutton.h.

References mDisabledImageColor.

Referenced by LLNotifyBox::LLNotifyBox().

Here is the caller graph for this function:

void LLButton::setDisabledSelectedLabelColor ( const LLColor4 c  )  [inline]

Definition at line 148 of file llbutton.h.

References mDisabledSelectedLabelColor.

void LLButton::setImageOverlay ( const LLString image_name,
LLFontGL::HAlign  alignment = LLFontGL::HCENTER,
const LLColor4 color = LLColor4::white 
)

Definition at line 879 of file llbutton.cpp.

References LLUI::getUIImage(), mImageOverlay, mImageOverlayAlignment, mImageOverlayColor, and NULL.

Referenced by LLVoiceRemoteCtrl::draw(), LLMediaRemoteCtrl::draw(), LLColumnHeader::draw(), fromXML(), LLComboBox::LLComboBox(), LLTabContainer::setTabImage(), and LLFlyoutButton::updateLayout().

Here is the call graph for this function:

Here is the caller graph for this function:

LLPointer<LLUIImage> LLButton::getImageOverlay (  )  [inline]

Definition at line 151 of file llbutton.h.

References mImageOverlay.

Referenced by LLColumnHeader::draw(), and LLTabContainer::setTabImage().

Here is the caller graph for this function:

void LLButton::setValue ( const LLSD value  )  [virtual]

Reimplemented from LLView.

Definition at line 763 of file llbutton.cpp.

References LLSD::asBoolean(), and mToggleState.

Referenced by LLCheckBoxCtrl::setValue().

Here is the call graph for this function:

Here is the caller graph for this function:

LLSD LLButton::getValue (  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 768 of file llbutton.cpp.

References mToggleState, and TRUE.

Referenced by LLCheckBoxCtrl::getValue().

Here is the caller graph for this function:

void LLButton::setLabel ( const LLStringExplicit label  ) 

Definition at line 773 of file llbutton.cpp.

References setLabelSelected(), and setLabelUnselected().

Referenced by LLFlyoutButton::draw(), LLPanelClassified::initNewClassified(), LLFloaterTestImpl::LLFloaterTestImpl(), LLFlyoutButton::LLFlyoutButton(), LLFloaterLagMeter::onClickShrink(), and LLPanelLandGeneral::refresh().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLButton::setLabelArg ( const LLString key,
const LLStringExplicit text 
) [virtual]

Reimplemented from LLUICtrl.

Definition at line 780 of file llbutton.cpp.

References mSelectedLabel, mUnselectedLabel, LLUIString::setArg(), and TRUE.

Here is the call graph for this function:

void LLButton::setLabelUnselected ( const LLStringExplicit label  ) 

void LLButton::setLabelSelected ( const LLStringExplicit label  ) 

void LLButton::setDisabledLabel ( const LLStringExplicit disabled_label  ) 

Definition at line 797 of file llbutton.cpp.

References mDisabledLabel.

Referenced by LLComboBox::clear(), and LLComboBox::setLabel().

Here is the caller graph for this function:

void LLButton::setDisabledSelectedLabel ( const LLStringExplicit disabled_label  ) 

Definition at line 802 of file llbutton.cpp.

References mDisabledSelectedLabel.

Referenced by LLComboBox::clear(), and LLComboBox::setLabel().

Here is the caller graph for this function:

void LLButton::setDisabledLabelColor ( const LLColor4 c  )  [inline]

Definition at line 163 of file llbutton.h.

References mDisabledLabelColor.

void LLButton::setFont ( const LLFontGL font  )  [inline]

Definition at line 165 of file llbutton.h.

References mGLFont, and LLFontGL::sSansSerif.

Referenced by LLComboBox::LLComboBox(), LLFloaterTestImpl::LLFloaterTestImpl(), and LLNotifyBox::LLNotifyBox().

Here is the caller graph for this function:

void LLButton::setScaleImage ( BOOL  scale  )  [inline]

BOOL LLButton::getScaleImage (  )  const [inline]

Definition at line 168 of file llbutton.h.

References mScaleImage.

Referenced by LLJoystick::getXML().

Here is the caller graph for this function:

void LLButton::setDropShadowedText ( BOOL  b  )  [inline]

Definition at line 170 of file llbutton.h.

References mDropShadowedText.

void LLButton::setBorderEnabled ( BOOL  b  )  [inline]

Definition at line 172 of file llbutton.h.

References mBorderEnabled.

Referenced by LLFloater::draw(), LLPanel::setDefaultBtn(), and LLPanel::updateDefaultBtn().

Here is the caller graph for this function:

static void LLButton::onHeldDown ( void *  userdata  )  [static]

Reimplemented in LLJoystick.

void LLButton::setHoverGlowStrength ( F32  strength  )  [inline]

Definition at line 176 of file llbutton.h.

References mHoverGlowStrength.

void LLButton::setImageUnselected ( const LLString image_name  ) 

const LLString& LLButton::getImageUnselectedName (  )  const [inline]

Definition at line 179 of file llbutton.h.

References mImageUnselectedName.

Referenced by LLJoystick::getXML().

Here is the caller graph for this function:

void LLButton::setImageSelected ( const LLString image_name  ) 

Definition at line 924 of file llbutton.cpp.

References LLUI::getUIImage(), and mImageSelectedName.

Referenced by LLButton(), LLComboBox::LLComboBox(), LLFlyoutButton::LLFlyoutButton(), LLColumnHeader::setImage(), and setImages().

Here is the call graph for this function:

Here is the caller graph for this function:

const LLString& LLButton::getImageSelectedName (  )  const [inline]

Definition at line 181 of file llbutton.h.

References mImageSelectedName.

Referenced by LLJoystick::getXML().

Here is the caller graph for this function:

void LLButton::setImageHoverSelected ( const LLString image_name  ) 

Definition at line 930 of file llbutton.cpp.

References LLUI::getUIImage(), and mImageHoverSelectedName.

Referenced by fromXML(), and setHoverImages().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLButton::setImageHoverUnselected ( const LLString image_name  ) 

Definition at line 936 of file llbutton.cpp.

References LLUI::getUIImage(), and mImageHoverUnselectedName.

Referenced by fromXML(), and setHoverImages().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLButton::setImageDisabled ( const LLString image_name  ) 

Definition at line 942 of file llbutton.cpp.

References LLUI::getUIImage(), and mImageDisabledName.

Referenced by fromXML(), LLButton(), LLComboBox::LLComboBox(), LLFlyoutButton::LLFlyoutButton(), and setDisabledImages().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLButton::setImageDisabledSelected ( const LLString image_name  ) 

Definition at line 948 of file llbutton.cpp.

References LLUI::getUIImage(), and mImageDisabledSelectedName.

Referenced by fromXML(), LLButton(), LLComboBox::LLComboBox(), LLFlyoutButton::LLFlyoutButton(), and setDisabledImages().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLButton::setImageUnselected ( LLPointer< LLUIImage image  ) 

Definition at line 807 of file llbutton.cpp.

References mImageUnselected.

void LLButton::setImageSelected ( LLPointer< LLUIImage image  ) 

Definition at line 819 of file llbutton.cpp.

References mImageSelected.

void LLButton::setImageHoverSelected ( LLPointer< LLUIImage image  ) 

Definition at line 856 of file llbutton.cpp.

References mImageHoverSelected.

void LLButton::setImageHoverUnselected ( LLPointer< LLUIImage image  ) 

Definition at line 868 of file llbutton.cpp.

References mImageHoverUnselected.

void LLButton::setImageDisabled ( LLPointer< LLUIImage image  ) 

Definition at line 835 of file llbutton.cpp.

References mDisabledImageColor, mImageColor, mImageDisabled, LLColor4::mV, and VALPHA.

void LLButton::setImageDisabledSelected ( LLPointer< LLUIImage image  ) 

void LLButton::setCommitOnReturn ( BOOL  commit  )  [inline]

Definition at line 194 of file llbutton.h.

References mCommitOnReturn.

BOOL LLButton::getCommitOnReturn (  )  const [inline]

Definition at line 195 of file llbutton.h.

References mCommitOnReturn.

Referenced by LLPanel::handleKeyHere(), and LLPanel::updateDefaultBtn().

Here is the caller graph for this function:

void LLButton::setHelpURLCallback ( const LLString help_url  ) 

Definition at line 1110 of file llbutton.cpp.

References clicked_help(), mHelpURL, and setClickedCallback().

Referenced by fromXML().

Here is the call graph for this function:

Here is the caller graph for this function:

const LLString& LLButton::getHelpURL (  )  const [inline]

Definition at line 198 of file llbutton.h.

References mHelpURL.

void LLButton::drawBorder ( const LLColor4 color,
S32  size 
) [protected, virtual]

Definition at line 716 of file llbutton.cpp.

References LLView::getLocalRect(), mImagep, and mScaleImage.

Referenced by draw().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLButton::setImageUnselectedID ( const LLUUID image_id  )  [protected]

const LLUUID& LLButton::getImageUnselectedID (  )  const [inline, protected]

Definition at line 205 of file llbutton.h.

References mImageUnselectedID.

Referenced by LLJoystick::getXML().

Here is the caller graph for this function:

void LLButton::setImageSelectedID ( const LLUUID image_id  )  [protected]

const LLUUID& LLButton::getImageSelectedID (  )  const [inline, protected]

Definition at line 207 of file llbutton.h.

References mImageSelectedID.

Referenced by LLJoystick::getXML().

Here is the caller graph for this function:

void LLButton::setImageHoverSelectedID ( const LLUUID image_id  )  [protected]

void LLButton::setImageHoverUnselectedID ( const LLUUID image_id  )  [protected]

void LLButton::setImageDisabledID ( const LLUUID image_id  )  [protected]

void LLButton::setImageDisabledSelectedID ( const LLUUID image_id  )  [protected]

const LLPointer<LLUIImage>& LLButton::getImageUnselected (  )  const [inline, protected]

Definition at line 212 of file llbutton.h.

References mImageUnselected.

Referenced by LLJoystickCameraZoom::draw(), and LLJoystickCameraRotate::draw().

Here is the caller graph for this function:

const LLPointer<LLUIImage>& LLButton::getImageSelected (  )  const [inline, protected]

Definition at line 213 of file llbutton.h.

References mImageSelected.

Referenced by LLJoystickCameraRotate::draw().

Here is the caller graph for this function:


Member Data Documentation

void(* LLButton::mClickedCallback)(void *data) [private]

void(* LLButton::mMouseDownCallback)(void *data) [private]

void(* LLButton::mMouseUpCallback)(void *data) [private]

void(* LLButton::mHeldDownCallback)(void *data) [private]

Referenced by handleHover(), and setHeldDownCallback().

const LLFontGL* LLButton::mGLFont [private]

Definition at line 224 of file llbutton.h.

Referenced by draw(), getXML(), init(), and setFont().

Definition at line 226 of file llbutton.h.

Referenced by handleHover(), and handleMouseDown().

Definition at line 227 of file llbutton.h.

Referenced by handleHover(), and setHeldDownDelay().

Definition at line 228 of file llbutton.h.

Referenced by handleHover(), and setHeldDownDelay().

Definition at line 230 of file llbutton.h.

Referenced by draw(), getImageOverlay(), and setImageOverlay().

Definition at line 231 of file llbutton.h.

Referenced by draw(), init(), and setImageOverlay().

Definition at line 232 of file llbutton.h.

Referenced by draw(), init(), and setImageOverlay().

Definition at line 234 of file llbutton.h.

Referenced by draw(), getImageUnselected(), and setImageUnselected().

Definition at line 235 of file llbutton.h.

Referenced by draw(), getLabelUnselected(), LLButton(), setLabelArg(), and setLabelUnselected().

Definition at line 236 of file llbutton.h.

Referenced by draw(), init(), and setUnselectedLabelColor().

Definition at line 238 of file llbutton.h.

Referenced by draw(), getImageSelected(), and setImageSelected().

Definition at line 239 of file llbutton.h.

Referenced by draw(), getLabelSelected(), LLButton(), setLabelArg(), and setLabelSelected().

Definition at line 240 of file llbutton.h.

Referenced by draw(), init(), and setSelectedLabelColor().

Definition at line 242 of file llbutton.h.

Referenced by draw(), and setImageHoverSelected().

Definition at line 244 of file llbutton.h.

Referenced by draw(), and setImageHoverUnselected().

Definition at line 246 of file llbutton.h.

Referenced by draw(), and setImageDisabled().

Definition at line 247 of file llbutton.h.

Referenced by draw(), and setDisabledLabel().

Definition at line 248 of file llbutton.h.

Referenced by draw(), init(), and setDisabledLabelColor().

Definition at line 250 of file llbutton.h.

Referenced by draw(), and setImageDisabledSelected().

Definition at line 251 of file llbutton.h.

Referenced by draw(), and setDisabledSelectedLabel().

Definition at line 252 of file llbutton.h.

Referenced by draw(), init(), and setDisabledSelectedLabelColor().

Definition at line 254 of file llbutton.h.

Referenced by getImageUnselectedID(), and getXML().

Definition at line 255 of file llbutton.h.

Referenced by getImageSelectedID(), and getXML().

Definition at line 256 of file llbutton.h.

Referenced by getXML().

Definition at line 257 of file llbutton.h.

Referenced by getXML().

Definition at line 258 of file llbutton.h.

Referenced by getXML().

Definition at line 259 of file llbutton.h.

Referenced by getXML().

Definition at line 260 of file llbutton.h.

Referenced by getImageUnselectedName(), getXML(), and setImageUnselected().

Definition at line 261 of file llbutton.h.

Referenced by getImageSelectedName(), getXML(), and setImageSelected().

Definition at line 262 of file llbutton.h.

Referenced by getXML(), and setImageHoverSelected().

Definition at line 263 of file llbutton.h.

Referenced by getXML(), and setImageHoverUnselected().

Definition at line 264 of file llbutton.h.

Referenced by getXML(), and setImageDisabled().

Definition at line 265 of file llbutton.h.

Referenced by getXML(), and setImageDisabledSelected().

Definition at line 267 of file llbutton.h.

Referenced by init().

Definition at line 268 of file llbutton.h.

Referenced by init().

Definition at line 269 of file llbutton.h.

Referenced by init().

Definition at line 275 of file llbutton.h.

Referenced by draw(), getToggleState(), getValue(), setToggleState(), setValue(), and toggleState().

Definition at line 276 of file llbutton.h.

Referenced by draw(), drawBorder(), getScaleImage(), getXML(), LLButton(), and setScaleImage().

Definition at line 278 of file llbutton.h.

Referenced by draw(), and setDropShadowedText().

Definition at line 280 of file llbutton.h.

Referenced by setBorderEnabled().

Definition at line 282 of file llbutton.h.

Referenced by draw(), getFlashing(), and setFlashing().

Definition at line 284 of file llbutton.h.

Referenced by draw(), getHAlign(), getXML(), and setHAlign().

Definition at line 285 of file llbutton.h.

Referenced by draw(), fromXML(), init(), and setLeftHPad().

Definition at line 286 of file llbutton.h.

Referenced by draw(), fromXML(), init(), and setRightHPad().

Definition at line 288 of file llbutton.h.

Referenced by draw(), and setHoverGlowStrength().

Definition at line 289 of file llbutton.h.

Referenced by draw().

Definition at line 291 of file llbutton.h.

Referenced by draw(), and handleHover().

Definition at line 292 of file llbutton.h.

Referenced by draw(), getCommitOnReturn(), handleKeyHere(), and setCommitOnReturn().

Definition at line 294 of file llbutton.h.

Referenced by getHelpURL(), and setHelpURLCallback().

Definition at line 296 of file llbutton.h.

Referenced by draw(), and drawBorder().

Definition at line 298 of file llbutton.h.

Referenced by draw(), and setFlashing().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:39:36 2008 for SecondLife by  doxygen 1.5.5