[ d o w n l o a d . i s a k s s o n . t k ]

crect.h (1.1 kB, 1170 days old)

This a class derived from os::Rect, which can be used exactly like an ordinary Rect, but it also adds a constructor that will centre the CRect on the current desktop. Here's an example:

	wnd = new Window(CRect(300, 250), "TestWindow", "Window Test", 0, CURRENT_DESKTOP);
This would create a Window object, 300 by 250 pixels, centered on the currently active desktop.

Download crect.h (1.1 kB)