iPXE
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)
 FILE_SECBOOT (PERMITTED)
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()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

◆ _restore_curs_pos()

void _restore_curs_pos ( WINDOW * win,
struct cursor_pos * pos )
inlinestatic

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 23 of file cursor.h.

23 {
24 wmove ( win, pos->y, pos->x );
25}
int wmove(WINDOW *win, int y, int x) __nonnull
Move a window's cursor to the specified position.
Definition mucurses.c:136
unsigned int x
Definition cursor.h:14
unsigned int y
Definition cursor.h:14

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

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

◆ _store_curs_pos()

void _store_curs_pos ( WINDOW * win,
struct cursor_pos * pos )
inlinestatic

Store cursor position for later restoration.

Parameters
*winwindow on which to operate
*pospointer to struct in which to store cursor position

Definition at line 33 of file cursor.h.

33 {
34 pos->y = win->curs_y;
35 pos->x = win->curs_x;
36}
unsigned int curs_x
window cursor position
Definition curses.h:98
unsigned int curs_y
Definition curses.h:98

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().