view src/editzoom.h @ 25:8eaf72e2041b

Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl". Fix the problems introduced afterwards.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 24 Sep 2011 14:16:04 +0300
parents 241c93442be0
children a68786b9c74b
line wrap: on
line source

/*
 *	editzoom.h
 *	AYM 1998-11-09
 */


/* zoom factors for the digit keys
 */
extern double digit_zoom_factors[10];


/*
 *      edit_zoom_init - initialise
 */
void edit_zoom_init(void);


/*
 *	edit_zoom_in - zoom_in
 *
 *	If zooming in would result in a zoom factor higher than
 *	10.0, do nothing.
 *
 *	Return 0 on success, non-zero on failure.
 */
int edit_zoom_in(edit_t * e);


/*
 *	edit_zoom_out - zoom_out
 *
 *	If zooming out would result in a zoom factor lesser than
 *	0.05, do nothing.
 *
 *	Return 0 on success, non-zero on failure.
 */
int edit_zoom_out(edit_t * e);


/*
 *	edit_set_zoom - set zoom factor
 *
 *	If the new zoom factor is less than 0.05 or more than
 *	10.0, do nothing.
 *
 *	Return 0 on success, non-zero on failure.
 */
int edit_set_zoom(edit_t * e, double zoom_factor);