fallout2-ce/src/window_manager_private.h

44 lines
2.0 KiB
C
Raw Normal View History

2022-05-19 01:51:26 -07:00
#ifndef WINDOW_MANAGER_PRIVATE_H
#define WINDOW_MANAGER_PRIVATE_H
2022-10-03 04:52:47 -07:00
#include <stddef.h>
#include "geometry.h"
2022-09-23 05:43:44 -07:00
namespace fallout {
typedef struct MenuBar MenuBar;
typedef void(ListSelectionHandler)(char** items, int index);
2022-05-19 01:51:26 -07:00
extern char gProgramWindowTitle[256];
2023-04-10 23:01:14 -07:00
int _win_list_select(const char* title, char** fileList, int fileListLength, ListSelectionHandler* callback, int x, int y, int color);
int _win_list_select_at(const char* title, char** items, int itemsLength, ListSelectionHandler* callback, int x, int y, int color, int start);
int _win_get_str(char* dest, int length, const char* title, int x, int y);
2023-04-10 23:01:14 -07:00
int _win_msg(const char* string, int x, int y, int color);
int _win_pull_down(char** items, int itemsLength, int x, int y, int color);
int _create_pull_down(char** stringList, int stringListLength, int x, int y, int foregroundColor, int backgroundColor, Rect* rect);
int _win_debug(char* string);
void _win_debug_delete(int btn, int keyCode);
2023-04-10 23:01:14 -07:00
int _win_register_menu_bar(int win, int x, int y, int width, int height, int foregroundColor, int backgroundColor);
int _win_register_menu_pulldown(int win, int x, char* title, int keyCode, int itemsLength, char** items, int foregroundColor, int backgroundColor);
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);
2023-04-10 23:01:14 -07:00
int process_pull_down(int win, Rect* rect, char** items, int itemsLength, int a5, int a6, MenuBar* menuBar, int pulldownIndex);
int _GNW_process_menu(MenuBar* menuBar, int pulldownIndex);
2023-04-10 23:01:14 -07:00
size_t _calc_max_field_chars_wcursor(int value1, int value2);
2022-05-19 01:51:26 -07:00
void _GNW_intr_init();
void _GNW_intr_exit();
void _tm_watch_msgs();
void _tm_kill_msg();
2023-04-10 23:01:14 -07:00
void _tm_kill_out_of_order(int queueIndex);
void _tm_click_response(int btn);
2023-04-10 23:01:14 -07:00
int _tm_index_active(int queueIndex);
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 */