#include <lljoystickbutton.h>
Inheritance diagram for LLJoystickAgentSlide:
Public Member Functions | |
LLJoystickAgentSlide (const LLString &name, LLRect rect, const LLString &default_image, const LLString &selected_image, EJoystickQuadrant initial) | |
virtual EWidgetType | getWidgetType () const |
virtual LLString | getWidgetTag () const |
virtual void | onHeldDown () |
virtual void | onMouseUp () |
Static Public Member Functions | |
static LLView * | fromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) |
Definition at line 108 of file lljoystickbutton.h.
LLJoystickAgentSlide::LLJoystickAgentSlide | ( | const LLString & | name, | |
LLRect | rect, | |||
const LLString & | default_image, | |||
const LLString & | selected_image, | |||
EJoystickQuadrant | initial | |||
) | [inline] |
LLView * LLJoystickAgentSlide::fromXML | ( | LLXMLNodePtr | node, | |
LLView * | parent, | |||
LLUICtrlFactory * | factory | |||
) | [static] |
Reimplemented from LLButton.
Definition at line 433 of file lljoystickbutton.cpp.
References FALSE, LLUICtrl::initFromXML(), JQ_ORIGIN, LLJoystickAgentSlide(), LLView::selectFontHAlign(), LLJoystick::selectQuadrant(), LLButton::setHAlign(), and LLButton::setScaleImage().
virtual LLString LLJoystickAgentSlide::getWidgetTag | ( | ) | const [inline, virtual] |
Reimplemented from LLButton.
Definition at line 117 of file lljoystickbutton.h.
References LL_JOYSTICK_SLIDE.
virtual EWidgetType LLJoystickAgentSlide::getWidgetType | ( | ) | const [inline, virtual] |
Reimplemented from LLButton.
Definition at line 116 of file lljoystickbutton.h.
References WIDGET_TYPE_JOYSTICK_SLIDE.
void LLJoystickAgentSlide::onHeldDown | ( | ) | [virtual] |
Implements LLJoystick.
Definition at line 389 of file lljoystickbutton.cpp.
References gAgent, LLJoystick::mFirstMouse, LLJoystick::mHorizSlopNear, LLJoystick::mInitialOffset, LLJoystick::mLastMouse, LLAgent::moveAt(), LLAgent::moveAtNudge(), LLAgent::moveLeft(), LLJoystick::mVertSlopFar, LLJoystick::mVertSlopNear, LLCoord::mX, LLCoord::mY, S32, and LLJoystick::updateSlop().
void LLJoystickAgentSlide::onMouseUp | ( | ) | [virtual] |
Reimplemented from LLJoystick.
Definition at line 368 of file lljoystickbutton.cpp.
References gAgent, LLJoystick::getElapsedHeldDownTime(), JQ_LEFT, JQ_RIGHT, LLJoystick::mInitialQuadrant, LLAgent::moveLeftNudge(), and NUDGE_TIME.