nsIBaseWindow

IID:046BC8A0-8015-11d3-AF70-00A024FFC08C
Inherits From:nsISupports

The nsIBaseWindow describes a generic window and basic operations that can be performed on it. This is not to be a complete windowing interface but rather a common set that nearly all windowed objects support.

This interface is implemented by the following components:


Properties

PRBool blurSuppression

Set blurSuppression to true to suppress handling of blur events. set it false to re-enable them. query it to determine whether blur events are suppressed. The implementation should allow for blur events to be suppressed multiple times.

PRBool enabled

[noscript] readonly nsIWidget mainWidget

nativeWindow parentNativeWindow

[noscript] nsIWidget parentWidget

PRUnichar* title

PRBool visibility


Methods

void create ( ) void destroy ( ) void getPosition ( out PRInt32 x , out PRInt32 y ) void getPositionAndSize ( out PRInt32 x , out PRInt32 y , out PRInt32 cx , out PRInt32 cy ) void getSize ( out PRInt32 cx , out PRInt32 cy ) [noscript] void initWindow ( nativeWindow parentNativeWindow , nsIWidget parentWidget , PRInt32 x , PRInt32 y , PRInt32 cx , PRInt32 cy ) void repaint ( PRBool force ) void setFocus ( ) void setPosition ( PRInt32 x , PRInt32 y ) void setPositionAndSize ( PRInt32 x , PRInt32 y , PRInt32 cx , PRInt32 cy , PRBool fRepaint ) void setSize ( PRInt32 cx , PRInt32 cy , PRBool fRepaint )

void create ( )


void destroy ( )


void getPosition ( out PRInt32 x , out PRInt32 y )

Arguments:
x
y

void getPositionAndSize ( out PRInt32 x , out PRInt32 y , out PRInt32 cx , out PRInt32 cy )

Arguments:
x
y
cx
cy

void getSize ( out PRInt32 cx , out PRInt32 cy )

Arguments:
cx
cy

void initWindow ( nativeWindow parentNativeWindow , nsIWidget parentWidget , PRInt32 x , PRInt32 y , PRInt32 cx , PRInt32 cy )

Arguments:
parentNativeWindow
parentWidget
x
y
cx
cy

void repaint ( PRBool force )

Tell the window to repaint itself

Arguments:
force: - if true, repaint immediately if false, the window may defer repainting as it sees fit.

void setFocus ( )

Give the window focus.


void setPosition ( PRInt32 x , PRInt32 y )

Arguments:
x
y

void setPositionAndSize ( PRInt32 x , PRInt32 y , PRInt32 cx , PRInt32 cy , PRBool fRepaint )

Arguments:
x
y
cx
cy
fRepaint

void setSize ( PRInt32 cx , PRInt32 cy , PRBool fRepaint )

Arguments:
cx
cy
fRepaint

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com