 
 AES
AES
 Shellfunktionen
Shellfunktionen
 Erweiterte Shellfunktionen
Erweiterte Shellfunktionen
Diese Bibliothek enthält Funktionen um sich bewegende (ausdehnende bzw. zusammenziehende) Rechtecke zu animieren; für diesen Zweck gibt es die folgenden Routinen:
| • xgrf_2box | Animation sich bewegender Rechtecke | 
| • xgrf_color | Verändert die Farbe der Fensterelements | 
| • xgrf_dtimage | Setzt den Desktop-Hintergrundes | 
| • xgrf_stepcalc | Parameter-Berechnung für Rechteck-Animation | 
Hinweis: xgrf_2box und xgrf_stepcalc sind in erster Linie als Ersatz für die Funktionen graf_growbox und graf_shrinkbox zu verstehen, die in PC-GEM dem Rechtsstreit zwischen Apple und Digital Research zum Opfer gefallen sind.
Querverweis: graf_growbox graf_shrinkbox Style-Guidelines
| Name: | »Animate Rectangles« - zeichnet eine Menge sich bewegender
Rechtecke. | ||||||||||||||||||||||||||||||
| AES-Nummer: | 131 | ||||||||||||||||||||||||||||||
| Deklaration: | int16_t xgrf_2box ( int16_t cx, int16_t cy, int16_t w, int16_t
h, int16_t corners, int16_t cnt, int16_t xstep, int16_t ystep, int16_t
doubled ); | ||||||||||||||||||||||||||||||
| Beschreibung: | Die Funktion zeichnet eine Reihe von Rechtecken, die sich über
den Bildschirm bewegen. Es gilt: 
 Hinweis: Die Funktion ist ein Ersatz für die in PC-GEM (aufgrund des Rechtstreits zwischen Apple und Digital Research) gestrichenen Funktionen der FORM und GRAF Bibliotheken. | ||||||||||||||||||||||||||||||
| Ergebnis: | Der Rückgabewert der Funktion ist z.Zt. unbekannt. | ||||||||||||||||||||||||||||||
| Verfügbar: | Die Funktion ist nur ab PC-GEM 2.0, ab KAOS 1.4.2 und MagiC
vorhanden. | ||||||||||||||||||||||||||||||
| Gruppe: | X-Grafikfunktionen | ||||||||||||||||||||||||||||||
| Querverweis: | Binding   xgrf_stepcalc   MagiC | 
| C: | int16_t xgrf_2box ( int16_t cx, int16_t cy, int16_t w, int16_t
h, int16_t corners, int16_t cnt, int16_t xstep, int16_t ystep, int16_t
doubled ); | ||||||||||||||||||||||||||||||||||||||||||||||||
| Umsetzung: | int16_t xgrf_2box ( int16_t cx, int16_t cy, int16_t w, int16_t h, int16_t corners, int16_t cnt, int16_t xstep, int16_t ystep, int16_t doubled ) { int_in[0] = cnt; int_in[1] = xstep; int_in[2] = ystep; int_in[3] = doubled; int_in[4] = corners; int_in[5] = cx; int_in[6] = cy; int_in[7] = w; int_in[8] = h; return ( crys_if(131) ); } | ||||||||||||||||||||||||||||||||||||||||||||||||
| GEM-Arrays: | 
 | 
| Name: | »Stepcalc for XGraf« - Parameterberechnung für die Animation
von Rechtecken. | ||||||||||||||||||||||||||
| AES-Nummer: | 130 | ||||||||||||||||||||||||||
| Deklaration: | int16_t xgrf_stepcalc ( int16_t orgw, int16_t orgh, int16_t xc,
int16_t yc, int16_t w, int16_t h, int16_t *pcx, int16_t *pcy, int16_t
*pcnt, int16_t *pxstep, int16_t *pystep ); | ||||||||||||||||||||||||||
| Beschreibung: | Die Funktion berechnet alle Parameter für einen Aufruf von
xgrf_2box. Es gilt: 
 Hinweis: Aus Anfangsgröße, Endgröße und Endposition des Rechtecks werden Endposition, Anzahl der Schritte sowie Größe der Schritte bestimmt. | ||||||||||||||||||||||||||
| Ergebnis: | Der Rückgabewert der Funktion ist z.Zt. unbekannt. | ||||||||||||||||||||||||||
| Verfügbar: | Die Funktion ist nur ab PC-GEM 2.0, ab KAOS 1.4.2 und MagiC
vorhanden. | ||||||||||||||||||||||||||
| Gruppe: | X-Grafikfunktionen | ||||||||||||||||||||||||||
| Querverweis: | Binding   xgrf_2box   MagiC | 
| C: | int16_t xgrf_stepcalc ( int16_t orgw, int16_t orgh, int16_t xc,
int16_t yc, int16_t w, int16_t h, int16_t *pcx, int16_t *pcy, int16_t
*pcnt, int16_t *pxstep, int16_t *pystep ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Umsetzung: | int16_t xgrf_stepcalc ( int16_t orgw, int16_t orgh, int16_t xc, int16_t yc, int16_t w, int16_t h, int16_t *pcx, int16_t *pcy, int16_t *pcnt, int16_t *pxstep, int16_t *pystep ) { int_in[0] = orgw; int_in[1] = orgh; int_in[2] = xc; int_in[3] = yc; int_in[4] = w; int_in[5] = h; crys_if (130); *pcx = int_out[1]; *pcy = int_out[2]; *pcnt = int_out[3]; *pxstep = int_out[4]; *pystep = int_out[5]; return ( int_out[0] ); } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GEM-Arrays: | 
 | 
| Name: | »« - Set color category for various window elements. | ||||||||||||||||||||||||||
| Opcode: | 132 | ||||||||||||||||||||||||||
| Syntax: | int16_t xgrf_color ( int16_t color, int16_t fgclr, int16_t
bkclr, int16_t style, int16_t pattern ); | ||||||||||||||||||||||||||
| Description: | 
 | ||||||||||||||||||||||||||
| Availability: | The function is available only as of ViewMAX/2. | ||||||||||||||||||||||||||
| Group: | Extended graphics library | 
| Name: | »« - Set desktop image | 
| Opcode: | 133 | 
| Syntax: | int16_t xgrf_dtimage ( MFDB *image ); | 
| Description: |  | 
| Availability: | The function is available only as of ViewMAX/3. | 
| Group: | Extended graphics library | 
 
 AES
AES
 Shellfunktionen
Shellfunktionen
 Erweiterte Shellfunktionen
Erweiterte Shellfunktionen