LLFocusableElement Class Reference

#include <lluictrl.h>

Inheritance diagram for LLFocusableElement:

Inheritance graph
[legend]

List of all members.

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


Detailed Description

Definition at line 41 of file lluictrl.h.


Constructor & Destructor Documentation

LLFocusableElement::LLFocusableElement (  ) 

Definition at line 41 of file lluictrl.cpp.

LLFocusableElement::~LLFocusableElement (  )  [virtual]

Definition at line 50 of file lluictrl.cpp.


Member Function Documentation

void LLFocusableElement::setFocus ( BOOL  b  )  [virtual]

BOOL LLFocusableElement::hasFocus (  )  const [virtual]

Reimplemented in LLUICtrl.

Definition at line 79 of file lluictrl.cpp.

References FALSE.

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().

Here is the caller graph for this function:

void LLFocusableElement::setFocusReceivedCallback ( void(*)(LLFocusableElement *, void *)  cb,
void *  user_data = NULL 
) [inline]

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class LLFocusMgr [friend]

Definition at line 43 of file lluictrl.h.


Member Data Documentation

void(* LLFocusableElement::mFocusLostCallback)(LLFocusableElement *caller, void *userdata) [protected]

void(* LLFocusableElement::mFocusReceivedCallback)(LLFocusableElement *ctrl, void *userdata) [protected]

void(* LLFocusableElement::mFocusChangedCallback)(LLFocusableElement *ctrl, void *userdata) [protected]


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

Generated on Fri May 16 08:47:15 2008 for SecondLife by  doxygen 1.5.5