Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsButton.cpp File Reference
#include "nsButton.h"
#include "nsToolkit.h"
#include "nsColor.h"
#include "nsGUIEvent.h"
#include "nsString.h"
#include "nsStringUtil.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_NewButton (nsIButton **aControl)

Function Documentation

static NS_DEFINE_IID ( kLookAndFeelCID  ,
NS_LOOKANDFEEL_CID   
) [static]
nsresult NS_NewButton ( nsIButton **  aControl)

Definition at line 57 of file nsButton.cpp.

{
  NS_PRECONDITION(aControl, "null OUT ptr");
  if (nsnull == aControl) {
    return NS_ERROR_NULL_POINTER;
  }
  nsButton* it = new nsButton;
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  NS_ADDREF(it);
  // set the state flags (if any are provided)
  *aControl = (nsIButton*)it;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: