Logo Search packages:      
Sourcecode: mozilla-traybiff version File versions  Download package

NS_IMETHOD nsIWidget10::ConstrainPosition ( PRBool  aAllowSlop,
PRInt32 *  aX,
PRInt32 *  aY 
) [pure virtual]

Perform platform-dependent sanity check on a potential window position. This is guaranteed to work only for top-level windows.

Parameters:
aAllowSlop,: if true, allow the window to slop offscreen; the window should be partially visible. if false, force the entire window onscreen (or at least the upper-left corner, if it's too large).
aX in: an x position expressed in screen coordinates. out: the x position constrained to fit on the screen(s).
aY in: an y position expressed in screen coordinates. out: the y position constrained to fit on the screen(s).
Returns:
vapid success indication. but see also the parameters.


Generated by  Doxygen 1.6.0   Back to index