Logo Search packages:      
Sourcecode: xulrunner version File versions

nsIWidget Class Reference

#include <nsIWidget.h>

Inheritance diagram for nsIWidget:

nsISupports nsBaseWidget nsWidget nsWindow nsWindow nsWindow nsWindow nsWindow

List of all members.

Detailed Description

The base class for all the widgets. It provides the interface for all basic and necessary functionality.

Definition at line 267 of file nsIWidget.h.

Public Types

enum  Modifiers {
  CAPS_LOCK = 0x01, NUM_LOCK = 0x02, SHIFT_L = 0x0100, SHIFT_R = 0x0200,
  CTRL_L = 0x0400, CTRL_R = 0x0800, ALT_L = 0x1000, ALT_R = 0x2000,
  COMMAND = 0x4000, HELP = 0x8000, FUNCTION = 0x10000, NUMERIC_KEY_PAD = 0x01000000

Public Member Functions

NS_IMETHOD AddEventListener (nsIEventListener *aListener)=0
NS_IMETHOD AddMouseListener (nsIMouseListener *aListener)=0
NS_IMETHOD BeginResizeDrag (nsGUIEvent *aEvent, PRInt32 aHorizontal, PRInt32 aVertical)=0
NS_IMETHOD BeginResizingChildren (void)=0
NS_IMETHOD BeginSecureKeyboardInput ()=0
NS_IMETHOD CaptureMouse (PRBool aCapture)=0
NS_IMETHOD CaptureRollupEvents (nsIRollupListener *aListener, PRBool aDoCapture, PRBool aConsumeRollupEvent)=0
NS_IMETHOD ConstrainPosition (PRBool aAllowSlop, PRInt32 *aX, PRInt32 *aY)=0
virtual void ConvertToDeviceCoordinates (nscoord &aX, nscoord &aY)=0
NS_IMETHOD Create (nsNativeWidget aParent, const nsRect &aRect, EVENT_CALLBACK aHandleEventFunction, nsIDeviceContext *aContext, nsIAppShell *aAppShell=nsnull, nsIToolkit *aToolkit=nsnull, nsWidgetInitData *aInitData=nsnull)=0
NS_IMETHOD Create (nsIWidget *aParent, const nsRect &aRect, EVENT_CALLBACK aHandleEventFunction, nsIDeviceContext *aContext, nsIAppShell *aAppShell=nsnull, nsIToolkit *aToolkit=nsnull, nsWidgetInitData *aInitData=nsnull)=0
NS_IMETHOD Destroy (void)=0
NS_IMETHOD DispatchEvent (nsGUIEvent *event, nsEventStatus &aStatus)=0
NS_IMETHOD Enable (PRBool aState)=0
NS_IMETHOD EnableDragDrop (PRBool aEnable)=0
NS_IMETHOD EndResizingChildren (void)=0
NS_IMETHOD EndSecureKeyboardInput ()=0
NS_IMETHOD GetAttention (PRInt32 aCycleCount)=0
virtual nscolor GetBackgroundColor (void)=0
NS_IMETHOD GetBorderSize (PRInt32 &aWidth, PRInt32 &aHeight)=0
NS_IMETHOD GetBounds (nsRect &aRect)=0
NS_IMETHOD GetClientBounds (nsRect &aRect)=0
virtual nsCursor GetCursor (void)=0
nsIWidgetGetFirstChild () const
virtual nscolor GetForegroundColor (void)=0
NS_IMETHOD GetHasTransparentBackground (PRBool &aTransparent)=0
nsIWidgetGetLastChild () const
NS_IMETHOD GetLastInputEventTime (PRUint32 &aTime)=0
virtual nsIContentGetLastRollup ()=0
nsIWidgetGetNextSibling () const
virtual nsIWidgetGetParent (void)=0
NS_IMETHOD GetPreferredSize (PRInt32 &aWidth, PRInt32 &aHeight)=0
nsIWidgetGetPrevSibling () const
NS_IMETHOD GetScreenBounds (nsRect &aRect)=0
virtual nsIWidgetGetSheetWindowParent (void)=0
NS_IMETHOD GetSizeMode (PRInt32 *aMode)=0
virtual gfxASurfaceGetThebesSurface ()=0
virtual nsIToolkit * GetToolkit ()=0
NS_IMETHOD GetWindowType (nsWindowType &aWindowType)=0
NS_IMETHOD GetZIndex (PRInt32 *aZIndex)=0
NS_IMETHOD HideWindowChrome (PRBool aShouldHide)=0
NS_IMETHOD Invalidate (const nsRect &aRect, PRBool aIsSynchronous)=0
NS_IMETHOD Invalidate (PRBool aIsSynchronous)=0
NS_IMETHOD InvalidateRegion (const nsIRegion *aRegion, PRBool aIsSynchronous)=0
NS_IMETHOD IsEnabled (PRBool *aState)=0
NS_IMETHOD IsVisible (PRBool &aState)=0
NS_IMETHOD MakeFullScreen (PRBool aFullScreen)=0
NS_IMETHOD ModalEventFilter (PRBool aRealEvent, void *aEvent, PRBool *aForWindow)=0
NS_IMETHOD Move (PRInt32 aX, PRInt32 aY)=0
NS_IMETHOD PlaceBehind (nsTopLevelWidgetZPlacement aPlacement, nsIWidget *aWidget, PRBool aActivate)=0
NS_IMETHOD Resize (PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)=0
NS_IMETHOD Resize (PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)=0
NS_IMETHOD ScreenToWidget (const nsRect &aOldRect, nsRect &aNewRect)=0
NS_IMETHOD Scroll (PRInt32 aDx, PRInt32 aDy, nsRect *aClipRect)=0
NS_IMETHOD ScrollRect (nsRect &aSrcRect, PRInt32 aDx, PRInt32 aDy)=0
NS_IMETHOD ScrollWidgets (PRInt32 aDx, PRInt32 aDy)=0
NS_IMETHOD SetBackgroundColor (const nscolor &aColor)=0
NS_IMETHOD SetBorderStyle (nsBorderStyle aBorderStyle)=0
NS_IMETHOD SetColorMap (nsColorMap *aColorMap)=0
NS_IMETHOD SetCursor (imgIContainer *aCursor, PRUint32 aHotspotX, PRUint32 aHotspotY)=0
NS_IMETHOD SetCursor (nsCursor aCursor)=0
NS_IMETHOD SetFocus (PRBool aRaise=PR_FALSE)=0
NS_IMETHOD SetForegroundColor (const nscolor &aColor)=0
NS_IMETHOD SetHasTransparentBackground (PRBool aTransparent)=0
NS_IMETHOD SetIcon (const nsAString &anIconSpec)=0
NS_IMETHOD SetMenuBar (nsIMenuBar *aMenuBar)=0
NS_IMETHOD SetModal (PRBool aModal)=0
void SetNextSibling (nsIWidget *aSibling)
NS_IMETHOD SetParent (nsIWidget *aNewParent)=0
NS_IMETHOD SetPreferredSize (PRInt32 aWidth, PRInt32 aHeight)=0
void SetPrevSibling (nsIWidget *aSibling)
NS_IMETHOD SetSizeMode (PRInt32 aMode)=0
NS_IMETHOD SetTitle (const nsAString &aTitle)=0
NS_IMETHOD SetWindowClass (const nsAString &xulWinType)=0
NS_IMETHOD SetWindowTitlebarColor (nscolor aColor, PRBool aActive)=0
NS_IMETHOD SetZIndex (PRInt32 aZIndex)=0
NS_IMETHOD Show (PRBool aState)=0
NS_IMETHOD ShowMenuBar (PRBool aShow)=0
virtual nsresult SynthesizeNativeKeyEvent (PRInt32 aNativeKeyboardLayout, PRInt32 aNativeKeyCode, PRUint32 aModifierFlags, const nsAString &aCharacters, const nsAString &aUnmodifiedCharacters)=0
NS_IMETHOD Update ()=0
NS_IMETHOD Validate ()=0
NS_IMETHOD WidgetToScreen (const nsRect &aOldRect, nsRect &aNewRect)=0
virtual void AddChild (nsIWidget *aChild)=0
virtual void FreeNativeData (void *data, PRUint32 aDataType)=0
virtual nsIDeviceContext * GetDeviceContext ()=0
virtual void * GetNativeData (PRUint32 aDataType)=0
virtual nsIRenderingContext * GetRenderingContext ()=0
virtual void RemoveChild (nsIWidget *aChild)=0
NS_IMETHOD GetClientData (void *&aClientData)=0
NS_IMETHOD SetClientData (void *aClientData)=0
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Protected Attributes

nsCOMPtr< nsIWidgetmFirstChild
nsCOMPtr< nsIWidgetmNextSibling

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

Generated by  Doxygen 1.6.0   Back to index