Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsStyleUserInterface Struct Reference

#include <nsStyleStruct.h>

Inheritance diagram for nsStyleUserInterface:
Inheritance graph
[legend]
Collaboration diagram for nsStyleUserInterface:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsStyleUserInterface (void)
 nsStyleUserInterface (const nsStyleUserInterface &aOther)
 ~nsStyleUserInterface (void)
voidoperator new (size_t sz, nsPresContext *aContext) CPP_THROW_NEW
void Destroy (nsPresContext *aContext)
nsChangeHint CalcDifference (const nsStyleUserInterface &aOther) const
void CopyCursorArrayFrom (const nsStyleUserInterface &aSource)

Public Attributes

PRUint8 mUserInput
PRUint8 mUserModify
PRUint8 mUserFocus
PRUint8 mCursor
PRUint32 mCursorArrayLength
nsCursorImagemCursorArray

Detailed Description

Definition at line 1158 of file nsStyleStruct.h.


Constructor & Destructor Documentation

Definition at line 1634 of file nsStyleStruct.cpp.

                                                                              :
  mUserInput(aSource.mUserInput),
  mUserModify(aSource.mUserModify),
  mUserFocus(aSource.mUserFocus),
  mCursor(aSource.mCursor)
{ 
  CopyCursorArrayFrom(aSource);
}

Here is the call graph for this function:

Definition at line 1643 of file nsStyleStruct.cpp.

{ 
  delete [] mCursorArray;
}

Here is the caller graph for this function:


Member Function Documentation

Definition at line 1648 of file nsStyleStruct.cpp.

{
  nsChangeHint hint = nsChangeHint(0);
  if (mCursor != aOther.mCursor)
    NS_UpdateHint(hint, nsChangeHint_UpdateCursor);

  // We could do better. But it wouldn't be worth it, URL-specified cursors are
  // rare.
  if (mCursorArrayLength > 0 || aOther.mCursorArrayLength > 0)
    NS_UpdateHint(hint, nsChangeHint_UpdateCursor);

  if (mUserModify != aOther.mUserModify)
    NS_UpdateHint(hint, NS_STYLE_HINT_VISUAL);
  
  if ((mUserInput != aOther.mUserInput) &&
      ((NS_STYLE_USER_INPUT_NONE == mUserInput) || 
       (NS_STYLE_USER_INPUT_NONE == aOther.mUserInput))) {
    NS_UpdateHint(hint, NS_STYLE_HINT_FRAMECHANGE);
  }

  // ignore mUserFocus

  return hint;
}

Here is the call graph for this function:

Definition at line 1682 of file nsStyleStruct.cpp.

Here is the caller graph for this function:

Definition at line 1168 of file nsStyleStruct.h.

                                        {
    this->~nsStyleUserInterface();
    aContext->FreeToShell(sizeof(nsStyleUserInterface), this);
  };

Here is the call graph for this function:

Here is the caller graph for this function:

void* nsStyleUserInterface::operator new ( size_t  sz,
nsPresContext aContext 
) [inline]

Definition at line 1165 of file nsStyleStruct.h.

                                                                       {
    return aContext->AllocateFromShell(sz);
  }

Member Data Documentation

Definition at line 1182 of file nsStyleStruct.h.

Definition at line 1185 of file nsStyleStruct.h.

Definition at line 1184 of file nsStyleStruct.h.

Definition at line 1180 of file nsStyleStruct.h.

Definition at line 1178 of file nsStyleStruct.h.

Definition at line 1179 of file nsStyleStruct.h.


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