Warning: This site is under construction, most links will be broken.

LightX API -> lxgfx -> setwindow

Last modified on Fri, 30th Mar 2007 at 02:21 UTC by zipplet

lxgfx.setwindow


procedure setwindow(
  surface: tlxhandle;
  x, y, w, h: tlxposition
);


Sets a clipping window on the given surface. The boundaries specified must not fall outside the surface.

After this call, all operations on this surface will use the new window including direct image buffer manipulation. This call makes it so that the surface appears to actually only hold the data you define in the rectangle - so 0,0 now points to x,y. This applies both for drawing onto the surface and for reading the surface.

See LightX concepts for more information.

surface: tlxhandle
The surface to apply the window to.

x, y, w, h: tlxposition
The dimensions of the clipping window.

Class: lxgfx