Box
|
Страница в процессе перевода. |
Простой прямоугольник с закругленными углами. Может быть полезен для визуальной группировки частей макета или в качестве местозаполнителя.
Атрибуты
MarkdownAST.Heading(3)
Defaults to Inside()
The align mode of the rectangle in its parent GridLayout.
MarkdownAST.Heading(3)
Defaults to RGBf(0.9, 0.9, 0.9)
The color of the rectangle.
fig = Figure()
Box(fig[1, 1], color = :red)
Box(fig[1, 2], color = (:red, 0.5))
Box(fig[2, 1], color = RGBf(0.2, 0.5, 0.7))
Box(fig[2, 2], color = RGBAf(0.2, 0.5, 0.7, 0.5))
fig
MarkdownAST.Heading(3)
Defaults to 0.0
The radius of the rounded corner. One number is for all four corners, four numbers for going clockwise from top-right.
fig = Figure()
Box(fig[1, 1], cornerradius = 0)
Box(fig[1, 2], cornerradius = 20)
Box(fig[1, 3], cornerradius = (0, 10, 20, 30))
fig
MarkdownAST.Heading(3)
Defaults to :center
The horizontal alignment of the rectangle in its suggested boundingbox
MarkdownAST.Heading(3)
Defaults to nothing
The height setting of the rectangle.
MarkdownAST.Heading(3)
Defaults to nothing
The linestyle of the rectangle border
fig = Figure()
Box(fig[1, 1], linestyle = :solid)
Box(fig[1, 2], linestyle = :dot)
Box(fig[1, 3], linestyle = :dash)
fig
MarkdownAST.Heading(3)
Defaults to RGBf(0, 0, 0)
The color of the border.
fig = Figure()
Box(fig[1, 1], strokecolor = :red)
Box(fig[1, 2], strokecolor = (:red, 0.5))
Box(fig[2, 1], strokecolor = RGBf(0.2, 0.5, 0.7))
Box(fig[2, 2], strokecolor = RGBAf(0.2, 0.5, 0.7, 0.5))
fig
MarkdownAST.Heading(3)
Defaults to true
Controls if the border of the rectangle is visible.
MarkdownAST.Heading(3)
Defaults to 1.0
The line width of the rectangle’s border.
fig = Figure()
Box(fig[1, 1], strokewidth = 1)
Box(fig[1, 2], strokewidth = 10)
Box(fig[1, 3], strokewidth = 0)
fig
MarkdownAST.Heading(3)
Defaults to true
Controls if the parent layout can adjust to this element’s height
MarkdownAST.Heading(3)
Defaults to true
Controls if the parent layout can adjust to this element’s width
MarkdownAST.Heading(3)
Defaults to :center
The vertical alignment of the rectangle in its suggested boundingbox
MarkdownAST.Heading(3)
Defaults to true
Controls if the rectangle is visible.
MarkdownAST.Heading(3)
Defaults to nothing
The width setting of the rectangle.