GNOME SDK Adds Support for Blueprint Interface Language

The GNOME SDK includes a blueprint-compiler, which allows you to use Blueprint markup to define your application interface. Blueprint support in the GNOME SDK will allow you to use this interface description language in GNOME applications without manually installing additional dependencies. Blueprint is currently included in the nightly builds of the GNOME SDK and will be included in releases starting with the fall release of GNOME 49.

Blueprint simplifies the creation of interfaces using the GTK4 library and is distinguished by the use of a simple declarative syntax that replicates the model of GTK widgets, supporting standard templates, types and handlers. Unlike the GTK ui file format, Blueprint does not use XML markup, which is perceived as overloaded and inconvenient for manual editing.

For integration with IDEs and code editors, a Language Server Protocol (LSP) server is provided, which can be used for highlighting, error analysis, hinting, and code completion. Blueprint support is already built into GNOME Builder and is available as plugins for Vim, GNU Emacs, and Visual Studio Code. A utility is available to simplify porting interface definitions from XML to Blueprint.

Thanks to its readable syntax, the Blueprint format allows you to do without the use of specialized visual interface editors. At the same time, Blueprint does not require changes to GTK and is positioned as an add-on that compiles markup into the standard XML format for GtkBuilder. Blueprint's functionality is fully consistent with GtkBuilder, only the method of presenting information differs. 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 hosting for sites with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster