#include <lluictrl.h>
Public Member Functions | |
LLFocusableElement () | |
virtual | ~LLFocusableElement () |
virtual void | setFocus (BOOL b) |
virtual BOOL | hasFocus () const |
void | setFocusLostCallback (void(*cb)(LLFocusableElement *caller, void *), void *user_data=NULL) |
void | setFocusReceivedCallback (void(*cb)(LLFocusableElement *, void *), void *user_data=NULL) |
void | setFocusChangedCallback (void(*cb)(LLFocusableElement *, void *), void *user_data=NULL) |
Protected Member Functions | |
virtual void | onFocusReceived () |
virtual void | onFocusLost () |
Protected Attributes | |
void(* | mFocusLostCallback )(LLFocusableElement *caller, void *userdata) |
void(* | mFocusReceivedCallback )(LLFocusableElement *ctrl, void *userdata) |
void(* | mFocusChangedCallback )(LLFocusableElement *ctrl, void *userdata) |
void * | mFocusCallbackUserData |
Friends | |
class | LLFocusMgr |
Definition at line 41 of file lluictrl.h.
LLFocusableElement::LLFocusableElement | ( | ) |
Definition at line 41 of file lluictrl.cpp.
LLFocusableElement::~LLFocusableElement | ( | ) | [virtual] |
Definition at line 50 of file lluictrl.cpp.
void LLFocusableElement::setFocus | ( | BOOL | b | ) | [virtual] |
Reimplemented in LLComboBox, LLFloater, LLLineEditor, LLPanel, LLScrollListCtrl, LLSpinCtrl, LLTextEditor, LLUICtrl, LLFolderView, LLPanelLogin, and LLVoiceHotkeySelectDialog.
Definition at line 84 of file lluictrl.cpp.
BOOL LLFocusableElement::hasFocus | ( | ) | const [virtual] |
void LLFocusableElement::setFocusLostCallback | ( | void(*)(LLFocusableElement *caller, void *) | cb, | |
void * | user_data = NULL | |||
) | [inline] |
Definition at line 51 of file lluictrl.h.
References mFocusCallbackUserData, and mFocusLostCallback.
Referenced by LLLineEditor::LLLineEditor(), LLFloaterIMPanel::postBuild(), LLPanelLandObjects::postBuild(), and LLChatBar::postBuild().
void LLFocusableElement::setFocusReceivedCallback | ( | void(*)(LLFocusableElement *, void *) | cb, | |
void * | user_data = NULL | |||
) | [inline] |
Definition at line 52 of file lluictrl.h.
References mFocusCallbackUserData, and mFocusReceivedCallback.
Referenced by LLMultiSliderCtrl::LLMultiSliderCtrl(), LLSliderCtrl::LLSliderCtrl(), LLSpinCtrl::LLSpinCtrl(), LLPanelGroupGeneral::postBuild(), LLPanelClassified::postBuild(), LLFloaterIMPanel::postBuild(), LLChatBar::postBuild(), and LLPanelGroupRolesSubTab::postBuildSubTab().
void LLFocusableElement::setFocusChangedCallback | ( | void(*)(LLFocusableElement *, void *) | cb, | |
void * | user_data = NULL | |||
) | [inline] |
Definition at line 53 of file lluictrl.h.
References mFocusCallbackUserData, and mFocusChangedCallback.
Referenced by LLPanel::childSetFocusChangedCallback(), LLPanelGroupGeneral::postBuild(), and LLFloaterPostcard::postBuild().
void LLFocusableElement::onFocusReceived | ( | ) | [protected, virtual] |
Reimplemented in LLLineEditor, LLTearOffMenu, LLScrollListCtrl, LLTextEditor, LLUICtrl, LLFloaterInspect, LLFloaterTools, and LLWebBrowserCtrl.
Definition at line 54 of file lluictrl.cpp.
References mFocusCallbackUserData, mFocusChangedCallback, and mFocusReceivedCallback.
Referenced by LLUICtrl::onFocusReceived().
void LLFocusableElement::onFocusLost | ( | ) | [protected, virtual] |
Reimplemented in LLComboBox, LLLineEditor, LLTearOffMenu, LLScrollListCtrl, LLTextEditor, LLUICtrl, LLFolderView, and LLWebBrowserCtrl.
Definition at line 66 of file lluictrl.cpp.
References mFocusCallbackUserData, mFocusChangedCallback, and mFocusLostCallback.
Referenced by LLUICtrl::onFocusLost().
friend class LLFocusMgr [friend] |
Definition at line 43 of file lluictrl.h.
void(* LLFocusableElement::mFocusLostCallback)(LLFocusableElement *caller, void *userdata) [protected] |
Referenced by onFocusLost(), and setFocusLostCallback().
void(* LLFocusableElement::mFocusReceivedCallback)(LLFocusableElement *ctrl, void *userdata) [protected] |
Referenced by onFocusReceived(), and setFocusReceivedCallback().
void(* LLFocusableElement::mFocusChangedCallback)(LLFocusableElement *ctrl, void *userdata) [protected] |
Referenced by onFocusLost(), onFocusReceived(), and setFocusChangedCallback().
void* LLFocusableElement::mFocusCallbackUserData [protected] |
Definition at line 61 of file lluictrl.h.
Referenced by onFocusLost(), onFocusReceived(), setFocusChangedCallback(), setFocusLostCallback(), and setFocusReceivedCallback().