Unit 'agraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#aros]

ScrollRegion

Scroll the rectangles in the region by the amount of pixels specified, within the specified rectangle.

Declaration

Source position: agraphics.pas line 2234

function ScrollRegion(

  Region: PRegion;

  Rect: PRectangle;

  Dx: SmallInt;

  Dy: SmallInt

):LongBool;

Arguments

Region

  

A pointer to a region

Rect

  

A pointer to the rectangle within which the scrolling has to happen. If nil, the region's bounds are used instead.

Dx

  

the amount of pixels by which to scroll the region vertically. Negative values mean left, positive values mean right.

Dy

  

the amount of pixels by which to scroll the region horizontally. Negative values mean up, positive values mean down.

Function result

True if the operation succeeded, False otherwise.

Description

This function doesn't exist in AmigaOS

See also

NewRegion

  

Allocates memory for a new Region and initializes it to an empty Region.


Documentation generated on: 2021-07-30