Lines Matching refs:vc
43 typedef struct vc {
45 // vc title, shown in status bar
110 void vc_attach_gfx(vc_t* vc);
111 void vc_free(vc_t* vc);
112 void vc_flush(vc_t* vc);
113 void vc_flush_all(vc_t* vc);
116 // status-worthy vc or global state has changed
124 void vc_render(vc_t* vc);
125 void vc_full_repaint(vc_t* vc);
126 int vc_get_scrollback_lines(vc_t* vc);
127 vc_char_t* vc_get_scrollback_line_ptr(vc_t* vc, unsigned row);
128 void vc_scroll_viewport(vc_t* vc, int dir);
129 void vc_scroll_viewport_top(vc_t* vc);
130 void vc_scroll_viewport_bottom(vc_t* vc);
131 void vc_set_fullscreen(vc_t* vc, bool fullscreen);
133 ssize_t vc_write(vc_t* vc, const void* buf, size_t count,
136 static inline int vc_rows(vc_t* vc) {
137 return vc->flags & VC_FLAG_FULLSCREEN ? vc->rows : vc->rows - 1;
142 void vc_gfx_invalidate_all(vc_t* vc);
145 void vc_gfx_invalidate(vc_t* vc, unsigned x, unsigned y, unsigned w, unsigned h);
147 void vc_gfx_invalidate_region(vc_t* vc, unsigned x, unsigned y, unsigned w, unsigned h);
148 void vc_gfx_draw_char(vc_t* vc, vc_char_t ch, unsigned x, unsigned y,
151 static inline uint32_t palette_to_color(vc_t* vc, uint8_t color) {
153 return vc->palette[color];
166 void vc_destroy(vc_t* vc);
167 ssize_t vc_write(vc_t* vc, const void* buf, size_t count, zx_off_t off);
168 zx_status_t vc_set_active(int num, vc_t* vc);