From 73ca1066ff2efe613a6e5588803eef36fae83b79 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Tue, 16 Nov 2021 20:56:15 +0100 Subject: [PATCH] @layout -> Base types except for `grid` call --- src/layouts.jl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/layouts.jl b/src/layouts.jl index 3d620fd1..078c76ab 100644 --- a/src/layouts.jl +++ b/src/layouts.jl @@ -601,7 +601,7 @@ function create_grid(expr::Expr) create_grid_vcat(expr) elseif isrow(expr) :( - let cell = GridLayout(1, $(length(expr.args))) + let cell = Matrix(undef, 1, $(length(expr.args))) $( [ :(cell[1, $i] = $(create_grid(v))) for @@ -640,7 +640,7 @@ function create_grid_vcat(expr::Expr) end end :( - let cell = GridLayout($nr, $nc) + let cell = Matrix(undef, $nr, $nc) $body cell end @@ -648,7 +648,7 @@ function create_grid_vcat(expr::Expr) else # otherwise just build one row at a time :( - let cell = GridLayout($(length(expr.args)), 1) + let cell = Matrix(undef, $(length(expr.args)), 1) $( [ :(cell[$i, 1] = $(create_grid(v))) for @@ -676,7 +676,7 @@ function create_grid_curly(expr::Expr) )), ) elseif isa(s, Symbol) - :(EmptyLayout( + :(( label = $(QuoteNode(s)), width = $(get(kw, :w, QuoteNode(:auto))), height = $(get(kw, :h, QuoteNode(:auto))), @@ -687,7 +687,7 @@ function create_grid_curly(expr::Expr) end function create_grid(s::Symbol) - :(EmptyLayout(label = $(QuoteNode(s)), blank = $(s == :_))) + :((label = $(QuoteNode(s)), blank = $(s == :_))) end macro layout(mat::Expr)