| Name: | »Transform mouse« | ||||||||||||||||||
| Line-A number: | $A00B | ||||||||||||||||||
| Syntax: | See 'Bindings for transform_mouse' | ||||||||||||||||||
| Description: | This Line-A function sets the mouse pointer to a new shape.
The required parameters are passed via the intin field. Alternatively,
the AES structure MFORM may be used instead. For the call of the
Line-A function, the intin in the Line-A parameter block is set to
this structure, and after the call the old value is restored again.typedef struct mfstr
{
int16_t mf_xhot;
int16_t mf_yhot;
int16_t mf_nplanes;
int16_t mf_fg;
int16_t mf_bg;
int16_t mf_mask[16];
int16_t mf_data[16];
} MFORM;
| ||||||||||||||||||
| Return value: | The function does not return a result. | ||||||||||||||||||
| Availability: | All TOS versions. | ||||||||||||||||||
| See also: | Binding Undraw sprite Draw sprite |
| Pure-C: | void transform_mouse( MFORM *mform ); |
| Assembler: | movem.l D0-D2/A0-A2,-(A7) ; Save registers move.l pParamblk,A0 ; Pointer parameter block LINEA move.l (8,A0),-(A7) ; Save old value of the intin field move.l mform,(8,A0) ; Field with mouse form in LINEA.intin dc.w $A00B ; Line-A opcode move.l pParamblk,A0 ; Pointer parameter block LINEA move.l (A7)+,(8,A0) ; Restore old value of the intin field movem.l (A7)+,D0-D2/A0-A2 ; Restore registers |