#include <llslider.h>
Inheritance diagram for LLSlider:
Definition at line 40 of file llslider.h.
LLSlider::LLSlider | ( | const LLString & | name, | |
const LLRect & | rect, | |||
void(*)(LLUICtrl *ctrl, void *userdata) | on_commit_callback, | |||
void * | callback_userdata, | |||
F32 | initial_value, | |||
F32 | min_value, | |||
F32 | max_value, | |||
F32 | increment, | |||
BOOL | volume, | |||
const LLString & | control_name = LLString::null | |||
) |
Definition at line 47 of file llslider.cpp.
References getValueF32(), NULL, LLView::setControlName(), and setValue().
Referenced by fromXML().
void LLSlider::draw | ( | ) | [virtual] |
Reimplemented from LLView.
Definition at line 250 of file llslider.cpp.
References LLView::draw(), f, FALSE, LLFocusMgr::getFocusColor(), LLFocusMgr::getFocusFlashAmt(), LLRectBase< Type >::getHeight(), LLImageProviderInterface::getUIImageByID(), LLView::getVisible(), LLRectBase< Type >::getWidth(), gFocusMgr, gl_draw_scaled_image_with_border(), gl_rect_2d(), gl_triangle_2d(), LLUICtrl::hasFocus(), LLView::hasMouseCapture(), lerp(), llround(), LLRectBase< Type >::mBottom, mDragStartThumbRect, LLView::mEnabled, LLRectBase< Type >::mLeft, LLView::mRect, mThumbCenterColor, mThumbOutlineColor, mThumbRect, mTrackColor, mVolumeSlider, NULL, S32, LLUI::sAssetsGroup, LLUUID::set(), LLUI::sImageProvider, LLRectBase< Type >::stretch(), TRACK_HEIGHT, and TRUE.
LLView * LLSlider::fromXML | ( | LLXMLNodePtr | node, | |
LLView * | parent, | |||
LLUICtrlFactory * | factory | |||
) | [static] |
Definition at line 397 of file llslider.cpp.
References LLView::createRect(), FALSE, LLUICtrl::initFromXML(), LLSlider(), NULL, and TRUE.
F32 LLSlider::getIncrement | ( | ) | const [inline] |
Definition at line 72 of file llslider.h.
References mIncrement.
Referenced by LLSliderCtrl::getXML(), getXML(), and handleKeyHere().
F32 LLSlider::getInitialValue | ( | ) | const [inline] |
Definition at line 69 of file llslider.h.
References mInitialValue.
Referenced by LLSliderCtrl::getXML(), and getXML().
F32 LLSlider::getMaxValue | ( | ) | const [inline] |
Definition at line 71 of file llslider.h.
References mMaxValue.
Referenced by LLSliderCtrl::getMaxValue(), LLSliderCtrl::getXML(), and getXML().
F32 LLSlider::getMinValue | ( | ) | const [inline] |
Definition at line 70 of file llslider.h.
References mMinValue.
Referenced by LLSliderCtrl::getMinValue(), LLSliderCtrl::getXML(), and getXML().
virtual LLSD LLSlider::getValue | ( | ) | const [inline, virtual] |
Reimplemented from LLUICtrl.
Definition at line 64 of file llslider.h.
References getValueF32().
Referenced by LLPanelDeviceSettings::refresh().
F32 LLSlider::getValueF32 | ( | ) | const |
Definition at line 133 of file llslider.cpp.
References mValue.
Referenced by getValue(), LLSliderCtrl::getValueF32(), handleKeyHere(), LLSlider(), and LLSliderCtrl::setValue().
BOOL LLSlider::getVolumeSlider | ( | ) | const [inline] |
LLString LLSlider::getWidgetTag | ( | ) | const [virtual] |
EWidgetType LLSlider::getWidgetType | ( | ) | const [virtual] |
LLXMLNodePtr LLSlider::getXML | ( | bool | save_children = true |
) | const [virtual] |
Reimplemented from LLUICtrl.
Definition at line 382 of file llslider.cpp.
References getIncrement(), getInitialValue(), getMaxValue(), getMinValue(), getVolumeSlider(), LLUICtrl::getXML(), and TRUE.
Reimplemented from LLView.
Definition at line 138 of file llslider.cpp.
References LLView::getName(), LLRectBase< Type >::getWidth(), LLView::getWindow(), LLView::hasMouseCapture(), llclamp(), lldebugst, llendl, mMaxValue, mMinValue, mMouseOffset, LLView::mRect, S32, LLWindow::setCursor(), setValueAndCommit(), t, THUMB_WIDTH, TRUE, and UI_CURSOR_ARROW.
Reimplemented from LLView.
Definition at line 223 of file llslider.cpp.
References FALSE, getIncrement(), getValueF32(), LLView::getVisible(), KEY_DOWN, KEY_LEFT, KEY_RIGHT, KEY_UP, LLView::mEnabled, setValueAndCommit(), and TRUE.
Reimplemented from LLView.
Definition at line 185 of file llslider.cpp.
References LLUICtrl::getIsChrome(), gFocusMgr, make_ui_sound(), MASK_CONTROL, LLUICtrl::mCallbackUserData, mDragStartThumbRect, mInitialValue, LLRectBase< Type >::mLeft, mMouseDownCallback, mMouseOffset, mThumbRect, LLRectBase< Type >::pointInRect(), LLUICtrl::setFocus(), LLFocusMgr::setMouseCapture(), setValueAndCommit(), THUMB_WIDTH, and TRUE.
Reimplemented from LLView.
Definition at line 162 of file llslider.cpp.
References FALSE, gFocusMgr, LLView::hasMouseCapture(), make_ui_sound(), LLUICtrl::mCallbackUserData, mMouseUpCallback, NULL, LLFocusMgr::setMouseCapture(), and TRUE.
Definition at line 76 of file llslider.h.
References mIncrement.
Referenced by LLSliderCtrl::setIncrement().
Reimplemented from LLUICtrl.
Definition at line 67 of file llslider.h.
References LLSD::asReal().
Referenced by LLSliderCtrl::setMaxValue().
Reimplemented from LLUICtrl.
Definition at line 66 of file llslider.h.
References LLSD::asReal().
Referenced by LLSliderCtrl::setMinValue().
Definition at line 77 of file llslider.h.
References mMouseDownCallback.
Referenced by LLSliderCtrl::setSliderMouseDownCallback().
Definition at line 78 of file llslider.h.
References mMouseUpCallback.
Referenced by LLSliderCtrl::setSliderMouseUpCallback().
Reimplemented from LLView.
Definition at line 63 of file llslider.h.
References LLSD::asReal(), setValue(), and TRUE.
Definition at line 94 of file llslider.cpp.
References LLRectBase< Type >::getWidth(), llclamp(), mIncrement, LLRectBase< Type >::mLeft, mMaxValue, mMinValue, LLView::mRect, LLRectBase< Type >::mRight, mThumbRect, mValue, S32, LLView::setControlValue(), t, THUMB_WIDTH, and x.
Referenced by LLSlider(), LLPanelDeviceSettings::postBuild(), LLSliderCtrl::setValue(), setValue(), and setValueAndCommit().
Definition at line 121 of file llslider.cpp.
References mValue, LLUICtrl::onCommit(), and setValue().
Referenced by handleHover(), handleKeyHere(), and handleMouseDown().
LLColor4 LLSlider::mDisabledThumbColor [protected] |
Definition at line 104 of file llslider.h.
LLRect LLSlider::mDragStartThumbRect [protected] |
F32 LLSlider::mIncrement [protected] |
Definition at line 94 of file llslider.h.
Referenced by getIncrement(), setIncrement(), and setValue().
F32 LLSlider::mInitialValue [protected] |
F32 LLSlider::mMaxValue [protected] |
Definition at line 93 of file llslider.h.
Referenced by getMaxValue(), handleHover(), setMaxValue(), and setValue().
F32 LLSlider::mMinValue [protected] |
Definition at line 92 of file llslider.h.
Referenced by getMinValue(), handleHover(), setMinValue(), and setValue().
void(* LLSlider::mMouseDownCallback)(LLUICtrl *ctrl, void *userdata) [protected] |
Referenced by handleMouseDown(), and setMouseDownCallback().
S32 LLSlider::mMouseOffset [protected] |
void(* LLSlider::mMouseUpCallback)(LLUICtrl *ctrl, void *userdata) [protected] |
Referenced by handleMouseUp(), and setMouseUpCallback().
LLColor4 LLSlider::mThumbCenterColor [protected] |
LLColor4 LLSlider::mThumbOutlineColor [protected] |
LLRect LLSlider::mThumbRect [protected] |
LLColor4 LLSlider::mTrackColor [protected] |
F32 LLSlider::mValue [protected] |
Definition at line 90 of file llslider.h.
Referenced by getValueF32(), setValue(), and setValueAndCommit().
BOOL LLSlider::mVolumeSlider [protected] |