Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsLabel.cpp File Reference
#include "nsLabel.h"
#include "nsILabel.h"
#include "nsToolkit.h"
#include "nsColor.h"
#include "nsGUIEvent.h"
#include "nsString.h"
#include "nsStringUtil.h"
#include "nsIFontMetrics.h"
#include "nsIDeviceContext.h"
#include <windows.h>

Go to the source code of this file.

Functions

nsresult NS_NewLabel (nsILabel **aControl)

Function Documentation

nsresult NS_NewLabel ( nsILabel **  aControl)

Definition at line 51 of file nsLabel.cpp.

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

Here is the call graph for this function: