view infinite_canvas/dev_ui.h @ 278:8d560f50ed4c

Improve infinite canvas interactions and browser chrome Render Lucide icons directly with Raylib, add searchable icon browsing, robust text editing, entity lifecycle animations, z-order-safe input, semantic themes, and animated editable browser controls. Document rendering, pinning, context, and component extension for future agents. Co-authored-by: Copilot <[email protected]> Copilot-Session: f68442b1-fa8f-46a0-9689-81710613bbd4
author MrJuneJune <me@mrjunejune.com>
date Mon, 17 Aug 2026 22:16:14 -0700
parents b55c22cff335
children 49e9e591c9bb
line wrap: on
line source

#ifndef INFINITE_CANVAS_DEV_UI_H
#define INFINITE_CANVAS_DEV_UI_H

#include "infinite_canvas/canvas.h"

typedef struct {
    int32 selected_type;
    boolean dropdown_open;
    boolean context_open;
    float context_scroll;
    float context_content_height;
    char context_buffer[CANVAS_CONTEXT_MAX_LENGTH];
} Canvas_Dev_UI;

void Canvas_Dev_UI_Init(
    Canvas_Dev_UI *p_ui,
    Font font,
    const Canvas_Theme *p_theme);
boolean Canvas_Dev_UI_Contains_Pointer(const Canvas_Dev_UI *p_ui);
void Canvas_Dev_UI_Draw(
    Canvas_Dev_UI *p_ui,
    Canvas_Camera *p_camera,
    Canvas_Scene *p_scene,
    Font font,
    Canvas_Theme *p_theme);

#endif