Changeset 7e38970d in mainline for uspace/app/terminal/terminal.h
- Timestamp:
- 2020-12-07T00:08:37Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 25f26600
- Parents:
- 7a873f0 (diff), 8596474 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/terminal/terminal.h
r7a873f0 r7e38970d 1 1 /* 2 * Copyright (c) 2019 Jiri Svoboda 2 3 * Copyright (c) 2012 Petr Koupy 3 4 * All rights reserved. … … 27 28 */ 28 29 29 /** @addtogroup gui30 /** @addtogroup terminal 30 31 * @{ 31 32 */ … … 34 35 */ 35 36 36 #ifndef GUI_TERMINAL_H_37 #define GUI_TERMINAL_H_37 #ifndef TERMINAL_H 38 #define TERMINAL_H 38 39 39 #include < stddef.h>40 #include <errno.h> 40 41 #include <fibril_synch.h> 41 #include <draw/font.h> 42 #include <gfx/bitmap.h> 43 #include <gfx/context.h> 44 #include <gfx/coord.h> 42 45 #include <io/chargrid.h> 43 46 #include <io/con_srv.h> 44 47 #include <loc.h> 45 #include <adt/list.h>46 48 #include <adt/prodcons.h> 47 49 #include <stdatomic.h> 48 50 #include <str.h> 49 #include "widget.h" 51 #include <ui/ui.h> 52 #include <ui/window.h> 50 53 51 54 #define UTF8_CHAR_BUFFER_SIZE (STR_BOUNDS(1) + 1) 52 55 53 typedef struct terminal { 54 widget_t widget; 56 typedef enum { 57 tf_topleft = 1 58 } terminal_flags_t; 59 60 typedef struct { 61 ui_t *ui; 62 ui_window_t *window; 63 ui_resource_t *ui_res; 64 gfx_context_t *gc; 65 66 gfx_bitmap_t *bmp; 67 sysarg_t w; 68 sysarg_t h; 69 gfx_rect_t update; 70 gfx_coord2_t off; 71 bool is_focused; 55 72 56 73 fibril_mutex_t mtx; … … 72 89 } terminal_t; 73 90 74 extern bool init_terminal(terminal_t *, widget_t *, const void *, sysarg_t, 75 sysarg_t); 76 extern terminal_t *create_terminal(widget_t *, const void *, sysarg_t, 77 sysarg_t); 78 extern void deinit_terminal(terminal_t *); 91 extern errno_t terminal_create(const char *, sysarg_t, sysarg_t, 92 terminal_flags_t, terminal_t **); 93 extern void terminal_destroy(terminal_t *); 79 94 80 95 #endif
Note:
See TracChangeset
for help on using the changeset viewer.