| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
ws_ui_util.h
Go to the documentation of this file.
1
13
14#ifndef __UI_UTIL_H__
15#define __UI_UTIL_H__
16
17#include <stdint.h>
18
19#include <wsutil/processes.h>
20
21#include "epan/packet_info.h"
22#include "epan/column-utils.h"
23#include "epan/color_filters.h"
24
25#ifdef __cplusplus
26 extern "C" {
27#endif /* __cplusplus */
28
30 typedef struct window_geometry_s {
31 char *key;
32 bool set_pos;
33 int x;
34 int y;
35 bool set_size;
36 int width;
37 int height;
38 bool set_maximized;
39 bool maximized;
40 const char* qt_geom;
41} window_geometry_t;
42
46 extern void main_window_update(void);
47
48/* Exit routine provided by UI-specific code. */
49
55WS_NORETURN extern void exit_application(int status);
56
57/* XXX - Yes this isn't the best place, but they are used by file_dlg_win32.c, which is supposed
58 to be GUI independent, but has lots of GTK leanings. But if you put these in a GTK UI
59 header file, file_dlg_win32.c complains about all of the GTK structures also in the header
60 files
61 Function names make it clear where they are coming from
62 */
69 void color_filter_add_cb(color_filter_t *colorf, void *user_data);
70
71#ifdef __cplusplus
72}
73#endif /* __cplusplus */
74
75#endif /* __UI_UTIL_H__ */
color_filters.h
color_filter_t
struct _color_filter color_filter_t
Data for a color filter.
column-utils.h
packet_info.h
processes.h
window_geometry_s
Definition ws_ui_util.h:30
window_geometry_s::set_pos
bool set_pos
Definition ws_ui_util.h:32
window_geometry_s::set_maximized
bool set_maximized
Definition ws_ui_util.h:38
window_geometry_s::y
int y
Definition ws_ui_util.h:34
window_geometry_s::qt_geom
const char * qt_geom
Definition ws_ui_util.h:40
window_geometry_s::key
char * key
Definition ws_ui_util.h:31
window_geometry_s::set_size
bool set_size
Definition ws_ui_util.h:35
window_geometry_s::maximized
bool maximized
Definition ws_ui_util.h:39
window_geometry_s::width
int width
Definition ws_ui_util.h:36
window_geometry_s::height
int height
Definition ws_ui_util.h:37
window_geometry_s::x
int x
Definition ws_ui_util.h:33
window_geometry_t
struct window_geometry_s window_geometry_t
main_window_update
void main_window_update(void)
Update the main window.
Definition main.cpp:121
color_filter_add_cb
void color_filter_add_cb(color_filter_t *colorf, void *user_data)
Adds a callback function for color filtering.
Definition coloring_rules_model.cpp:76
exit_application
WS_NORETURN void exit_application(int status)
Exit the application with a given status.
Definition main.cpp:126