Gooey GUI Library
Loading...
Searching...
No Matches
gooey.h
Go to the documentation of this file.
1/*
2 Copyright (c) 2024 Yassine Ahmed Ali
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#ifndef GOOEY_H
19#define GOOEY_H
20
21#include "core/gooey_common.h"
22
29int Gooey_Init(GooeyBackends backend);
30
36void GooeyWindow_SetTheme(const char *fontPath);
37
48GooeyWindow GooeyWindow_Create(const char *title, int width, int height, bool visibility);
49
50GooeyWindow GooeyWindow_CreateChild(const char *title, int width, int height, bool visibility);
51void GooeyWindow_MakeVisible(GooeyWindow *win, bool visibility);
52
61void GooeyWindow_Run(int num_windows, GooeyWindow *first_win, ...);
62
68void GooeyWindow_Cleanup(int num_windows, GooeyWindow *first_win, ...);
69void GooeyWindow_RegisterWidget(GooeyWindow *win, GooeyWidget *widget);
78void GooeyWindow_MakeResizable(GooeyWindow *msgBoxWindow, bool is_resizable);
79
80void GooeyWindow_Redraw(GooeyWindow *win);
81
82#endif
void GooeyWindow_RegisterWidget(GooeyWindow *win, GooeyWidget *widget)
void GooeyWindow_MakeVisible(GooeyWindow *win, bool visibility)
void GooeyWindow_MakeResizable(GooeyWindow *msgBoxWindow, bool is_resizable)
Sets the resizable property of a window.
void GooeyWindow_SetTheme(const char *fontPath)
Sets the theme for the Gooey window.
void GooeyWindow_Cleanup(int num_windows, GooeyWindow *first_win,...)
Cleans up the resources associated with the Gooey windows.
GooeyWindow GooeyWindow_CreateChild(const char *title, int width, int height, bool visibility)
GooeyWindow GooeyWindow_Create(const char *title, int width, int height, bool visibility)
Creates a new Gooey window.
int Gooey_Init(GooeyBackends backend)
Initializes the Gooey system with the specified backend.
void GooeyWindow_Run(int num_windows, GooeyWindow *first_win,...)
Runs the Gooey window.
void GooeyWindow_Redraw(GooeyWindow *win)