mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
parent
8e1a9f72dd
commit
c1dadff50a
1 changed files with 42 additions and 0 deletions
|
@ -10,3 +10,45 @@ Blueprint is a markup language and compiler for GTK 4 user interfaces.
|
|||
setup
|
||||
examples
|
||||
|
||||
|
||||
.. code-block::
|
||||
|
||||
using Gtk 4.0;
|
||||
|
||||
template MyAppWindow : ApplicationWindow {
|
||||
default-width: 600;
|
||||
default-height: 300;
|
||||
title: _("Hello, Blueprint!");
|
||||
|
||||
[titlebar]
|
||||
HeaderBar {}
|
||||
|
||||
Label {
|
||||
label: bind MyAppWindow.main_text sync-create;
|
||||
}
|
||||
}
|
||||
|
||||
Blueprint helps you build user interfaces in GTK quickly and declaratively.
|
||||
It has modern IDE features like code completion and hover documentation, and
|
||||
the compiler points out mistakes early on so you can focus on making your app
|
||||
look amazing.
|
||||
|
||||
Features
|
||||
--------
|
||||
|
||||
- **Easy setup.** A porting tool is available to help port your projects from
|
||||
XML. The compiler's only dependency is Python, and it can be included as
|
||||
a meson subproject. :doc:`See the Setup page for more information. <setup>`
|
||||
- **Concise syntax.** No more clumsy XML! Blueprint is designed from the ground
|
||||
up to match GTK's widget model, including templates, child types, signal
|
||||
handlers, and menus.
|
||||
- **Easy to learn.** The syntax should be very familiar to most people. Scroll
|
||||
through the :doc:`examples page <examples>` for a quick overview of the whole
|
||||
language.
|
||||
- **Modern tooling.** IDE integration for `GNOME Builder <https://developer.gnome.org/documentation/introduction/builder.html>`_
|
||||
is in progress, and a VS Code extension is also planned.
|
||||
|
||||
Links
|
||||
-----
|
||||
|
||||
- `Source code <https://gitlab.gnome.org/jwestman/blueprint-compiler>`_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue