Public Member Functions | Public Attributes

nsIBaseWindow Interface Reference

The nsIBaseWindow describes a generic window and basic operations that can be performed on it. More...

import "nsIBaseWindow.idl";

List of all members.

Public Member Functions

void initWindow (in nativeWindow parentNativeWindow, in nsIWidget parentWidget, in long x, in long y, in long cx, in long cy)
void create ()
void destroy ()
void setPosition (in long x, in long y)
void getPosition (out long x, out long y)
void setSize (in long cx, in long cy, in boolean fRepaint)
void getSize (out long cx, out long cy)
void setPositionAndSize (in long x, in long y, in long cx, in long cy, in boolean fRepaint)
void getPositionAndSize (out long x, out long y, out long cx, out long cy)
void repaint (in boolean force)
 Tell the window to repaint itself.
void setFocus ()
 Give the window focus.

Public Attributes

attribute nsIWidget parentWidget
attribute nativeWindow parentNativeWindow
attribute boolean visibility
attribute boolean enabled
attribute boolean blurSuppression
 set blurSuppression to true to suppress handling of blur events.
readonly attribute nsIWidget mainWidget
attribute wstring title

Detailed Description

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.


Member Function Documentation

void nsIBaseWindow::create (  ) 
void nsIBaseWindow::destroy (  ) 
void nsIBaseWindow::getPosition ( out long  x,
out long  y 
)
void nsIBaseWindow::getPositionAndSize ( out long  x,
out long  y,
out long  cx,
out long  cy 
)
void nsIBaseWindow::getSize ( out long  cx,
out long  cy 
)
void nsIBaseWindow::initWindow ( in nativeWindow  parentNativeWindow,
in nsIWidget  parentWidget,
in long  x,
in long  y,
in long  cx,
in long  cy 
)
void nsIBaseWindow::repaint ( in boolean  force  ) 

Tell the window to repaint itself.

Parameters:
aForce - if true, repaint immediately if false, the window may defer repainting as it sees fit.
void nsIBaseWindow::setFocus (  ) 

Give the window focus.

void nsIBaseWindow::setPosition ( in long  x,
in long  y 
)
void nsIBaseWindow::setPositionAndSize ( in long  x,
in long  y,
in long  cx,
in long  cy,
in boolean  fRepaint 
)
void nsIBaseWindow::setSize ( in long  cx,
in long  cy,
in boolean  fRepaint 
)

Member Data Documentation

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.

readonly attribute nsIWidget nsIBaseWindow::mainWidget
attribute nsIWidget nsIBaseWindow::parentWidget
attribute wstring nsIBaseWindow::title

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