File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -301,13 +301,37 @@ func (s *Style) Text() *StyleText {
301
301
}
302
302
303
303
func (s * Style ) Window () * StyleWindow {
304
- return (* StyleWindow )(& s .window )
304
+ return (* StyleWindow )(& s .window )
305
305
}
306
306
307
307
func (w * StyleWindow ) Background () * Color {
308
308
return (* Color )(& w .background )
309
309
}
310
310
311
+ func (w * StyleWindow ) Spacing () * Vec2 {
312
+ return (* Vec2 )(& w .spacing )
313
+ }
314
+
315
+ func (w * StyleWindow ) Padding () * Vec2 {
316
+ return (* Vec2 )(& w .padding )
317
+ }
318
+
319
+ func (w * StyleWindow ) GroupPadding () * Vec2 {
320
+ return (* Vec2 )(& w .group_padding )
321
+ }
322
+
323
+ func SetSpacing (ctx * Context , v Vec2 ) {
324
+ * ctx .Style ().Window ().Spacing () = v
325
+ }
326
+
327
+ func SetPadding (ctx * Context , v Vec2 ) {
328
+ * ctx .Style ().Window ().Padding () = v
329
+ }
330
+
331
+ func SetGroupPadding (ctx * Context , v Vec2 ) {
332
+ * ctx .Style ().Window ().GroupPadding () = v
333
+ }
334
+
311
335
func SetTextColor (ctx * Context , color Color ) {
312
336
* ctx .Style ().Text ().Color () = color
313
337
}
You can’t perform that action at this time.
0 commit comments