2019-07-05 10:16:56 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "terminal.h"
|
2020-01-04 19:49:26 +01:00
|
|
|
#include "fdm.h"
|
|
|
|
|
#include "wayland.h"
|
2019-07-05 10:16:56 +02:00
|
|
|
|
2020-01-04 19:49:26 +01:00
|
|
|
struct renderer;
|
|
|
|
|
struct renderer *render_init(struct fdm *fdm, struct wayland *wayl);
|
|
|
|
|
void render_destroy(struct renderer *renderer);
|
2019-07-05 10:16:56 +02:00
|
|
|
|
2020-01-03 13:56:10 +01:00
|
|
|
void render_resize(struct terminal *term, int width, int height);
|
2020-02-08 14:08:16 +01:00
|
|
|
void render_resize_force(struct terminal *term, int width, int height);
|
|
|
|
|
|
2019-07-05 10:16:56 +02:00
|
|
|
void render_set_title(struct terminal *term, const char *title);
|
2019-07-24 20:09:49 +02:00
|
|
|
void render_refresh(struct terminal *term);
|
2020-01-04 22:01:19 +01:00
|
|
|
bool render_xcursor_set(struct terminal *term);
|
2019-07-29 20:13:26 +02:00
|
|
|
|
2019-08-29 20:18:06 +02:00
|
|
|
void render_search_box(struct terminal *term);
|
2019-08-21 17:53:52 +02:00
|
|
|
|
2019-07-29 20:13:26 +02:00
|
|
|
struct render_worker_context {
|
|
|
|
|
int my_id;
|
|
|
|
|
struct terminal *term;
|
|
|
|
|
};
|
|
|
|
|
int render_worker_thread(void *_ctx);
|