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. More...
 
static void _store_curs_pos (WINDOW *win, struct cursor_pos *pos)
 Store cursor position for later restoration. More...
 

Detailed Description

MuCurses cursor implementation specific header file.

Definition in file cursor.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ _restore_curs_pos()

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

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

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

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

◆ _store_curs_pos()

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

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

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