2022-05-19 01:51:26 -07:00
|
|
|
#ifndef WINDOW_MANAGER_PRIVATE_H
|
|
|
|
#define WINDOW_MANAGER_PRIVATE_H
|
|
|
|
|
2022-07-29 06:04:05 -07:00
|
|
|
#include "geometry.h"
|
|
|
|
|
2022-09-23 05:43:44 -07:00
|
|
|
namespace fallout {
|
|
|
|
|
2022-07-29 06:04:05 -07:00
|
|
|
typedef struct MenuBar MenuBar;
|
|
|
|
|
|
|
|
typedef void(ListSelectionHandler)(char** items, int index);
|
2022-05-19 01:51:26 -07:00
|
|
|
|
|
|
|
extern char gProgramWindowTitle[256];
|
|
|
|
|
2022-07-29 06:04:05 -07:00
|
|
|
int _win_list_select(const char* title, char** fileList, int fileListLength, ListSelectionHandler* callback, int x, int y, int a7);
|
|
|
|
int _win_list_select_at(const char* title, char** items, int itemsLength, ListSelectionHandler* callback, int x, int y, int a7, int a8);
|
|
|
|
int _win_get_str(char* dest, int length, const char* title, int x, int y);
|
|
|
|
int _win_msg(const char* string, int x, int y, int flags);
|
|
|
|
int _win_pull_down(char** items, int itemsLength, int x, int y, int a5);
|
|
|
|
int _create_pull_down(char** stringList, int stringListLength, int x, int y, int a5, int a6, Rect* rect);
|
|
|
|
int _win_debug(char* string);
|
|
|
|
void _win_debug_delete(int btn, int keyCode);
|
|
|
|
int _win_register_menu_bar(int win, int x, int y, int width, int height, int borderColor, int backgroundColor);
|
|
|
|
int _win_register_menu_pulldown(int win, int x, char* title, int keyCode, int itemsLength, char** items, int a7, int a8);
|
|
|
|
void _win_delete_menu_bar(int win);
|
|
|
|
int _find_first_letter(int ch, char** stringList, int stringListLength);
|
|
|
|
int _win_width_needed(char** fileNameList, int fileNameListLength);
|
|
|
|
int _win_input_str(int win, char* dest, int maxLength, int x, int y, int textColor, int backgroundColor);
|
|
|
|
int sub_4DBD04(int win, Rect* rect, char** items, int itemsLength, int a5, int a6, MenuBar* menuBar, int pulldownIndex);
|
|
|
|
int _GNW_process_menu(MenuBar* menuBar, int pulldownIndex);
|
|
|
|
int _calc_max_field_chars_wcursor(int a1, int a2);
|
2022-05-19 01:51:26 -07:00
|
|
|
void _GNW_intr_init();
|
|
|
|
void _GNW_intr_exit();
|
2022-07-29 06:04:05 -07:00
|
|
|
void _tm_watch_msgs();
|
|
|
|
void _tm_kill_msg();
|
|
|
|
void _tm_kill_out_of_order(int a1);
|
|
|
|
void _tm_click_response(int btn);
|
|
|
|
int _tm_index_active(int a1);
|
2022-05-19 01:51:26 -07:00
|
|
|
|
2022-09-23 05:43:44 -07:00
|
|
|
} // namespace fallout
|
|
|
|
|
2022-05-19 01:51:26 -07:00
|
|
|
#endif /* WINDOW_MANAGER_PRIVATE_H */
|