Mercurial
comparison infinite_canvas/canvas.h @ 281:c57149ad216e default tip
Copilot-Session: f68442b1-fa8f-46a0-9689-81710613bbd4
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Tue, 18 Aug 2026 22:18:15 -0700 |
| parents | 49e9e591c9bb |
| children |
comparison
equal
deleted
inserted
replaced
| 280:49e9e591c9bb | 281:c57149ad216e |
|---|---|
| 9 #define CANVAS_WEB_FRAME_INSET 8.0f | 9 #define CANVAS_WEB_FRAME_INSET 8.0f |
| 10 #define CANVAS_WEB_TOOLBAR_HEIGHT 42.0f | 10 #define CANVAS_WEB_TOOLBAR_HEIGHT 42.0f |
| 11 #define CANVAS_WEB_RESIZE_HANDLE 18.0f | 11 #define CANVAS_WEB_RESIZE_HANDLE 18.0f |
| 12 #define CANVAS_WEB_MIN_WIDTH 160.0f | 12 #define CANVAS_WEB_MIN_WIDTH 160.0f |
| 13 #define CANVAS_WEB_MIN_HEIGHT 120.0f | 13 #define CANVAS_WEB_MIN_HEIGHT 120.0f |
| 14 #define CANVAS_TEXT_AREA_MIN_WIDTH 180.0f | |
| 15 #define CANVAS_TEXT_AREA_MIN_HEIGHT 96.0f | |
| 14 #define CANVAS_CONTEXT_MAX_LENGTH (64 * 1024) | 16 #define CANVAS_CONTEXT_MAX_LENGTH (64 * 1024) |
| 15 #define CANVAS_ENTITY_TEXT_CAPACITY 2048 | 17 #define CANVAS_ENTITY_TEXT_CAPACITY 2048 |
| 16 | 18 |
| 17 typedef enum { | 19 typedef enum { |
| 18 CANVAS_ENTITY_RECTANGLE = 0, | 20 CANVAS_ENTITY_RECTANGLE = 0, |
| 127 float padding_left, | 129 float padding_left, |
| 128 float padding_top, | 130 float padding_top, |
| 129 float padding_right, | 131 float padding_right, |
| 130 float padding_bottom); | 132 float padding_bottom); |
| 131 float Canvas_Grid_Spacing(float zoom); | 133 float Canvas_Grid_Spacing(float zoom); |
| 134 Rectangle Canvas_Entity_Resize_Handle_Bounds( | |
| 135 const Canvas_Entity *p_entity, | |
| 136 float zoom); | |
| 132 int32 Canvas_Lucide_Count_Matches(const char *p_query); | 137 int32 Canvas_Lucide_Count_Matches(const char *p_query); |
| 138 void Canvas_Draw_Lucide_Icon( | |
| 139 const char *p_name, | |
| 140 Vector2 origin, | |
| 141 float scale, | |
| 142 float line_thickness, | |
| 143 Color color); | |
| 133 Canvas_Web_Chrome_Action Canvas_Web_Chrome_Update_Input( | 144 Canvas_Web_Chrome_Action Canvas_Web_Chrome_Update_Input( |
| 134 const Canvas_Camera *p_camera, | 145 const Canvas_Camera *p_camera, |
| 135 Canvas_Scene *p_scene, | 146 Canvas_Scene *p_scene, |
| 136 Font font, | 147 Font font, |
| 137 const char *p_current_url); | 148 const char *p_current_url); |