Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
StCaretHider Class Reference

#include <nsICaret.h>

Collaboration diagram for StCaretHider:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 StCaretHider (nsICaret *aSelCon)
 ~StCaretHider ()

Protected Attributes

PRBool mWasVisible
nsCOMPtr< nsICaretmCaret

Detailed Description

Definition at line 136 of file nsICaret.h.


Constructor & Destructor Documentation

StCaretHider::StCaretHider ( nsICaret aSelCon) [inline]

Definition at line 139 of file nsICaret.h.

               : mWasVisible(PR_FALSE), mCaret(aSelCon)
               {
                 if (mCaret)
                 {
                   mCaret->GetCaretVisible(&mWasVisible);
                   if (mWasVisible)
                     mCaret->SetCaretVisible(PR_FALSE);
                 }
               }

Definition at line 150 of file nsICaret.h.

               {
                 if (mCaret && mWasVisible)
                   mCaret->SetCaretVisible(PR_TRUE);
                 // nsCOMPtr releases mPresShell
               }

Member Data Documentation

Definition at line 160 of file nsICaret.h.

Definition at line 159 of file nsICaret.h.


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