On Tuesday, 26 May 2026 at 07:20:22 UTC, Dejan Lekic wrote:
On Tuesday, 26 May 2026 at 02:04:27 UTC, c-smile wrote:
But nevertheless you provide a sample that uses DOM and CSS 😛.
The only thing GTK "stole" from the web is CSS. It looks to me
like you believe GTK uses DOM - no it does not. It has own
widget tree, a strictly typed hierarchy built on GObject.
widget tree is DOM tree by any means.
Moreover, CSS requires tree of elements/entities (see CSS
selectors) to operate so collection of widgets MUST be
represented as a tree.
Finally, Sciter uses it on Linux it seems. So, it seems you
opted for using GTK's lower layer. I am not surprised, it is a
good choice. You could have used SDL instead, could you, but
you decided to use GTK... What is important is that it works
for you and your business!
Sciter uses GTK4 optionally. If it detects that current WM uses
GTK4 then it loads (dlopen/dlsym) needed GLib/GTK4 functions at
runtime. Therefore libsciter.so does not require GTK4 to be
present on a machine.
If no GTK4 is running then Sciter uses either X11 or Wayland APIs
directly. Whatever is present.
GTK4 is used by Sciter to create desktop windows with proper
chrome styling and system dialogs (file open/save). Everything
inside the window is Sciter's DOM rendered by Skia on H/W
accelerated OpenGLES surface.
TL;DR: GiD requires GTK4 to be installed. Sciter does not.