Reference » Window classes » MWindow » getPos

Elgrint::MWindow::getPos() method

Declaration (see MWindow.h):

MPoint getPos();

Description

Returns the current position of the window in parent window's coordinates, including floating/embedded state.

Return type: MPoint

Details

getPos() is functionally equivalent to getRect().p1(), including the premature finalizing and the default value for closed windows (see getRect), but using getPos is better (not to mention more convenient), because the "missing repaint" mechanism relies on it (see Moved for explanation of this mechanism).

Let us know

Please Contact us to report any errors on this page, or to suggest any improvements.

Miranor Home | About Miranor | About Elgrint | Create account | Login | Account settings | Contact Us | Privacy Policy | Site map

© Copyright 2014 by Miranor. All rights reserved. By using this site you agree to the Terms of Use.

Page last updated on August 10th, 2014.