mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 10:25:37 +00:00
+1
-1
@@ -37,7 +37,7 @@ func NewContext(q event.Queue) *Context {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// layout a widget with a set of constraints and return its
|
// layout a widget with a set of constraints and return its
|
||||||
// dimensions. The widget dimensions are constrained abd the previous
|
// dimensions. The widget dimensions are constrained and the previous
|
||||||
// constraints are restored after layout.
|
// constraints are restored after layout.
|
||||||
func ctxLayout(gtx *Context, cs Constraints, w Widget) Dimensions {
|
func ctxLayout(gtx *Context, cs Constraints, w Widget) Dimensions {
|
||||||
saved := gtx.Constraints
|
saved := gtx.Constraints
|
||||||
|
|||||||
Reference in New Issue
Block a user