render.h
This file
Path
render.h
42 lines · 1.3 KiB · C
Last changed by
wayland: don't ignore the mouse's X coordinate when selectingDaniel Eklöfbefore adoption1f6e155
History of this fileTake 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_prompt(31 struct render *render, struct buffer *buf,32 const struct prompt *prompt, const struct matches *matches);3334void render_match_list(35 struct render *render, struct buffer *buf,36 const struct prompt *prompt, const struct matches *matches);3738int render_icon_size(const struct render *render);3940ssize_t render_get_row_num(41 const struct render *render, int window_width, int x, int y,42 const struct matches *matches);