home *** CD-ROM | disk | FTP | other *** search
-
- $VER: SVDriver_Ref_ENG.doc V1.2 (8.7.94)
-
- © 1994 by Andreas R. Kleinert. All rights reserved.
-
- - Feel free to translate this Doc-File into other languages. -
-
- Andreas R. Kleinert,
- Grube Hohe Grethe 23,
- D-57074 Siegen,
- Germany. email : Fido 2:2457/345.10
- (checked weekly)
-
- * DO _NEVER_ ACCESS ANY SVDRIVERS DIRECTLY.
- * DO NEVER BYPASS superview.library !
-
- THE FOLLOWING NOTES ARE ONLY FOR PROGRAMMERS OF SVDRIVERS :
-
- Here is a listing of the function set, which any of the version 1
- SVDrivers does contain, in an Autodoc-like style of description :
-
- SVD_AllocHandle ; since Version 1
- SVD_FreeHandle
- SVD_CloseDisplay
- SVD_FreeResources
- SVD_SetGfxBuffer
- SVD_DisplayGfxBuffer
- SVL_SetScreenType
- SVD_SetWindowFlags
- SVD_SetWindowIDCMP
- SVD_GetScreenAddress
- SVD_GetWindowAddress
-
- (you will never find any notes belonging to "BUGS", because any SVDriver
- may have its own ...)
-
- -----------------------------------------------------------------------------
- Functions available since Version 1 :
- -----------------------------------------------------------------------------
-
- NAME
- SVD_AllocHandle
-
- SYNOPSIS
-
- APTR SVD_AllocHandle(APTR future)
- D0 -$1e A1
-
- FUNCTION
-
- Allocates a handle for displaying a GfxBuffer via this SVDriver.
-
- INPUT(S)
-
- future - always NULL yet
-
- RESULT
-
- A pointer to a new allocated Handle or NULL, if allocation failed.
-
- WARNING
-
- Test, if the result was NULL, or not !
-
- SINCE
-
- ... Version 1 SVDrivers.
-
- SEE ALSO
-
- SVD_FreeResources, SVD_FreeHandle
-
- -----------------------------------------------------------------------------
-
- NAME
- SVD_FreeHandle
-
- SYNOPSIS
-
- VOID SVD_FreeHandle(APTR handle)
- D0 -$24 A1
-
- FUNCTION
-
- Stops showing, frees all Resources and delocates a Handle, which has
- been allocated with SVD_AllocHandle before.
-
-
- For programmers of SVDrivers :
-
- Note, that this function should call
-
- SVD_CloseDisplay(SVHandle);
- SVD_FreeResources(SVHandle);
-
- always. Otherwise memory might be lost.
-
- INPUT(S)
-
- handle - a valid handle
-
- RESULT
-
- -
-
- SINCE
-
- ... Version 1 SVDrivers.
-
- SEE ALSO
-
- SVD_AllocHandle, SVD_CloseDisplay, SVD_FreeResources
-
- -----------------------------------------------------------------------------
-
- NAME
- SVD_CloseDisplay
-
- SYNOPSIS
-
- VOID SVD_CloseDisplay(APTR handle)
- D0 -$2a A1
-
- FUNCTION
-
- Stops showing the Graphic, indentified by the handle.
- The Display-Screen is closed, but no Resources are given free.
-
- INPUT(S)
-
- handle - a valid handle
-
- RESULT
-
- -
-
- SINCE
-
- ... Version 1 SVDrivers.
-
- SEE ALSO
-
- SVD_FreeResources, SVD_FreeHandle
-
- -----------------------------------------------------------------------------
-
- NAME
- SVD_FreeResources
-
- SYNOPSIS
-
- VOID SVD_FreeResources(APTR handle)
- D0 -$30 A1
-
- FUNCTION
-
- Frees all resources belonging to the specific Graphic,
- indentified by the handle, which are not needed to just show it.
- The Display will not be closed.
-
- INPUT(S)
-
- handle - a valid handle
-
- RESULT
-
- -
-
- SINCE
-
- ... Version 1 SVDrivers.
-
- SEE ALSO
-
- SVD_AllocHandle, SVD_CloseDisplay, SVD_FreeHandle
-
- -----------------------------------------------------------------------------
-
- NAME
- SVD_SetGfxBuffer
-
- SYNOPSIS
-
- ULONG SVD_SetGfxBuffer(APTR handle, struct SV_GfxBuffer *buffer,
- D0 -$36 A1 A2
-
- ULONG future)
- A3
-
- FUNCTION
-
- Initializes the given handle with a pointer to a SV_GfxBuffer, which
- should be used with the next call of SVD_DisplayGfxBuffer (see there).
-
- This Buffer STILL HAS TO BE GIVEN FREE the way it has been allocated
- (see documentation of SVObjects and superviewsupport.library)
- and may still be displayed via SVD_DisplayGfxBuffer or saved
- anywhere else.
-
- INPUT(S)
-
- handle - a valid handle
- buffer - a pointer to a valid SV_GfxBuffer
- future - always NULL yet
-
- RESULT
-
- NULL or an adequate SVERR-Errorcode.
-
- SINCE
-
- ... Version 1 SVDrivers.
-
- SEE ALSO
-
- SVD_DisplayGfxBuffer
-
- -----------------------------------------------------------------------------
-
- NAME
- SVD_DisplayGfxBuffer
-
- SYNOPSIS
-
- ULONG SVD_DisplayGfxBuffer(APTR handle, future)
- D0 -$3c A1 A2
-
- FUNCTION
-
- Displays the GfxBuffer (which has been set via SVD_SetGfxBuffer before)
- in the way, which is native to this SVDriver (e.g. on an Intuition
- Screen, an EGS-Screen or into NIL ...)
-
- INPUT(S)
-
- handle - a valid handle
- future - always NULL yet
-
- RESULT
-
- NULL or an adequate SVERR-Errorcode.
-
- SINCE
-
- ... Version 1 SVDrivers.
-
- SEE ALSO
-
- SVD_SetGfxBuffer
-
- -----------------------------------------------------------------------------
-
- NAME
- SVL_SetScreenType
-
- SYNOPSIS
-
- ULONG SVL_SetScreenType(APTR handle, ULONG type, APTR future)
- D0 -$42 A1 D1 A2
-
- FUNCTION
-
- Specifies, which ScreenType the Screen should have, on which the
- graphic is to be displayed later.
-
- This statement may have no effect, if the SVDriver uses non-Intuition
- ways of displaying or exporting the GfxBuffer (e.g. EGS.svdriver will
- ignore this setting more or less).
-
- INPUT(S)
-
- handle - a valid handle
- type - a ScreenType descriptor, like e.g. CUSTOMSCREEN
- future - always NULL yet
-
- RESULT
-
- NULL or an adequate SVERR-Errorcode.
-
- SINCE
-
- ... Version 1 SVDrivers.
-
- SEE ALSO
-
- SVD_GetScreenAddress
-
- -----------------------------------------------------------------------------
-
- NAME
- SVD_SetWindowFlags
-
- SYNOPSIS
-
- ULONG SVD_SetWindowFlags(APTR handle, ULONG flags, APTR future)
- D0 -$48 A1 D1 A2
-
- FUNCTION
-
- Specifies, which Flags the Window should have, on which the
- graphic is to be displayed later.
-
- This statement may have no effect, if the SVDriver uses non-Intuition
- ways of displaying or exporting the GfxBuffer (e.g. EGS.svdriver will
- ignore this setting more or less).
-
- INPUT(S)
-
- handle - a valid handle
- flags - valid WindowFlags, like e.g. WFLG_BACKDROP
- future - always NULL yet
-
- RESULT
-
- NULL or an adequate SVERR-Errorcode.
-
- SINCE
-
- ... Version 1 SVDrivers.
-
- SEE ALSO
-
- SVD_SetWindowIDCMP, SVD_GetWindowAddress
-
- -----------------------------------------------------------------------------
-
- NAME
- SVD_SetWindowIDCMP
-
- SYNOPSIS
-
- ULONG SVD_SetWindowIDCMP(APTR handle, ULONG idcmp, APTR future)
- D0 -$4e A1 D1 A2
-
- FUNCTION
-
- Specifies, which IDCMP the Window should have, on which the
- graphic is to be displayed later.
-
- This statement may have no effect, if the SVDriver uses non-Intuition
- ways of displaying or exporting the GfxBuffer (e.g. EGS.svdriver will
- ignore this setting more or less).
-
- INPUT(S)
-
- handle - a valid handle
- idcmp - a valid set of IDCMP-Flags
- future - always NULL yet
-
- RESULT
-
- NULL or an adequate SVERR-Errorcode.
-
- SINCE
-
- ... Version 1 SVDrivers.
-
- SEE ALSO
-
- SVD_Show
-
- -----------------------------------------------------------------------------
-
- NAME
- SVD_GetScreenAddress
-
- SYNOPSIS
-
- struct Screen *SVD_GetScreenAddress(APTR handle, future)
- D0 -$54 A1 A2
-
- FUNCTION
-
- While displaying, the Address of the DisplayScreen can be get
- via this function.
- See description there and example SourceCodes for more and
- detailed information.
-
- This statement may not return a pointer to the real DisplayScreen,
- if the SVDriver uses non-Intuition ways of displaying or exporting
- the GfxBuffer (e.g. EGS.svdriver uses EGS-Screens, which are not
- compatible with Intuition Screens).
- So NULL or a pointer to a Dummy-Screen might be returned sometimes.
-
- INPUT(S)
-
- handle - a valid handle
- future - always NULL yet
-
- RESULT
-
- A valid ScreenPointer or NULL.
-
- SINCE
-
- ... Version 1 SVDrivers.
-
- SEE ALSO
-
- SVD_GetWindowAddress
-
- -----------------------------------------------------------------------------
-
- NAME
- SVD_GetWindowAddress
-
- SYNOPSIS
-
- struct Window *SVD_GetWindowAddress(APTR handle, future)
- D0 -$5a A1 A2
-
- FUNCTION
-
- While displaying, the Address of the DisplayWindow can be get
- via this function.
- See description there and example SourceCodes for more and
- detailed information.
-
- This statement may not return a pointer to the real DisplayWindow,
- if the SVDriver uses non-Intuition ways of displaying or exporting
- the GfxBuffer (e.g. EGS.svdriver uses EGS-Windows, which are not
- compatible with Intuition Windows).
- So NULL or a pointer to a Dummy-Window might be returned sometimes.
-
- INPUT(S)
-
- handle - a valid handle
- future - always NULL yet
-
- RESULT
-
- A valid WindowPointer or NULL.
-
- SINCE
-
- ... Version 1 SVDrivers.
-
- SEE ALSO
-
- SVD_GetScreenAddress
-
- -----------------------------------------------------------------------------
-