project for a (works on my devices) demo

This commit is contained in:
beno
2026-03-13 02:28:59 +01:00
parent a00ae79ab5
commit dc39a56e91
36 changed files with 3892 additions and 61 deletions

View File

@@ -0,0 +1,32 @@
#pragma once
#include "../gui_component/gui_component.h"
#include "../application_context.h"
#include <EGL/egl.h>
#include "../../os/WAYLAND/wl_context.h"
#include "../../2d_structs.h"
#include "../../os/WAYLAND/xdg-shell.h"
typedef struct {
struct xdg_toplevel *xdg_toplevel;
struct wl_egl_window *egl_window;
EGLSurface *egl_surface;
application_context *ctx;
}
window_gui_enrichment;
window_gui_enrichment *window_gui_enrichment_new(
struct xdg_surface *xdg_surface,
const char *title,
application_context *ctx
);
/* the toplevel listener registration callback offers a void* arg for passing data inside the callback (our app state in this case, waiting for narrowing) */
gui_component* window_new(
const char *title,
ui_dimensions *dim,
application_context *ctx
);