fixed README
This commit is contained in:
parent
aee3641ae8
commit
13d74ab383
2 changed files with 10 additions and 10 deletions
10
README.md
10
README.md
|
@ -134,12 +134,12 @@ fn sidebarItemCompoment(index: usize) void {
|
|||
// An example function to begin the "root" of your layout tree
|
||||
fn createLayout(profile_picture: *const rl.Texture2D) clay.ClayArray(clay.RenderCommand) {
|
||||
clay.beginLayout();
|
||||
clay.UI(&.{
|
||||
.ID("OuterContainer"),
|
||||
.layout(.{ .direction = .LEFT_TO_RIGHT, .sizing = .grow, .padding = .all(16), .gap = 16 }),
|
||||
.rectangle(.{ .color = white }),
|
||||
});
|
||||
{
|
||||
clay.UI(&.{
|
||||
.ID("OuterContainer"),
|
||||
.layout(.{ .direction = .LEFT_TO_RIGHT, .sizing = .grow, .padding = .all(16), .gap = 16 }),
|
||||
.rectangle(.{ .color = white }),
|
||||
});
|
||||
defer clay.CLOSE();
|
||||
|
||||
clay.UI(&.{
|
||||
|
|
|
@ -21,12 +21,12 @@ fn sidebarItemCompoment(index: usize) void {
|
|||
|
||||
fn createLayout(profile_picture: *const rl.Texture2D) cl.ClayArray(cl.RenderCommand) {
|
||||
cl.beginLayout();
|
||||
cl.UI(&.{
|
||||
.ID("OuterContainer"),
|
||||
.layout(.{ .direction = .LEFT_TO_RIGHT, .sizing = .grow, .padding = .all(16), .gap = 16 }),
|
||||
.rectangle(.{ .color = white }),
|
||||
});
|
||||
{
|
||||
cl.UI(&.{
|
||||
.ID("OuterContainer"),
|
||||
.layout(.{ .direction = .LEFT_TO_RIGHT, .sizing = .grow, .padding = .all(16), .gap = 16 }),
|
||||
.rectangle(.{ .color = white }),
|
||||
});
|
||||
defer cl.CLOSE();
|
||||
|
||||
cl.UI(&.{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue