cursor.h File Reference

MuCurses cursor implementation specific header file. More...

Go to the source code of this file.

Data Structures

struct  cursor_pos

Functions

 FILE_LICENCE (GPL2_OR_LATER)
static void _restore_curs_pos (WINDOW *win, struct cursor_pos *pos)
 Restore cursor position from encoded backup variable.
static void _store_curs_pos (WINDOW *win, struct cursor_pos *pos)
 Store cursor position for later restoration.


Detailed Description

MuCurses cursor implementation specific header file.

Definition in file cursor.h.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER   ) 

static void _restore_curs_pos ( WINDOW win,
struct cursor_pos pos 
) [inline, static]

Restore cursor position from encoded backup variable.

Parameters:
*win window on which to operate
*pos pointer to struct in which original cursor position is stored

Definition at line 22 of file cursor.h.

References wmove(), cursor_pos::x, and cursor_pos::y.

Referenced by _leave_slk(), waddchnstr(), wborder(), wclrtobot(), wclrtoeol(), wdeleteln(), whline(), and wvline().

00022                                                                              {
00023         wmove ( win, pos->y, pos->x );
00024 }

static void _store_curs_pos ( WINDOW win,
struct cursor_pos pos 
) [inline, static]

Store cursor position for later restoration.

Parameters:
*win window on which to operate
*pos pointer to struct in which to store cursor position

Definition at line 32 of file cursor.h.

References _curses_window::curs_x, _curses_window::curs_y, cursor_pos::x, and cursor_pos::y.

Referenced by _enter_slk(), waddchnstr(), wborder(), wclrtobot(), wclrtoeol(), wdeleteln(), whline(), and wvline().

00032                                                                            {
00033         pos->y = win->curs_y;
00034         pos->x = win->curs_x;
00035 }


Generated on Tue Apr 6 20:01:46 2010 for gPXE by  doxygen 1.5.7.1