Unit 'intuition' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

ViewPortAddress

Return the address of a window's viewport.

Declaration

Source position: intuition.pas line 3852

function ViewPortAddress(

  const Window: PWindow

):PViewPort;

Arguments

Window

  

A pointer to the window for which you want the viewport address

Function result

Returns the address of the Intuition ViewPort structure for your window's screen.

Description

Returns the address of the viewport associated with the specified window. The viewport is actually the viewport of the screen within which the window is displayed. If you want to use any of the graphics, text, or animation primitives in your window and that primitive requires a pointer to a viewport, you can use this call.

This pointer is only valid as long as your window's screen remains open, which is ensured by keeping your window open.


Documentation generated on: 2021-07-30