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