home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 5
/
FreshFish_July-August1994.bin
/
useful
/
dist
/
gfx
/
show
/
superview-lib
/
programmers
/
docs
/
svobject_ref_eng.doc
< prev
next >
Wrap
Text File
|
1994-07-04
|
16KB
|
829 lines
$VER: Reference_ENG.doc V2.1 (26.5.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
* DO _NEVER_ ACCESS ANY SVOBJECTS DIRECTLY.
* DO NEVER BYPASS superview.library !
THE FOLLOWING NOTES ARE ONLY FOR PROGRAMMERS OF SVOBJECTS :
Here is a listing of the function set, which any of the version 1
and version 2 SVObjects does contain, in an Autodoc-like style of
description :
SVO_AllocHandle ; since Version 1
SVO_FreeHandle
SVO_Show
SVO_Write
SVO_CloseDisplay
SVO_FreeResources
SVO_SetAccessMode
SVL_SetScreenType
SVO_SetWindowFlags
SVO_SetWindowIDCMP
SVO_GetScreenAddress
SVO_GetWindowAddress
SVO_SetScreenAddress
SVO_SetWindowAddress
SVO_SetWriteName
SVO_SetReadName
SVO_FileInfoRequest
SVO_CheckFileType
SVO_ReadToGfxBuffer ; since Version 2
SVO_GetGfxBuffer
SVO_SetGfxBuffer
(you will never find any notes belonging to "BUGS", because any SVObject
may have its own ...)
-----------------------------------------------------------------------------
Functions available since Version 1 :
-----------------------------------------------------------------------------
NAME
SVO_AllocHandle
SYNOPSIS
APTR SVO_AllocHandle(APTR future)
D0 -$1e A1
FUNCTION
Allocates a handle for accessing a Graphic via this SVObject.
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 SVObjects.
SEE ALSO
SVO_FreeResources, SVO_FreeHandle
-----------------------------------------------------------------------------
NAME
SVO_FreeHandle
SYNOPSIS
VOID SVO_FreeHandle(APTR handle)
D0 -$24 A1
FUNCTION
Stops showing, frees all Resources and delocates a Handle, which has
been allocated with SVO_AllocHandle before.
For programmers of SVObjects :
Note, that this function should call
SVO_CloseDisplay(SVHandle);
SVO_FreeResources(SVHandle);
always. Otherwise memory might be lost.
INPUT(S)
handle - a valid handle
RESULT
-
SINCE
... Version 1 SVObjects.
SEE ALSO
SVO_AllocHandle, SVO_CloseDisplay, SVO_FreeResources
-----------------------------------------------------------------------------
NAME
SVO_Show
SYNOPSIS
ULONG SVO_Show(APTR handle)
D0 -$2a A1
FUNCTION
Loads and shows the Graphic described by a previously set FileName
or just shows the Graphic, if already been loaded.
Showing can be stopped either via full delocation of the handle
or via Closing the Display with SVO_CloseDisplay.
INPUT(S)
handle - a valid handle
RESULT
NULL or an adequate SVERR-Errorcode.
SINCE
... Version 1 SVObjects.
SEE ALSO
SVO_AllocHandle, SVO_CloseDisplay, SVO_FreeHandle
-----------------------------------------------------------------------------
NAME
SVO_Write
SYNOPSIS
ULONG SVO_Write(APTR handle)
D0 -$30 A1
FUNCTION
Writes the currently loaded (GfxBuffer) or displayed (Screen)
graphic into a file or onto any other medium, which has been
specified via the appropriate function calls before.
INPUT(S)
handle - a valid handle
RESULT
NULL or an adequate SVERR-Errorcode.
SINCE
... Version 1 SVObjects.
SEE ALSO
SVO_AllocHandle, SVO_FreeHandle
-----------------------------------------------------------------------------
NAME
SVO_CloseDisplay
SYNOPSIS
VOID SVO_CloseDisplay(APTR handle)
D0 -$36 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 SVObjects.
SEE ALSO
SVO_FreeResources, SVO_FreeHandle
-----------------------------------------------------------------------------
NAME
SVO_FreeResources
SYNOPSIS
VOID SVO_FreeResources(APTR handle)
D0 -$3c 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.
Note, that SVO_FileInfoRequest() will no longer work, then
("No file loaded" or similar request appears).
INPUT(S)
handle - a valid handle
RESULT
-
SINCE
... Version 1 SVObjects.
SEE ALSO
SVO_AllocHandle, SVO_CloseDisplay, SVO_FreeHandle
-----------------------------------------------------------------------------
NAME
SVO_SetAccessMode
SYNOPSIS
ULONG SVO_SetAccessMode(APTR handle, ULONG mode)
D0 -$42 A1 D1
FUNCTION
Initializes a Handle e.g. for AmigaDOS access, so that the
separately specified AmigaDOS FileName will be used.
Another possibility is sometimes to initialize Handles
for ClipBoard Access (depending on the specific SVObject,
e.g. IFF-ILBM).
INPUT(S)
handle - a valid handle
mode - one of the supported "medium" Flags
RESULT
NULL or an adequate SVERR-Errorcode.
SINCE
... Version 1 SVObjects.
SEE ALSO
SVO_SetWriteName
-----------------------------------------------------------------------------
NAME
SVL_SetScreenType
SYNOPSIS
ULONG SVL_SetScreenType(APTR handle, ULONG type, APTR future)
D0 -$48 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 SVObject uses external
drivers for displaying (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 SVObjects.
SEE ALSO
SVO_GetScreenAddress
-----------------------------------------------------------------------------
NAME
SVO_SetWindowFlags
SYNOPSIS
ULONG SVO_SetWindowFlags(APTR handle, ULONG flags, APTR future)
D0 -$4e 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 SVObject uses external
drivers for displaying (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 SVObjects.
SEE ALSO
SVO_Write
-----------------------------------------------------------------------------
NAME
SVO_SetWindowIDCMP
SYNOPSIS
ULONG SVO_SetWindowIDCMP(APTR handle, ULONG idcmp, APTR future)
D0 -$54 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 SVObject uses external
drivers for displaying (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 SVObjects.
SEE ALSO
SVO_Show
-----------------------------------------------------------------------------
NAME
SVO_GetScreenAddress
SYNOPSIS
struct Screen *SVO_GetScreenAddress(APTR handle, future)
D0 -$5a 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.
INPUT(S)
handle - a valid handle
future - always NULL yet
RESULT
A valid ScreenPointer or NULL.
SINCE
... Version 1 SVObjects.
SEE ALSO
SVO_GetWindowAddress
-----------------------------------------------------------------------------
NAME
SVO_GetWindowAddress
SYNOPSIS
struct Window *SVO_GetWindowAddress(APTR handle, future)
D0 -$60 A1 A2
FUNCTION
While displaying, the Add