File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ class MenuBar
22
22
23
23
protected string $ tooltip = '' ;
24
24
25
+ protected bool $ resizable = true ;
26
+
25
27
protected bool $ onlyShowContextMenu = false ;
26
28
27
29
protected ?Menu $ contextMenu = null ;
@@ -79,6 +81,13 @@ public function tooltip(string $tooltip = ''): self
79
81
return $ this ;
80
82
}
81
83
84
+ public function resizable (bool $ resizable = true ): static
85
+ {
86
+ $ this ->resizable = $ resizable ;
87
+
88
+ return $ this ;
89
+ }
90
+
82
91
public function alwaysOnTop ($ alwaysOnTop = true ): self
83
92
{
84
93
$ this ->alwaysOnTop = $ alwaysOnTop ;
@@ -103,6 +112,7 @@ public function toArray(): array
103
112
'y ' => $ this ->y ,
104
113
'label ' => $ this ->label ,
105
114
'tooltip ' => $ this ->tooltip ,
115
+ 'resizable ' => $ this ->resizable ,
106
116
'width ' => $ this ->width ,
107
117
'height ' => $ this ->height ,
108
118
'vibrancy ' => $ this ->vibrancy ,
You can’t perform that action at this time.
0 commit comments