Back to index

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

Go to the source code of this file.

Functions

nsresult NS_NewCheckButton (nsICheckButton **aControl)

Function Documentation

Definition at line 54 of file nsCheckButton.cpp.

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

Here is the call graph for this function: