#include <llbutton.h>
Definition at line 70 of file llbutton.h.
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().
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 | |||
) |
Definition at line 111 of file llbutton.cpp.
References FALSE, LLControlGroup::getColor(), init(), mDisabledImageColor, mImageColor, mScaleImage, mSelectedLabel, mUnselectedLabel, LLColor4::mV, LLUI::sColorsGroup, setImageDisabled(), setImageDisabledSelected(), setImageSelected(), setImageUnselected(), and VALPHA.
LLButton::~LLButton | ( | ) | [virtual] |
Definition at line 219 of file llbutton.cpp.
References gFocusMgr, LLView::hasMouseCapture(), NULL, and LLFocusMgr::setMouseCapture().
void LLButton::init | ( | void(*)(void *) | click_callback, | |
void * | callback_data, | |||
const LLFontGL * | font, | |||
const LLString & | control_name | |||
) |
Definition at line 190 of file llbutton.cpp.
References LLControlGroup::getColor(), LLView::getRect(), LLFontGL::getWidth(), LLRectBase< Type >::getWidth(), LLFontGL::HCENTER, LLBUTTON_ORIG_H_PAD, LLUICtrl::mCallbackUserData, mDisabledLabelColor, mDisabledSelectedLabelColor, mGLFont, mHighlightColor, mImageOverlayAlignment, mImageOverlayColor, mLeftHPad, mMouseDownTimer, mRightHPad, mSelectedBgColor, mSelectedLabelColor, mUnselectedBgColor, mUnselectedLabelColor, NULL, LLUI::sColorsGroup, LLView::setControlName(), LLFontGL::sSansSerif, LLFrameTimer::stop(), and LLColor4::white.
Referenced by LLButton().
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().
LLXMLNodePtr LLButton::getXML | ( | bool | save_children = true |
) | const [virtual] |
Reimplemented from LLUICtrl.
Reimplemented in LLJoystick.
Definition at line 970 of file llbutton.cpp.
References addImageAttributeToXML(), getLabelSelected(), getLabelUnselected(), LLUICtrl::getXML(), mGLFont, mHAlign, mImageDisabledID, mImageDisabledName, mImageDisabledSelectedID, mImageDisabledSelectedName, mImageHoverSelectedID, mImageHoverSelectedName, mImageHoverUnselectedID, mImageHoverUnselectedName, mImageSelectedID, mImageSelectedName, mImageUnselectedID, mImageUnselectedName, mScaleImage, LLFontGL::nameFromFont(), LLFontGL::nameFromHAlign(), and TRUE.
LLView * LLButton::fromXML | ( | LLXMLNodePtr | node, | |
LLView * | parent, | |||
LLUICtrlFactory * | factory | |||
) | [static] |
Reimplemented from LLUICtrl.
Reimplemented in LLJoystickAgentTurn, and LLJoystickAgentSlide.
Definition at line 1005 of file llbutton.cpp.
References FALSE, getIsToggle(), LLFontGL::hAlignFromName(), LLFontGL::HCENTER, LLUICtrl::initFromXML(), LLButton(), mLeftHPad, mRightHPad, LLStringBase< char >::null, NULL, LLView::selectFont(), LLView::selectFontHAlign(), setHAlign(), setHelpURLCallback(), setImageDisabled(), setImageDisabledSelected(), setImageHoverSelected(), setImageHoverUnselected(), setImageOverlay(), setIsToggle(), setLabelSelected(), setLabelUnselected(), and setScaleImage().
Reimplemented from LLView.
Definition at line 270 of file llbutton.cpp.
References FALSE, LLKeyboard::getKeyRepeated(), gKeyboard, LLUICtrl::mCallbackUserData, mClickedCallback, mIsToggle, toggleState(), and TRUE.
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.
Reimplemented from LLView.
Reimplemented in LLJoystick, LLJoystickCameraRotate, and LLJoystickCameraZoom.
Definition at line 311 of file llbutton.cpp.
References LLFrameTimer::getFrameCount(), LLUICtrl::getIsChrome(), LLView::getSoundFlags(), gFocusMgr, LLUICtrl::hasTabStop(), make_ui_sound(), LLUICtrl::mCallbackUserData, mMouseDownCallback, mMouseDownFrame, mMouseDownTimer, LLView::MOUSE_DOWN, LLUICtrl::setFocus(), LLFocusMgr::setMouseCapture(), LLFrameTimer::start(), and TRUE.
Referenced by LLJoystick::handleMouseDown(), and LLTabContainer::handleMouseDown().
Reimplemented from LLView.
Reimplemented in LLJoystick.
Definition at line 338 of file llbutton.cpp.
References LLView::getSoundFlags(), gFocusMgr, LLView::hasMouseCapture(), make_ui_sound(), LLUICtrl::mCallbackUserData, mClickedCallback, mIsToggle, mMouseDownTimer, mMouseUpCallback, LLView::MOUSE_UP, NULL, LLView::pointInView(), LLFrameTimer::reset(), LLFocusMgr::setMouseCapture(), LLFrameTimer::stop(), toggleState(), and TRUE.
Referenced by LLJoystick::handleMouseUp(), and LLTabContainer::handleMouseUp().
Reimplemented from LLView.
Reimplemented in LLJoystick.
Definition at line 380 of file llbutton.cpp.
References LLFrameTimer::getFrameCount(), getHeldDownTime(), LLFocusMgr::getMouseCapture(), LLView::getName(), LLFrameTimer::getStarted(), LLView::getWindow(), gFocusMgr, LLView::hasAncestor(), LLMouseHandler::isView(), lldebugst, llendl, LLUICtrl::mCallbackUserData, mHeldDownCallback, mHeldDownDelay, mHeldDownFrameDelay, mMouseDownFrame, mMouseDownTimer, mNeedsHighlight, NULL, LLWindow::setCursor(), TRUE, and UI_CURSOR_ARROW.
Referenced by LLTabContainer::handleDragAndDrop(), LLJoystick::handleHover(), and LLTabContainer::handleHover().
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().
void LLButton::onMouseCaptureLost | ( | ) | [virtual] |
Reimplemented from LLView.
Definition at line 894 of file llbutton.cpp.
References mMouseDownTimer, LLFrameTimer::reset(), and LLFrameTimer::stop().
void LLButton::onCommit | ( | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 229 of file llbutton.cpp.
References LLView::getSoundFlags(), make_ui_sound(), LLUICtrl::mCallbackUserData, mClickedCallback, mIsToggle, mMouseDownCallback, mMouseUpCallback, LLView::MOUSE_DOWN, LLView::MOUSE_UP, LLUICtrl::onCommit(), and toggleState().
Referenced by LLTabContainer::commitHoveredButton(), LLTabContainer::handleDragAndDrop(), and LLPanel::handleKeyHere().
void LLButton::setUnselectedLabelColor | ( | const LLColor4 & | c | ) | [inline] |
void LLButton::setSelectedLabelColor | ( | const LLColor4 & | c | ) | [inline] |
void LLButton::setClickedCallback | ( | void(*)(void *data) | cb, | |
void * | data = NULL | |||
) |
Referenced by LLPanel::childSetAction(), LLColumnHeader::LLColumnHeader(), LLFlyoutButton::LLFlyoutButton(), LLGroupMoneyTabEventHandler::LLGroupMoneyTabEventHandler(), LLVoiceRemoteCtrl::postBuild(), LLPreviewGesture::postBuild(), LLPanelPlace::postBuild(), LLPanelPick::postBuild(), LLPanelGroupVoting::postBuild(), LLPanelGroupSubTab::postBuild(), LLPanelGroupNotices::postBuild(), LLPanelGroupLandMoney::postBuild(), LLPanelGroupInvite::postBuild(), LLPanelGroupGeneral::postBuild(), LLPanelGroup::postBuild(), LLPanelGroupTab::postBuild(), LLPanelEvent::postBuild(), LLPanelClassified::postBuild(), LLFloaterTools::postBuild(), LLPanelEstateCovenant::postBuild(), LLFloaterPreference::postBuild(), LLPanelLandOptions::postBuild(), LLPanelLandObjects::postBuild(), LLPanelLandGeneral::postBuild(), LLFloaterColorPicker::postBuild(), LLFloaterAnimPreview::postBuild(), LLPanelGroupRolesSubTab::postBuildSubTab(), LLPanelGroupMembersSubTab::postBuildSubTab(), LLViewChildren::setAction(), and setHelpURLCallback().
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().
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().
void LLButton::setHeldDownCallback | ( | void(*)(void *data) | cb | ) | [inline] |
Definition at line 114 of file llbutton.h.
References mHeldDownCallback.
Referenced by LLTabContainer::initButtons(), LLColumnHeader::LLColumnHeader(), LLFloaterMove::LLFloaterMove(), LLJoystick::LLJoystick(), LLScrollbar::LLScrollbar(), LLScrollingPanelParam::LLScrollingPanelParam(), LLSpinCtrl::LLSpinCtrl(), and LLVoiceRemoteCtrl::postBuild().
Definition at line 115 of file llbutton.h.
References mHeldDownDelay, and mHeldDownFrameDelay.
Referenced by LLColumnHeader::LLColumnHeader(), LLFloaterCamera::LLFloaterCamera(), LLFloaterMove::LLFloaterMove(), and LLScrollingPanelParam::LLScrollingPanelParam().
F32 LLButton::getHeldDownTime | ( | ) | const [inline] |
Definition at line 117 of file llbutton.h.
References LLFrameTimer::getElapsedTimeF32(), and mMouseDownTimer.
Referenced by LLJoystick::getElapsedHeldDownTime(), and handleHover().
BOOL LLButton::getIsToggle | ( | ) | const [inline] |
Definition at line 119 of file llbutton.h.
References mIsToggle.
Referenced by fromXML().
void LLButton::setIsToggle | ( | BOOL | is_toggle | ) | [inline] |
Definition at line 120 of file llbutton.h.
References mIsToggle.
Referenced by fromXML().
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().
BOOL LLButton::getToggleState | ( | ) | const [inline] |
Definition at line 122 of file llbutton.h.
References mToggleState.
Referenced by LLVoiceRemoteCtrl::draw(), LLMediaRemoteCtrl::draw(), LLCheckBoxCtrl::isDirty(), LLVoiceRemoteCtrl::onBtnLock(), LLCheckBoxCtrl::resetDirty(), and LLFloaterColorPicker::setActive().
void LLButton::setToggleState | ( | BOOL | b | ) |
Definition at line 738 of file llbutton.cpp.
References mToggleState, and LLView::setControlValue().
Referenced by LLFloaterReporter::closePickTool(), LLVoiceRemoteCtrl::draw(), LLToolView::draw(), LLFloaterColorPicker::draw(), LLFlyoutButton::draw(), LLComboBox::hideList(), LLDebugVarMessageBox::onAnimateClicked(), LLFloaterReporter::onClickObjPicker(), LLAgent::propagate(), LLTabContainer::selectTab(), LLPanelEditWearable::setSubpart(), LLComboBox::showList(), toggleState(), and LLFloaterTools::updatePopup().
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().
BOOL LLButton::getFlashing | ( | ) | const [inline] |
Definition at line 126 of file llbutton.h.
References mFlashing.
Referenced by LLTabContainer::draw(), and LLTabContainer::getTabPanelFlashing().
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().
LLFontGL::HAlign LLButton::getHAlign | ( | ) | const [inline] |
Definition at line 129 of file llbutton.h.
References mHAlign.
Referenced by LLJoystick::getXML().
void LLButton::setLeftHPad | ( | S32 | pad | ) | [inline] |
Definition at line 130 of file llbutton.h.
References mLeftHPad.
Referenced by LLTabContainer::addTabPanel().
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().
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().
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().
void LLButton::setImageColor | ( | const LLString & | color_control | ) |
Referenced by LLFloater::buildButtons(), LLVoiceRemoteCtrl::draw(), LLNotifyBox::LLNotifyBox(), and setColor().
void LLButton::setImageColor | ( | const LLColor4 & | c | ) |
void LLButton::setColor | ( | const LLColor4 & | c | ) | [virtual] |
Reimplemented from LLUICtrl.
Definition at line 829 of file llbutton.cpp.
References setImageColor().
Definition at line 812 of file llbutton.cpp.
References setImageSelected(), and setImageUnselected().
Referenced by LLTabContainer::addTabPanel(), LLFloaterColorPicker::postBuild(), LLFloaterAnimPreview::postBuild(), and LLFloaterAnimPreview::refresh().
Definition at line 861 of file llbutton.cpp.
References mImageColor, LLColor4::mV, and VALPHA.
Referenced by LLFloaterAnimPreview::postBuild().
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().
Definition at line 873 of file llbutton.cpp.
References setImageHoverSelected(), and setImageHoverUnselected().
Referenced by LLFloater::buildButtons().
void LLButton::setDisabledImageColor | ( | const LLColor4 & | c | ) | [inline] |
Definition at line 146 of file llbutton.h.
References mDisabledImageColor.
Referenced by LLNotifyBox::LLNotifyBox().
void LLButton::setDisabledSelectedLabelColor | ( | const LLColor4 & | c | ) | [inline] |
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().
Definition at line 151 of file llbutton.h.
References mImageOverlay.
Referenced by LLColumnHeader::draw(), and LLTabContainer::setTabImage().
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().
LLSD LLButton::getValue | ( | ) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 768 of file llbutton.cpp.
References mToggleState, and TRUE.
Referenced by LLCheckBoxCtrl::getValue().
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().
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.
void LLButton::setLabelUnselected | ( | const LLStringExplicit & | label | ) |
Definition at line 787 of file llbutton.cpp.
References mUnselectedLabel.
Referenced by LLComboBox::clear(), fromXML(), LLFloaterEditUI::onCommitLabel(), LLPanelPermissions::refresh(), LLProgressView::setCancelButtonVisible(), LLComboBox::setLabel(), setLabel(), LLTabContainer::setPanelTitle(), and LLPanelGroupGeneral::update().
void LLButton::setLabelSelected | ( | const LLStringExplicit & | label | ) |
Definition at line 792 of file llbutton.cpp.
References mSelectedLabel.
Referenced by LLComboBox::clear(), fromXML(), LLFloaterEditUI::onCommitLabel(), LLPanelPermissions::refresh(), LLProgressView::setCancelButtonVisible(), LLComboBox::setLabel(), setLabel(), LLTabContainer::setPanelTitle(), and LLPanelGroupGeneral::update().
void LLButton::setDisabledLabel | ( | const LLStringExplicit & | disabled_label | ) |
Definition at line 797 of file llbutton.cpp.
References mDisabledLabel.
Referenced by LLComboBox::clear(), and LLComboBox::setLabel().
void LLButton::setDisabledSelectedLabel | ( | const LLStringExplicit & | disabled_label | ) |
Definition at line 802 of file llbutton.cpp.
References mDisabledSelectedLabel.
Referenced by LLComboBox::clear(), and LLComboBox::setLabel().
void LLButton::setDisabledLabelColor | ( | const LLColor4 & | c | ) | [inline] |
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().
void LLButton::setScaleImage | ( | BOOL | scale | ) | [inline] |
Definition at line 167 of file llbutton.h.
References mScaleImage.
Referenced by LLTabContainer::addTabPanel(), LLFloater::buildButtons(), LLJoystickAgentSlide::fromXML(), LLJoystickAgentTurn::fromXML(), fromXML(), LLComboBox::LLComboBox(), LLFlyoutButton::LLFlyoutButton(), LLGroupNotifyBox::LLGroupNotifyBox(), LLNotifyBox::LLNotifyBox(), and LLFloaterAnimPreview::postBuild().
BOOL LLButton::getScaleImage | ( | ) | const [inline] |
Definition at line 168 of file llbutton.h.
References mScaleImage.
Referenced by LLJoystick::getXML().
void LLButton::setDropShadowedText | ( | BOOL | b | ) | [inline] |
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().
static void LLButton::onHeldDown | ( | void * | userdata | ) | [static] |
Reimplemented in LLJoystick.
void LLButton::setHoverGlowStrength | ( | F32 | strength | ) | [inline] |
void LLButton::setImageUnselected | ( | const LLString & | image_name | ) |
Definition at line 918 of file llbutton.cpp.
References LLUI::getUIImage(), and mImageUnselectedName.
Referenced by LLFloaterLagMeter::determineClient(), LLFloaterLagMeter::determineNetwork(), LLFloaterLagMeter::determineServer(), LLButton(), LLComboBox::LLComboBox(), LLFlyoutButton::LLFlyoutButton(), LLColumnHeader::setImage(), and setImages().
const LLString& LLButton::getImageUnselectedName | ( | ) | const [inline] |
Definition at line 179 of file llbutton.h.
References mImageUnselectedName.
Referenced by LLJoystick::getXML().
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().
const LLString& LLButton::getImageSelectedName | ( | ) | const [inline] |
Definition at line 181 of file llbutton.h.
References mImageSelectedName.
Referenced by LLJoystick::getXML().
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().
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().
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().
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().
Definition at line 835 of file llbutton.cpp.
References mDisabledImageColor, mImageColor, mImageDisabled, LLColor4::mV, and VALPHA.
Definition at line 842 of file llbutton.cpp.
References mDisabledImageColor, mImageColor, mImageDisabledSelected, LLColor4::mV, and VALPHA.
void LLButton::setCommitOnReturn | ( | BOOL | commit | ) | [inline] |
BOOL LLButton::getCommitOnReturn | ( | ) | const [inline] |
Definition at line 195 of file llbutton.h.
References mCommitOnReturn.
Referenced by LLPanel::handleKeyHere(), and LLPanel::updateDefaultBtn().
void LLButton::setHelpURLCallback | ( | const LLString & | help_url | ) |
Definition at line 1110 of file llbutton.cpp.
References clicked_help(), mHelpURL, and setClickedCallback().
Referenced by fromXML().
const LLString& LLButton::getHelpURL | ( | ) | const [inline] |
Definition at line 716 of file llbutton.cpp.
References LLView::getLocalRect(), mImagep, and mScaleImage.
Referenced by draw().
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().
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().
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] |
Definition at line 212 of file llbutton.h.
References mImageUnselected.
Referenced by LLJoystickCameraZoom::draw(), and LLJoystickCameraRotate::draw().
Definition at line 213 of file llbutton.h.
References mImageSelected.
Referenced by LLJoystickCameraRotate::draw().
LLFrameTimer LLButton::mMouseDownTimer [protected] |
Definition at line 215 of file llbutton.h.
Referenced by getHeldDownTime(), handleHover(), LLJoystick::handleMouseDown(), handleMouseDown(), handleMouseUp(), init(), and onMouseCaptureLost().
void(* LLButton::mClickedCallback)(void *data) [private] |
Referenced by handleKeyHere(), handleMouseUp(), handleUnicodeCharHere(), and onCommit().
void(* LLButton::mMouseDownCallback)(void *data) [private] |
Referenced by handleMouseDown(), onCommit(), and setMouseDownCallback().
void(* LLButton::mMouseUpCallback)(void *data) [private] |
Referenced by handleMouseUp(), onCommit(), and setMouseUpCallback().
void(* LLButton::mHeldDownCallback)(void *data) [private] |
Referenced by handleHover(), and setHeldDownCallback().
const LLFontGL* LLButton::mGLFont [private] |
S32 LLButton::mMouseDownFrame [private] |
F32 LLButton::mHeldDownDelay [private] |
S32 LLButton::mHeldDownFrameDelay [private] |
LLPointer<LLUIImage> LLButton::mImageOverlay [private] |
Definition at line 230 of file llbutton.h.
Referenced by draw(), getImageOverlay(), and setImageOverlay().
LLColor4 LLButton::mImageOverlayColor [private] |
LLPointer<LLUIImage> LLButton::mImageUnselected [private] |
Definition at line 234 of file llbutton.h.
Referenced by draw(), getImageUnselected(), and setImageUnselected().
LLUIString LLButton::mUnselectedLabel [private] |
Definition at line 235 of file llbutton.h.
Referenced by draw(), getLabelUnselected(), LLButton(), setLabelArg(), and setLabelUnselected().
LLColor4 LLButton::mUnselectedLabelColor [private] |
Definition at line 236 of file llbutton.h.
Referenced by draw(), init(), and setUnselectedLabelColor().
LLPointer<LLUIImage> LLButton::mImageSelected [private] |
Definition at line 238 of file llbutton.h.
Referenced by draw(), getImageSelected(), and setImageSelected().
LLUIString LLButton::mSelectedLabel [private] |
Definition at line 239 of file llbutton.h.
Referenced by draw(), getLabelSelected(), LLButton(), setLabelArg(), and setLabelSelected().
LLColor4 LLButton::mSelectedLabelColor [private] |
Definition at line 240 of file llbutton.h.
Referenced by draw(), init(), and setSelectedLabelColor().
LLPointer<LLUIImage> LLButton::mImageHoverSelected [private] |
LLPointer<LLUIImage> LLButton::mImageHoverUnselected [private] |
LLPointer<LLUIImage> LLButton::mImageDisabled [private] |
LLUIString LLButton::mDisabledLabel [private] |
LLColor4 LLButton::mDisabledLabelColor [private] |
Definition at line 248 of file llbutton.h.
Referenced by draw(), init(), and setDisabledLabelColor().
LLPointer<LLUIImage> LLButton::mImageDisabledSelected [private] |
LLUIString LLButton::mDisabledSelectedLabel [private] |
Definition at line 252 of file llbutton.h.
Referenced by draw(), init(), and setDisabledSelectedLabelColor().
LLUUID LLButton::mImageUnselectedID [private] |
LLUUID LLButton::mImageSelectedID [private] |
LLUUID LLButton::mImageHoverSelectedID [private] |
LLUUID LLButton::mImageHoverUnselectedID [private] |
LLUUID LLButton::mImageDisabledID [private] |
LLUUID LLButton::mImageDisabledSelectedID [private] |
LLString LLButton::mImageUnselectedName [private] |
Definition at line 260 of file llbutton.h.
Referenced by getImageUnselectedName(), getXML(), and setImageUnselected().
LLString LLButton::mImageSelectedName [private] |
Definition at line 261 of file llbutton.h.
Referenced by getImageSelectedName(), getXML(), and setImageSelected().
LLString LLButton::mImageHoverSelectedName [private] |
LLString LLButton::mImageHoverUnselectedName [private] |
LLString LLButton::mImageDisabledName [private] |
LLString LLButton::mImageDisabledSelectedName [private] |
LLColor4 LLButton::mHighlightColor [private] |
LLColor4 LLButton::mUnselectedBgColor [private] |
LLColor4 LLButton::mSelectedBgColor [private] |
LLColor4 LLButton::mImageColor [private] |
Definition at line 271 of file llbutton.h.
Referenced by draw(), LLButton(), setDisabledImages(), setImageColor(), setImageDisabled(), and setImageDisabledSelected().
LLColor4 LLButton::mDisabledImageColor [private] |
Definition at line 272 of file llbutton.h.
Referenced by draw(), LLButton(), setDisabledImageColor(), setDisabledImages(), setImageDisabled(), and setImageDisabledSelected().
BOOL LLButton::mIsToggle [private] |
Definition at line 274 of file llbutton.h.
Referenced by getIsToggle(), handleKeyHere(), handleMouseUp(), handleUnicodeCharHere(), onCommit(), and setIsToggle().
BOOL LLButton::mToggleState [private] |
Definition at line 275 of file llbutton.h.
Referenced by draw(), getToggleState(), getValue(), setToggleState(), setValue(), and toggleState().
BOOL LLButton::mScaleImage [private] |
Definition at line 276 of file llbutton.h.
Referenced by draw(), drawBorder(), getScaleImage(), getXML(), LLButton(), and setScaleImage().
BOOL LLButton::mDropShadowedText [private] |
BOOL LLButton::mBorderEnabled [private] |
BOOL LLButton::mFlashing [private] |
LLFontGL::HAlign LLButton::mHAlign [private] |
Definition at line 284 of file llbutton.h.
Referenced by draw(), getHAlign(), getXML(), and setHAlign().
S32 LLButton::mLeftHPad [private] |
Definition at line 285 of file llbutton.h.
Referenced by draw(), fromXML(), init(), and setLeftHPad().
S32 LLButton::mRightHPad [private] |
Definition at line 286 of file llbutton.h.
Referenced by draw(), fromXML(), init(), and setRightHPad().
F32 LLButton::mHoverGlowStrength [private] |
F32 LLButton::mCurGlowStrength [private] |
BOOL LLButton::mNeedsHighlight [private] |
BOOL LLButton::mCommitOnReturn [private] |
Definition at line 292 of file llbutton.h.
Referenced by draw(), getCommitOnReturn(), handleKeyHere(), and setCommitOnReturn().
LLString LLButton::mHelpURL [private] |
LLPointer<LLUIImage> LLButton::mImagep [private] |
LLFrameTimer LLButton::mFlashingTimer [private] |