#include "core/gooey_common.h"
Go to the source code of this file.
|
| int | Gooey_Init (GooeyBackends backend) |
| | Initializes the Gooey system with the specified backend.
|
| |
| void | GooeyWindow_SetTheme (const char *fontPath) |
| | Sets the theme for the Gooey window.
|
| |
| GooeyWindow | GooeyWindow_Create (const char *title, int width, int height, bool visibility) |
| | Creates a new Gooey window.
|
| |
| GooeyWindow | GooeyWindow_CreateChild (const char *title, int width, int height, bool visibility) |
| |
| void | GooeyWindow_MakeVisible (GooeyWindow *win, bool visibility) |
| |
| void | GooeyWindow_Run (int num_windows, GooeyWindow *first_win,...) |
| | Runs the Gooey window.
|
| |
| void | GooeyWindow_Cleanup (int num_windows, GooeyWindow *first_win,...) |
| | Cleans up the resources associated with the Gooey windows.
|
| |
| void | GooeyWindow_RegisterWidget (GooeyWindow *win, GooeyWidget *widget) |
| |
| void | GooeyWindow_MakeResizable (GooeyWindow *msgBoxWindow, bool is_resizable) |
| | Sets the resizable property of a window.
|
| |
| void | GooeyWindow_Redraw (GooeyWindow *win) |
| |
◆ Gooey_Init()
| int Gooey_Init |
( |
GooeyBackends |
backend | ) |
|
Initializes the Gooey system with the specified backend.
- Parameters
-
| backend | The backend to use (e.g., X11, Wayland, GLFW). |
- Returns
- 0 on success, non-zero on failure.
◆ GooeyWindow_Cleanup()
| void GooeyWindow_Cleanup |
( |
int |
num_windows, |
|
|
GooeyWindow * |
first_win, |
|
|
|
... |
|
) |
| |
Cleans up the resources associated with the Gooey windows.
- Parameters
-
| num_windows | The number of windows to clean up. |
| first_window | The first window to clean up. |
◆ GooeyWindow_Create()
| GooeyWindow GooeyWindow_Create |
( |
const char * |
title, |
|
|
int |
width, |
|
|
int |
height, |
|
|
bool |
visibility |
|
) |
| |
Creates a new Gooey window.
This function initializes a new window with the given title, width, and height.
- Parameters
-
| title | The title of the window. |
| width | The width of the window. |
| height | The height of the window. |
- Returns
- A new GooeyWindow object.
◆ GooeyWindow_CreateChild()
| GooeyWindow GooeyWindow_CreateChild |
( |
const char * |
title, |
|
|
int |
width, |
|
|
int |
height, |
|
|
bool |
visibility |
|
) |
| |
◆ GooeyWindow_MakeResizable()
| void GooeyWindow_MakeResizable |
( |
GooeyWindow * |
msgBoxWindow, |
|
|
bool |
is_resizable |
|
) |
| |
Sets the resizable property of a window.
Allows the user to resize a window dynamically, depending on the value of is_resizable.
- Parameters
-
| msgBoxWindow | A pointer to the window whose resizable property is to be set. |
| is_resizable | true to make the window resizable; false to make it fixed-size. |
◆ GooeyWindow_MakeVisible()
| void GooeyWindow_MakeVisible |
( |
GooeyWindow * |
win, |
|
|
bool |
visibility |
|
) |
| |
◆ GooeyWindow_Redraw()
| void GooeyWindow_Redraw |
( |
GooeyWindow * |
win | ) |
|
◆ GooeyWindow_RegisterWidget()
| void GooeyWindow_RegisterWidget |
( |
GooeyWindow * |
win, |
|
|
GooeyWidget * |
widget |
|
) |
| |
◆ GooeyWindow_Run()
| void GooeyWindow_Run |
( |
int |
num_windows, |
|
|
GooeyWindow * |
first_win, |
|
|
|
... |
|
) |
| |
Runs the Gooey window.
This function enters the main event loop and begins processing user input and window events for the provided Gooey window.
- Parameters
-
◆ GooeyWindow_SetTheme()
| void GooeyWindow_SetTheme |
( |
const char * |
fontPath | ) |
|
Sets the theme for the Gooey window.
- Parameters
-
| fontPath | The path to the font file to use for the window's theme. |