diff options
author | Aylur <[email protected]> | 2024-12-25 02:36:28 +0100 |
---|---|---|
committer | Aylur <[email protected]> | 2024-12-25 02:36:28 +0100 |
commit | f00e558c6af391bc7ae0b64190da37f876f12c79 (patch) | |
tree | bfda44155b326c66cbd2b986c0316515120140d9 /lib/astal/gtk4/src | |
parent | 22ab42c2bb5532064d704931729ddba089dd7276 (diff) |
docs: add gtk4 jsx documentation
Diffstat (limited to 'lib/astal/gtk4/src')
-rw-r--r-- | lib/astal/gtk4/src/widget/box.vala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/astal/gtk4/src/widget/box.vala b/lib/astal/gtk4/src/widget/box.vala index eb52f9c..28f2b00 100644 --- a/lib/astal/gtk4/src/widget/box.vala +++ b/lib/astal/gtk4/src/widget/box.vala @@ -1,4 +1,19 @@ public class Astal.Box : Gtk.Box { + /** + * Corresponds to [[email protected] :orientation]. + */ + [CCode (notify = false)] + public bool vertical { + get { return orientation == Gtk.Orientation.VERTICAL; } + set { orientation = value ? Gtk.Orientation.VERTICAL : Gtk.Orientation.HORIZONTAL; } + } + + construct { + notify["orientation"].connect(() => { + notify_property("vertical"); + }); + } + public List<weak Gtk.Widget> children { set { foreach (var child in children) { |