From 5fa96e59fa378af36e90cdd8ee741d164304e3b8 Mon Sep 17 00:00:00 2001 From: Riley Beckett Date: Tue, 14 Oct 2025 15:48:32 -0400 Subject: read stdin input --- state.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'state.h') diff --git a/state.h b/state.h index 3089233..4e4b99a 100644 --- a/state.h +++ b/state.h @@ -21,6 +21,7 @@ typedef struct { float advance_x, advance_y; uint32_t bitmap_width, bitmap_height; + int32_t bearing_x, bearing_y; float texture_offset; float texture_size; } metric_t; @@ -31,6 +32,11 @@ typedef struct { metric_t metrics[128]; } atlas_t; +typedef struct { + char* text; + size_t pixel_len; +} item_t; + typedef struct { // wayland struct wl_display* display; @@ -73,6 +79,8 @@ typedef struct { bool running; + item_t* items; + } client_state; #endif // STATE_H_ -- cgit v1.2.3