aboutsummaryrefslogtreecommitdiff
path: root/state.h
diff options
context:
space:
mode:
Diffstat (limited to 'state.h')
-rw-r--r--state.h8
1 files changed, 8 insertions, 0 deletions
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;
@@ -32,6 +33,11 @@ typedef struct {
} atlas_t;
typedef struct {
+ char* text;
+ size_t pixel_len;
+} item_t;
+
+typedef struct {
// wayland
struct wl_display* display;
struct wl_registry* registry;
@@ -73,6 +79,8 @@ typedef struct {
bool running;
+ item_t* items;
+
} client_state;
#endif // STATE_H_