Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsTextWidget.cpp File Reference
#include "nsTextWidget.h"
#include "nsToolkit.h"
#include "nsColor.h"
#include "nsGUIEvent.h"
#include "nsString.h"
#include <os2.h>
#include "nsILookAndFeel.h"
#include "nsWidgetsCID.h"
#include "nsIComponentManager.h"
#include "nsIDeviceContext.h"
#include "nsIFontMetrics.h"

Go to the source code of this file.

Functions

static NS_DEFINE_IID (kLookAndFeelCID, NS_LOOKANDFEEL_CID)
nsresult NS_NewTextWidget (nsITextWidget **aControl)

Function Documentation

static NS_DEFINE_IID ( kLookAndFeelCID  ,
NS_LOOKANDFEEL_CID   
) [static]

Definition at line 57 of file nsTextWidget.cpp.

{
  NS_PRECONDITION(aControl, "null OUT ptr");
  if (nsnull == aControl) {
    return NS_ERROR_NULL_POINTER;
  }
  nsTextWidget* it = new nsTextWidget;
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  NS_ADDREF(it);
  *aControl = (nsITextWidget*)it;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: