mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-06-22 23:19:25 -04:00
Merge branch 'wip/velsinki/levelbar-support-offsets' into 'main'
language: Add Gtk.LevelBar offset syntax See merge request GNOME/blueprint-compiler!247
This commit is contained in:
commit
d37b387c5c
8 changed files with 198 additions and 0 deletions
|
@ -23,6 +23,7 @@ Properties are the main way to set values on objects, but they are limited by th
|
|||
| :ref:`ExtFileFilterPatterns<Syntax ExtFileFilter>`
|
||||
| :ref:`ExtFileFilterSuffixes<Syntax ExtFileFilter>`
|
||||
| :ref:`ExtLayout<Syntax ExtLayout>`
|
||||
| :ref:`ExtLevelBarOffsets<Syntax ExtLevelBarOffsets>`
|
||||
| :ref:`ExtListItemFactory<Syntax ExtListItemFactory>`
|
||||
| :ref:`ExtScaleMarks<Syntax ExtScaleMarks>`
|
||||
| :ref:`ExtSizeGroupWidgets<Syntax ExtSizeGroupWidgets>`
|
||||
|
@ -216,6 +217,31 @@ The ``layout`` block describes how the widget should be positioned within its pa
|
|||
}
|
||||
|
||||
|
||||
.. _Syntax ExtLevelBarOffsets:
|
||||
|
||||
Gtk.LevelBar Offsets
|
||||
--------------------
|
||||
|
||||
.. rst-class:: grammar-block
|
||||
|
||||
ExtLevelBarOffsets = 'offsets' '[' (ExtLevelBarOffset),* ']'
|
||||
ExtLevelBarOffset = 'offset' '(' <name::ref:`QUOTED<Syntax QUOTED>`> ',' <value::ref:`NUMBER<Syntax NUMBER>`> ')'
|
||||
|
||||
Valid in `Gtk.LevelBar <https://docs.gtk.org/gtk4/class.LevelBar.html>`_.
|
||||
|
||||
The ``offsets`` block defines the offsets on a level bar. A single ``offset`` has two arguments: a CSS class name and a (non-negative) value.
|
||||
|
||||
.. code-block:: blueprint
|
||||
|
||||
LevelBar {
|
||||
offsets [
|
||||
offset ("low-class-name", 0.3),
|
||||
offset ("medium-class-name", 0.5),
|
||||
offset ("high-class-name", 0.7),
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
.. _Syntax ExtListItemFactory:
|
||||
|
||||
Gtk.BuilderListItemFactory Templates
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue