Documentation from zap.h

ROV

Introduction

[top]

ROV - Easy applications from C

Copyright - © Jason Tribbeck / 7th ARM 1994-2001

Contributing authors - Jason Tribbeck

File - zap.h

Type - helper

Description

The Zap helper is an interface to the Zap redraw module.

Note - Knowledge of the Zap module is required.

zap_init

[top]

Initialises the Zap helper.

void zap_init(void);

zap_modechange

[top]

Inform the Zap helper that the mode has changed.

void zap_modechange(void);

zap_redraw

[top]

Redraw an area of the screen.

Parameters:

 - int *lines - the pointer to the lines as generated by zap_prcesstext()
 - int fore - the foreground WIMP colour.
 - int back - the background WIMP colour.
 - canvas c - the canvas being redrawn.

Note - This is normally called in a canvas redraw or update event handler.

void zap_redraw(int *lines,
		int fore,
		int back,
		canvas c);

See also: zap_processtext()

zap_processtext

[top]

Calculate line positions.

Parameters:

 - char *txt - the pointer to the text buffer (with control codes).
 - int *lines - the pointer the buffer to hold the line pointers (NULL for allocate one).

Returns:

 -  the new pointer (if it needed to be allocated).

int* zap_processtext(char *txt,
		     int *lines);

Generated Thu Feb 7 23:22:52 2002