Changes in uspace/lib/c/include/io/screenbuffer.h [64d2b10:369a5f8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/io/screenbuffer.h
r64d2b10 r369a5f8 38 38 #include <stdint.h> 39 39 #include <sys/types.h> 40 #include <ipc/ipc.h> 40 41 #include <bool.h> 41 42 … … 83 84 keyfield_t *buffer; /**< Screen content - characters and 84 85 their attributes (used as a circular buffer) */ 85 sysarg_t size_x; /**< Number of columns */86 sysarg_t size_y; /**< Number of rows */86 ipcarg_t size_x; /**< Number of columns */ 87 ipcarg_t size_y; /**< Number of rows */ 87 88 88 89 /** Coordinates of last printed character for determining cursor position */ 89 sysarg_t position_x;90 sysarg_t position_y;90 ipcarg_t position_x; 91 ipcarg_t position_y; 91 92 92 93 attrs_t attrs; /**< Current attributes. */ … … 108 109 * 109 110 */ 110 static inline keyfield_t *get_field_at(screenbuffer_t *scr, sysarg_t x, sysarg_t y)111 static inline keyfield_t *get_field_at(screenbuffer_t *scr, ipcarg_t x, ipcarg_t y) 111 112 { 112 113 return scr->buffer + x + ((y + scr->top_line) % scr->size_y) * scr->size_x; … … 142 143 143 144 extern void screenbuffer_putchar(screenbuffer_t *, wchar_t); 144 extern screenbuffer_t *screenbuffer_init(screenbuffer_t *, sysarg_t, sysarg_t);145 extern screenbuffer_t *screenbuffer_init(screenbuffer_t *, ipcarg_t, ipcarg_t); 145 146 146 147 extern void screenbuffer_clear(screenbuffer_t *); 147 extern void screenbuffer_clear_line(screenbuffer_t *, sysarg_t);148 extern void screenbuffer_clear_line(screenbuffer_t *, ipcarg_t); 148 149 extern void screenbuffer_copy_buffer(screenbuffer_t *, keyfield_t *); 149 extern void screenbuffer_goto(screenbuffer_t *, sysarg_t, sysarg_t);150 extern void screenbuffer_goto(screenbuffer_t *, ipcarg_t, ipcarg_t); 150 151 extern void screenbuffer_set_style(screenbuffer_t *, uint8_t); 151 152 extern void screenbuffer_set_color(screenbuffer_t *, uint8_t, uint8_t, uint8_t);
Note:
See TracChangeset
for help on using the changeset viewer.