iPXE
Data Structures | Functions
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_OR_UBDL)
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_OR_UBDL  )
static void _restore_curs_pos ( WINDOW win,
struct cursor_pos pos 
) [inline, static]

Restore cursor position from encoded backup variable.

Parameters:
*winwindow on which to operate
*pospointer 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().

                                                                             {
        wmove ( win, pos->y, pos->x );
}
static void _store_curs_pos ( WINDOW win,
struct cursor_pos pos 
) [inline, static]

Store cursor position for later restoration.

Parameters:
*winwindow on which to operate
*pospointer 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().

                                                                           {
        pos->y = win->curs_y;
        pos->x = win->curs_x;
}