Gooey GUI Library
|
Header file for the GooeyLayout module. More...
#include "common/gooey_common.h"
Go to the source code of this file.
Functions | |
GooeyLayout * | GooeyLayout_Create (GooeyLayoutType layout_type, int x, int y, int width, int height) |
Creates a layout. | |
void | GooeyLayout_AddChild (GooeyLayout *layout, void *widget) |
Adds a child widget to the specified layout. | |
void | GooeyLayout_Build (GooeyLayout *layout) |
Arranges all child widgets within the layout. | |
Header file for the GooeyLayout module.
Provides functionality for managing and arranging widgets within a structured layout inside a GooeyWindow.
void GooeyLayout_AddChild | ( | GooeyLayout * | layout, |
void * | widget | ||
) |
Adds a child widget to the specified layout.
Registers a widget as a child of the given layout, allowing it to be positioned according to the layout's rules.
layout | The layout to which the widget will be added. |
widget | A pointer to the widget to add. |
void GooeyLayout_Build | ( | GooeyLayout * | layout | ) |
Arranges all child widgets within the layout.
This function organizes all registered child widgets based on the layout type (e.g., grid, box), ensuring proper alignment and spacing.
layout | The layout to build. |
GooeyLayout * GooeyLayout_Create | ( | GooeyLayoutType | layout_type, |
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
Creates a layout.
Initializes a new layout with a specified type, position, and size.
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. |