Changeset a35b458 in mainline for uspace/lib/c/include/io
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- Location:
- uspace/lib/c/include/io
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/io/charfield.h
r3061bc1 ra35b458 86 86 if (a1.type != a2.type) 87 87 return false; 88 88 89 89 switch (a1.type) { 90 90 case CHAR_ATTR_STYLE: … … 98 98 && (a1.val.rgb.fgcolor == a2.val.rgb.fgcolor); 99 99 } 100 100 101 101 return false; 102 102 } -
uspace/lib/c/include/io/chargrid.h
r3061bc1 ra35b458 49 49 size_t size; /**< Structure size */ 50 50 chargrid_flag_t flags; /**< Screenbuffer flags */ 51 51 52 52 sysarg_t cols; /**< Number of columns */ 53 53 sysarg_t rows; /**< Number of rows */ 54 54 55 55 sysarg_t col; /**< Current column */ 56 56 sysarg_t row; /**< Current row */ 57 57 bool cursor_visible; /**< Cursor visibility */ 58 58 59 59 char_attrs_t attrs; /**< Current attributes */ 60 60 61 61 sysarg_t top_row; /**< The first row in the cyclic buffer */ 62 62 charfield_t data[]; /**< Screen contents (cyclic buffer) */ -
uspace/lib/c/include/io/console.h
r3061bc1 ra35b458 49 49 /** Console input file */ 50 50 FILE *input; 51 51 52 52 /** Console output file */ 53 53 FILE *output; 54 54 55 55 /** Console input session */ 56 56 async_sess_t *input_sess; 57 57 58 58 /** Console output session */ 59 59 async_sess_t *output_sess; 60 60 61 61 /** Input request call with timeout */ 62 62 ipc_call_t input_call; 63 63 64 64 /** Input response with timeout */ 65 65 aid_t input_aid; -
uspace/lib/c/include/io/kbd_event.h
r3061bc1 ra35b458 48 48 /** List handle */ 49 49 link_t link; 50 50 51 51 /** Press or release event. */ 52 52 kbd_event_type_t type; 53 53 54 54 /** Keycode of the key that was pressed or released. */ 55 55 keycode_t key; 56 56 57 57 /** Bitmask of modifiers held. */ 58 58 keymod_t mods; 59 59 60 60 /** The character that was generated or '\0' for none. */ 61 61 wchar_t c; -
uspace/lib/c/include/io/keycode.h
r3061bc1 ra35b458 93 93 94 94 KC_CAPS_LOCK, 95 95 96 96 KC_A, 97 97 KC_S, … … 199 199 KC_N0, 200 200 KC_NPERIOD 201 201 202 202 } keycode_t; 203 203 … … 212 212 KM_NUM_LOCK = 0x080, 213 213 KM_SCROLL_LOCK = 0x100, 214 214 215 215 KM_SHIFT = KM_LSHIFT | KM_RSHIFT, 216 216 KM_CTRL = KM_LCTRL | KM_RCTRL, -
uspace/lib/c/include/io/mode.h
r3061bc1 ra35b458 55 55 sysarg_t index; 56 56 sysarg_t version; 57 57 58 58 sysarg_t refresh_rate; 59 59 aspect_ratio_t screen_aspect; 60 60 sysarg_t screen_width; 61 61 sysarg_t screen_height; 62 62 63 63 aspect_ratio_t cell_aspect; 64 64 cell_visual_t cell_visual; -
uspace/lib/c/include/io/pixelmap.h
r3061bc1 ra35b458 47 47 /* Pixels outside of a pixmap are PIXEL(0, 0, 0, 0) */ 48 48 PIXELMAP_EXTEND_TRANSPARENT_BLACK = 0, 49 49 50 50 /* The pixmap is repeated infinetely */ 51 51 PIXELMAP_EXTEND_TILE, 52 52 53 53 /* If outside of a pixmap, return closest pixel from the edge */ 54 54 PIXELMAP_EXTEND_SIDES, 55 55 56 56 /* If outside of a pixmap, return closest pixel from the edge, 57 57 * with alpha = 0 … … 125 125 transparent = transparent_outside; 126 126 } 127 127 128 128 if (y < 0) { 129 129 y = 0; … … 135 135 } 136 136 } 137 137 138 138 if (x < 0 || ((sysarg_t) x) >= pixmap->width || 139 139 y < 0 || ((sysarg_t) y) >= pixmap->height) … … 141 141 142 142 pixel_t pixel = pixelmap_get_pixel(pixmap, x, y); 143 143 144 144 if (transparent) 145 145 pixel = PIXEL(0, RED(pixel), GREEN(pixel), BLUE(pixel)); 146 146 147 147 return pixel; 148 148 } -
uspace/lib/c/include/io/printf_core.h
r3061bc1 ra35b458 43 43 /* String output function, returns number of printed characters or EOF */ 44 44 int (*str_write)(const char *, size_t, void *); 45 45 46 46 /* Wide string output function, returns number of printed characters or EOF */ 47 47 int (*wstr_write)(const wchar_t *, size_t, void *); 48 48 49 49 /* User data - output stream specification, state, locks, etc. */ 50 50 void *data;
Note:
See TracChangeset
for help on using the changeset viewer.