1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-29 01:45:34 +00:00

Doc comments about coordinate systems.

So that I may better understand Witek's patches.
This commit is contained in:
Kalle Olavi Niemitalo 2007-08-28 09:52:37 +03:00 committed by Witold Filipczyk
parent 7db2f8c629
commit 996e52ae84
2 changed files with 19 additions and 1 deletions

View File

@ -22,9 +22,18 @@ enum window_type {
typedef void (window_handler_T)(struct window *, struct term_event *);
/** A window in the terminal screen. This structure does not know the
* position and size of the window, and no functions are provided for
* drawing into a window. Instead, when window.handler draws the
* window, it should decide the position and size of the window, and
* then draw directly to the terminal, taking care not to draw outside
* the window. Windows generally do not have their own coordinate
* systems; they get mouse events in the coordinate system of the
* terminal. */
struct window {
LIST_HEAD(struct window); /*!< terminal.windows is the sentinel. */
/** Whether this is a normal window or a tab window. */
enum window_type type;
/** The window event handler */

View File

@ -18,7 +18,16 @@ struct view_state {
struct form_state *form_info;
int form_info_len;
int x, y;
/** Horizontal scrolling. If @c x is e.g. 2, then the
* leftmost two columns of the document have been scrolled out
* of sight. @c x should never be negative. */
int x;
/** Vertical scrolling. If @c y is e.g. 1, then the first
* line of the document has been scrolled out of sight. @c y
* should never be negative. */
int y;
int current_link;
int old_current_link;