Working on the core part.

This commit is contained in:
Creeper Lv
2025-12-24 22:08:37 +11:00
parent 6d3a1a1c89
commit 2d2fec0bed
8 changed files with 181 additions and 15 deletions

View File

@@ -0,0 +1,27 @@
using Jint.Native;
using System;
using System.Collections.Generic;
using System.Text;
namespace Progrart.Core.Graphics
{
public class BaseElement
{
public JsObject? __object = null;
public virtual void Add(BaseElement element) { }
public virtual void Remove(BaseElement element) { }
public virtual void Render(RenderContext context)
{
}
public virtual void SetProperty(string key, string value)
{
}
}
public class ImageRoot : BaseElement
{
}
public class VisualRoot : BaseElement
{
}
}