@@ -78,6 +78,87 @@ public function align(FUILayoutAlignment $alignment) : self
7878 return $ this ;
7979 }
8080
81+ /**
82+ * Sets the alignment to top left
83+ */
84+ public function alignTopLeft () : self
85+ {
86+ $ this ->alignment = FUILayoutAlignment::topLeft;
87+ return $ this ;
88+ }
89+
90+ /**
91+ * Sets the alignment to top center
92+ */
93+ public function alignTopCenter () : self
94+ {
95+ $ this ->alignment = FUILayoutAlignment::topCenter;
96+ return $ this ;
97+ }
98+
99+ /**
100+ * Sets the alignment to top right
101+ */
102+ public function alignTopRight () : self
103+ {
104+ $ this ->alignment = FUILayoutAlignment::topRight;
105+ return $ this ;
106+ }
107+
108+ /**
109+ * Sets the alignment to center left
110+ */
111+ public function alignCenterLeft () : self
112+ {
113+ $ this ->alignment = FUILayoutAlignment::centerLeft;
114+ return $ this ;
115+ }
116+
117+ /**
118+ * Sets the alignment to center
119+ */
120+ public function alignCenter () : self
121+ {
122+ $ this ->alignment = FUILayoutAlignment::center;
123+ return $ this ;
124+ }
125+
126+ /**
127+ * Sets the alignment to center right
128+ */
129+ public function alignCenterRight () : self
130+ {
131+ $ this ->alignment = FUILayoutAlignment::centerRight;
132+ return $ this ;
133+ }
134+
135+ /**
136+ * Sets the alignment to bottom left
137+ */
138+ public function alignBottomLeft () : self
139+ {
140+ $ this ->alignment = FUILayoutAlignment::bottomLeft;
141+ return $ this ;
142+ }
143+
144+ /**
145+ * Sets the alignment to bottom center
146+ */
147+ public function alignBottomCenter () : self
148+ {
149+ $ this ->alignment = FUILayoutAlignment::bottomCenter;
150+ return $ this ;
151+ }
152+
153+ /**
154+ * Sets the alignment to bottom right
155+ */
156+ public function alignBottomRight () : self
157+ {
158+ $ this ->alignment = FUILayoutAlignment::bottomRight;
159+ return $ this ;
160+ }
161+
81162 /**
82163 * Sets the a fixed height for the layout
83164 * Note: This will override the vertical sizing mode
0 commit comments