1: /*
2: * $Id: mwapi_window.h,v 1.4 2025/03/22 18:43:54 snw Exp $
3: * mwapi window support
4: *
5: *
6: * Author: Serena Willis <snw@coherent-logic.com>
7: * Copyright (C) 1998 MUG Deutschland
8: * Copyright (C) 2014, 2020, 2021, 2025 Coherent Logic Development LLC
9: *
10: *
11: * This file is part of FreeM.
12: *
13: * FreeM is free software: you can redistribute it and/or modify
14: * it under the terms of the GNU Affero Public License as published by
15: * the Free Software Foundation, either version 3 of the License, or
16: * (at your option) any later version.
17: *
18: * FreeM is distributed in the hope that it will be useful,
19: * but WITHOUT ANY WARRANTY; without even the implied warranty of
20: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21: * GNU Affero Public License for more details.
22: *
23: * You should have received a copy of the GNU Affero Public License
24: * along with FreeM. If not, see <https://www.gnu.org/licenses/>.
25: *
26: * $Log: mwapi_window.h,v $
27: * Revision 1.4 2025/03/22 18:43:54 snw
28: * Make STRLEN 255 chars and add BIGSTR macro for larger buffers
29: *
30: * Revision 1.3 2025/03/09 19:50:47 snw
31: * Second phase of REUSE compliance and header reformat
32: *
33: *
34: * SPDX-FileCopyrightText: (C) 2025 Coherent Logic Development LLC
35: * SPDX-License-Identifier: AGPL-3.0-or-later
36: **/
37:
38: #include "config.h"
39:
40: #if !defined(__MWAPI_WINDOW_H) && defined(HAVE_MWAPI_MOTIF)
41: # define __MWAPI_WINDOW_H
42:
43: #include <Xm/Xm.h>
44:
45: typedef struct mwapi_window {
46:
47: char window_name[255];
48: Widget *window;
49:
50: short win_visible;
51:
52: struct mwapi_window *next;
53:
54: } mwapi_window;
55:
56: void mwapi_default_destroy_handler(Widget *widget, void *data);
57: void mwapi_on_merge_complete(char *window_name);
58: void mwapi_foreach(void (*callback)(mwapi_window *));
59: int mwapi_win_count(void);
60: void mwapi_win_show_all(void);
61: void mwapi_win_show(mwapi_window *win);
62: mwapi_window *mwapi_win_get(char *window_name);
63:
64: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>