Linux Mac OSX Windows

Implemented by

 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.    
[scriptable, uuid(046bc8a0-8015-11d3-af70-00a024ffc08c)]
interface nsIBaseWindow : nsISupports

Attributes

 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.
attribute boolean blurSuppression

        
attribute boolean enabled

        
[noscript] readonly attribute nsIWidget mainWidget

        
attribute nativeWindow parentNativeWindow

        
[noscript] attribute nsIWidget parentWidget

        
attribute wstring title

        
attribute boolean visibility

Methods


        
void create()

        
void destroy()

        
void getPosition(out long x, out long y)

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

        
void getSize(out long cx, out long cy)

        
[noscript] void initWindow(in nativeWindow parentNativeWindow, in nsIWidget parentWidget, in long x, in long y, in long cx, in long cy)
 
 Tell the window to repaint itself
 @param aForce - if true, repaint immediately
                 if false, the window may defer repainting as it sees fit.
void repaint(in boolean force)
 Give the window focus.
void setFocus()

        
void setPosition(in long x, in long y)

        
void setPositionAndSize(in long x, in long y, in long cx, in long cy, in boolean fRepaint)

        
void setSize(in long cx, in long cy, in boolean fRepaint)