начало дерева объектов

This commit is contained in:
2026-02-26 15:16:43 +03:00
parent 05f5481a42
commit 93f7f3d814
4 changed files with 101 additions and 8 deletions

View File

@@ -12,6 +12,8 @@ pub const OpenDocument = struct {
document: Document,
cpu_render: CpuRenderEngine,
canvas: Canvas,
/// Выбранный объект в дереве (указатель, не индекс).
selected_object: ?*Document.Object = null,
pub fn init(allocator: std.mem.Allocator, self: *OpenDocument) void {
const default_size = basic_models.Size_f{ .w = 800, .h = 600 };