Skip to content
Myr

render.h

This file

Path

render.h

48 lines · 1.5 KiB · C

Last changed by

wayland: implement text-input-unstable-v3 for IME supportMark Stosbergbefore adoption43caf1d

History of this file

Take it

1#pragma once23#include <threads.h>4#include <pixman.h>56#include <fcft/fcft.h>78#include "config.h"9#include "match.h"10#include "shm.h"11#include "tllist.h"1213struct render;14struct render *render_init(const struct config *conf, mtx_t *icon_lock);15void render_destroy(struct render *render);1617void render_initialize_colors(18    struct render *render, const struct config *conf, bool gamma_correct);1920void render_set_subpixel(struct render *render, enum fcft_subpixel subpixel);21bool render_set_font_and_update_sizes(22    struct render *render, struct fcft_font *font, struct fcft_font *font_bold,23    float scale, float dpi, bool size_font_by_dpi,24    int *new_width, int *new_height);25void render_resized(struct render *render, int *new_width, int *new_height);26void render_flush_text_run_cache(struct render *render);2728void render_background(const struct render *render, struct buffer *buf);2930void render_message(struct render *render, struct buffer *buf);3132void render_prompt(33    struct render *render, struct buffer *buf,34    const struct prompt *prompt, const struct matches *matches,35    const char32_t *preedit, int32_t preedit_cursor);3637void render_get_cursor_rect(38    const struct render *render, int *x, int *y, int *w, int *h);3940void render_match_list(41    struct render *render, struct buffer *buf,42    const struct prompt *prompt, const struct matches *matches);4344int render_icon_size(const struct render *render);4546ssize_t render_get_row_num(47    const struct render *render, int window_width, int x, int y,48    const struct matches *matches);