Class: XMWindow

Class: XMWindow

This is the base class for all scriptable window
classes.

Table 3.7. Functions

close getPositionX getPositionY
getSizeX getSizeY isValid
lower maximize minimize
move raise resize
setTitle show

close

Synopsis: XMWindow::close(  )

Close and a window. On destruction a window
is closed automagically.

Example:
	$win->close();
	# is equivalent to
	$win = undef;
	# if $win is the only reference to 
	# the window and you don't use $win
 	# afterwards

	$win2 = $win;
	# now there's the difference
	# 1. possibility
	$win->close();
	statusWindow()->print($win2->isValid());
	# will show false

	# 2. possibility
	$win = undef;
	statusWindow()->print($win2->isValid());
	# will show true


getPositionX

Synopsis: XMWindow::getPositionX(  )

Get the x coordinate of the window's position.
See also XMWindow::move.

Example:
	$x = $win->getPositionX()


getPositionY

Synopsis: XMWindow::getPositionY(  )

Get the y coordinate of the window's position.
See also XMWindow::move.

Example:
	$y = $win->getPositionY();


getSizeX

Synopsis: XMWindow::getSizeX(  )

Get the window's width.
See also XMWindow::resize.

Example:
	$width = $win->getSizeX();


getSizeY

Synopsis: XMWindow::getSizeY(  )

Get the window's height.
See also XMWindow::resize.

Example:
	height = $win->getSizeY();


isValid

Synopsis: XMWindow::isValid(  )

True if this window has not been closed. See
XMWindow::close for more info.


lower

Synopsis: XMWindow::lower(  )

Lower a window to the background, so other
windows behind it will become visible.

Example:
	$win->lower();


maximize

Synopsis: XMWindow::maximize(  )

Maximize a window.

Example:
	$win->maximize();


minimize

Synopsis: XMWindow::minimize(  )

Minimize a window.

Example:
	$win->minimize();


move

Synopsis: XMWindow::move( x, y )

Move the window's left upper corner to the point
(x, y) relative to the MDI Widget. x and y are
pixel values.

Example:
	$win->move(0, 0);


raise

Synopsis: XMWindow::raise(  )

Raise this window to the top, so it will become
visible if other windows are in front of it.

Example:
	$win->raise();


resize

Synopsis: XMWindow::resize( width, height )

Resize the window to width and height. The variables
are given in pixels.

Example:
	$win->resize(300, 100);


setTitle

Synopsis: XMWindow::setTitle( title )

Set the windows caption to title.

Example:
	$win->setTitle("A nice Window");


show

Synopsis: XMWindow::show(  )

Show the window if it's hidden. On creation 
windows are hidden by default

Example:
	$win->show();


KDE Logo