89 unsigned int cols,
unsigned int rows);
103 unsigned int rows, gp_coord x, gp_coord y);
120void gpf_cell_draw(gp_pixmap *p,
const gp_widget_render_ctx *ctx,
121 const struct gpf_cell *self,
int x,
int y, uint32_t code);
140 const struct gpf_cell *self,
int x,
int y,
141 uint32_t code,
const struct gpf_glyph *glyph);
152void gpf_cell_grid(gp_pixmap *p,
const gp_widget_render_ctx *ctx,
153 const struct gpf_cell *self,
unsigned int cols,
void gpf_cell_grid(gp_pixmap *p, const gp_widget_render_ctx *ctx, const struct gpf_cell *self, unsigned int cols, unsigned int rows)
Draws the lines between the cells of a grid.
void gpf_cell_draw_glyph(gp_pixmap *p, const gp_widget_render_ctx *ctx, const struct gpf_cell *self, int x, int y, uint32_t code, const struct gpf_glyph *glyph)
Draws a glyph cell with the ink handed to it.
void gpf_cell_center(struct gpf_cell *self, const gp_pixmap *p, unsigned int cols, unsigned int rows)
Centres a grid of cells in a pixmap.
int gpf_cell_at(const struct gpf_cell *self, unsigned int cols, unsigned int rows, gp_coord x, gp_coord y)
Finds the cell under a point.
void gpf_cell_draw(gp_pixmap *p, const gp_widget_render_ctx *ctx, const struct gpf_cell *self, int x, int y, uint32_t code)
Draws a glyph cell.
void gpf_cell_init(struct gpf_cell *self, const gp_widget_render_ctx *ctx, unsigned int max_h)
Sizes a cell for the current font and zoom.
The in-memory font model.
gp_pixel bg
The color the cells are drawn on, the selected one is highlighted instead.
unsigned int label_h
The height of the codepoint line at the top.
unsigned int w
The cell size in pixels.
int x0
Where the grid starts in the pixmap, see gpf_cell_center().
unsigned int pad
The theme's padding, above the glyph and below it.
int top
How far the font's ink reaches above the baseline, at least the ascent.
unsigned int zoom
The pixel multiplier, the table's, or less when there is no room.
unsigned int ref_h
The line under it, where the widget font draws the character.