/******************************************************************************
*
* Copyright (C) 2006-2025  Brian Berlin
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>
*
******************************************************************************
*
* FILENAME: gui.h
*
* DESCRIPTION:  This contains the declaration for the main gui function to
*               interface the program (Nuklear-based GUI)
*
* AUTHORS:  bberlin
*
* CHANGE LOG
*
*  VER     DATE     CHANGED BY   DESCRIPTION OF CHANGE
* ------  --------  ----------   ------------------------------------
* 0.5.0   11/03/06  bberlin      Creation
* 0.9.2   01/2025   bberlin      Replaced guichan with Nuklear GUI
******************************************************************************/
#ifndef gui_h
#define gui_h

#include <SDL3/SDL.h>

unsigned int gui_show_main(int error, int debug_flag);
unsigned int gui_run_frame(void);
void gui_push_event(SDL_Event *event);
void gui_launch(int launch);  /* 0=run current, 1=full launch, 2=back to game, 3=launch no reset */
int gui_can_go_back(void);
void gui_set_can_go_back(int val);
int gui_touch_scroll_active(void);
void gui_request_rebuild(void);
int gui_get_effective_scale_x100(void);
void gui_exit(void);
int gui_try_open_debugger(void);
void gui_open_debugger(void);
void gui_set_run_current(int val);
const char *gui_get_version(void);

#endif
