The GNOME SDK has added support for the Blueprint interface building language.

The GNOME project offers a software development toolkit (GNOME SDK) that includes the blueprint-compiler, allowing for the definition of application interfaces using Blueprint markup. Support for Blueprint in the GNOME SDK will enable the use of this interface description language in GNOME applications without the need for manual installation of additional dependencies. Currently, Blueprint has been added to the nightly builds of GNOME SDK and will be included in releases starting with the autumn release of GNOME 49.

Blueprint simplifies the creation of interfaces using the GTK4 library and features a simple declarative syntax that mirrors the GTK widget model, supporting standard templates, types, and handlers. Unlike the GTK ui file format, Blueprint does not use XML markup, which is viewed as cumbersome and inconvenient for manual editing.

To integrate with integrated development environments and code editors, there is an LSP server (Language Server Protocol) available, which can be used for syntax highlighting, error analysis, hints, and code autocompletion. Blueprint support is already built into GNOME Builder and is available as plugins for Vim, GNU Emacs, and Visual Studio Code. There is also a utility to simplify the porting of interface definitions from XML to Blueprint.

Thanks to its readable syntax, the Blueprint format avoids the need for specialized visual interface editors. Additionally, Blueprint does not require changes to GTK and is positioned as an extension that compiles markup into the standard XML format used by GtkBuilder. The capabilities of Blueprint fully match those of GtkBuilder, differing only in the method of information representation. The toolkit code is written in Python and is distributed under the LGPLv3 license. using Gtk 4.0; template $MyAppWindow: ApplicationWindow { default-width: 600; default-height: 300; title: _("Hello, Blueprint!"); [titlebar] HeaderBar {} Label { label: bind template.main_text; } }

Source: opennet.ru

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster