#include "core/gooey_backend_internal.h"
#include "gooey_widgets_internal.h"
Go to the source code of this file.
|
GooeyLayout * | GooeyLayout_Create (GooeyWindow *win, GooeyLayoutType layout_type, int x, int y, int width, int height) |
| Creates a layout for the specified window.
|
|
void | GooeyLayout_AddChild (GooeyLayout *layout, void *widget) |
| Adds a child widget to a layout.
|
|
void | GooeyLayout_Build (GooeyLayout *layout) |
| Builds the layout, arranging all child widgets according to the layout type.
|
|
◆ GooeyLayout_AddChild()
void GooeyLayout_AddChild |
( |
GooeyLayout * |
layout, |
|
|
void * |
widget |
|
) |
| |
Adds a child widget to a layout.
- Parameters
-
layout | The layout to which the widget will be added. |
widget | The widget to add to the layout. |
◆ GooeyLayout_Build()
void GooeyLayout_Build |
( |
GooeyLayout * |
layout | ) |
|
Builds the layout, arranging all child widgets according to the layout type.
- Parameters
-
layout | The layout to build. |
◆ GooeyLayout_Create()
GooeyLayout * GooeyLayout_Create |
( |
GooeyWindow * |
win, |
|
|
GooeyLayoutType |
layout_type, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
Creates a layout for the specified window.
Initializes a new layout with a specified layout type, position, and size within the window.
- Parameters
-
win | The window to attach the layout to. |
layout_type | The type of layout (e.g., grid, box). |
x | The x-coordinate of the layout's position. |
y | The y-coordinate of the layout's position. |
width | The width of the layout. |
height | The height of the layout. |
- Returns
- A new GooeyLayout object.