2 * Copyright (C) 2008 Diego Hernan Borghetti.
9 typedef struct _E_View
{
13 /* The "View" is a region of the screen when we
14 * draw the buffer, it's like a canvas.
16 * The screen can be split in N number of view
17 * and every view have a buffer attached.
20 * The row and col have the start position of the
21 * view, in screen coordinates.
23 * The nrow and ncol is the size of the view, but
24 * _NOT_ in the screen.
26 * The rrow and rcol is the end position of the
27 * view, in screen coordinates (srow + row, scol + col)
42 /* buffer attached to this view. */
45 /* last search string. */
52 /* minibuf for status line. */
55 /* minibuf position. */
60 /* have a message to show ? */
68 #define VIEW_REDRAW (1<<0)
69 #define VIEW_SHOW (1<<1)
71 E_View
*e_view_new(E_Screen
*sc
);
72 void e_view_free(E_View
*v
);
74 void e_view_move(E_View
*v
, int row
, int col
);
75 void e_view_resize(E_View
*v
, int nrow
, int ncol
);
77 void e_view_show(E_View
*v
);
78 void e_view_unshow(E_View
*v
);
79 void e_view_redraw(E_View
*v
);
81 #endif /* _ECO_VIEW_H */