/*
 * File: textwindow.h
 *
 * This file contains the declaaration of the textwindow structure
 * and extern declarations of all functions in textwindow.c
 */


typedef struct {
    Canvas     canvas;		/* The canvas to write in. */
    Pixfont  * font;		/* The SUNVIEW font to use */
    int        charheight;	/* Width and height of a character in pixels */
    int        charwidth;
    int        height;		/* Width and height of the window in chars. */
    int        width;
    char     * buffer;		/* Pointer to the character buffer. */
    int        cur_row;		/* The cursor position */
    int        cur_col;
    int        scroll_begin;	/* The limits of the scroll region. */
    int        scroll_end;
} Textwindow;


extern Textwindow  * textwindow_create();
extern void          textwindow_scroll();
extern void          textwindow_print();
extern void          textwindow_putcur();
extern void          textwindow_set_scrollregion();
extern int           textwindow_get_currow();
extern int           textwindow_get_curcol();
