summaryrefslogtreecommitdiff
path: root/contrib/SDL-3.2.8/src/tray/dummy/SDL_tray.c
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-12-27 12:03:39 -0800
committer3gg <3gg@shellblade.net>2025-12-27 12:03:39 -0800
commit5a079a2d114f96d4847d1ee305d5b7c16eeec50e (patch)
tree8926ab44f168acf787d8e19608857b3af0f82758 /contrib/SDL-3.2.8/src/tray/dummy/SDL_tray.c
Initial commit
Diffstat (limited to 'contrib/SDL-3.2.8/src/tray/dummy/SDL_tray.c')
-rw-r--r--contrib/SDL-3.2.8/src/tray/dummy/SDL_tray.c143
1 files changed, 143 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/src/tray/dummy/SDL_tray.c b/contrib/SDL-3.2.8/src/tray/dummy/SDL_tray.c
new file mode 100644
index 0000000..766fb92
--- /dev/null
+++ b/contrib/SDL-3.2.8/src/tray/dummy/SDL_tray.c
@@ -0,0 +1,143 @@
1/*
2 Simple DirectMedia Layer
3 Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
4
5 This software is provided 'as-is', without any express or implied
6 warranty. In no event will the authors be held liable for any damages
7 arising from the use of this software.
8
9 Permission is granted to anyone to use this software for any purpose,
10 including commercial applications, and to alter it and redistribute it
11 freely, subject to the following restrictions:
12
13 1. The origin of this software must not be misrepresented; you must not
14 claim that you wrote the original software. If you use this software
15 in a product, an acknowledgment in the product documentation would be
16 appreciated but is not required.
17 2. Altered source versions must be plainly marked as such, and must not be
18 misrepresented as being the original software.
19 3. This notice may not be removed or altered from any source distribution.
20*/
21
22#include "SDL_internal.h"
23
24#ifndef SDL_PLATFORM_MACOS
25
26#include "../SDL_tray_utils.h"
27
28void SDL_UpdateTrays(void)
29{
30}
31
32SDL_Tray *SDL_CreateTray(SDL_Surface *icon, const char *tooltip)
33{
34 SDL_Unsupported();
35 return NULL;
36}
37
38void SDL_SetTrayIcon(SDL_Tray *tray, SDL_Surface *icon)
39{
40}
41
42void SDL_SetTrayTooltip(SDL_Tray *tray, const char *tooltip)
43{
44}
45
46SDL_TrayMenu *SDL_CreateTrayMenu(SDL_Tray *tray)
47{
48 SDL_InvalidParamError("tray");
49 return NULL;
50}
51
52SDL_TrayMenu *SDL_GetTrayMenu(SDL_Tray *tray)
53{
54 SDL_InvalidParamError("tray");
55 return NULL;
56}
57
58SDL_TrayMenu *SDL_CreateTraySubmenu(SDL_TrayEntry *entry)
59{
60 SDL_InvalidParamError("entry");
61 return NULL;
62}
63
64SDL_TrayMenu *SDL_GetTraySubmenu(SDL_TrayEntry *entry)
65{
66 return NULL;
67}
68
69const SDL_TrayEntry **SDL_GetTrayEntries(SDL_TrayMenu *menu, int *count)
70{
71 SDL_InvalidParamError("menu");
72 return NULL;
73}
74
75void SDL_RemoveTrayEntry(SDL_TrayEntry *entry)
76{
77}
78
79SDL_TrayEntry *SDL_InsertTrayEntryAt(SDL_TrayMenu *menu, int pos, const char *label, SDL_TrayEntryFlags flags)
80{
81 SDL_InvalidParamError("menu");
82 return NULL;
83}
84
85void SDL_SetTrayEntryLabel(SDL_TrayEntry *entry, const char *label)
86{
87}
88
89const char *SDL_GetTrayEntryLabel(SDL_TrayEntry *entry)
90{
91 SDL_InvalidParamError("entry");
92 return NULL;
93}
94
95void SDL_SetTrayEntryChecked(SDL_TrayEntry *entry, bool checked)
96{
97}
98
99bool SDL_GetTrayEntryChecked(SDL_TrayEntry *entry)
100{
101 return SDL_InvalidParamError("entry");
102}
103
104void SDL_SetTrayEntryEnabled(SDL_TrayEntry *entry, bool enabled)
105{
106}
107
108bool SDL_GetTrayEntryEnabled(SDL_TrayEntry *entry)
109{
110 return SDL_InvalidParamError("entry");
111}
112
113void SDL_SetTrayEntryCallback(SDL_TrayEntry *entry, SDL_TrayCallback callback, void *userdata)
114{
115}
116
117void SDL_ClickTrayEntry(SDL_TrayEntry *entry)
118{
119}
120
121SDL_TrayMenu *SDL_GetTrayEntryParent(SDL_TrayEntry *entry)
122{
123 SDL_InvalidParamError("entry");
124 return NULL;
125}
126
127SDL_TrayEntry *SDL_GetTrayMenuParentEntry(SDL_TrayMenu *menu)
128{
129 SDL_InvalidParamError("menu");
130 return NULL;
131}
132
133SDL_Tray *SDL_GetTrayMenuParentTray(SDL_TrayMenu *menu)
134{
135 SDL_InvalidParamError("menu");
136 return NULL;
137}
138
139void SDL_DestroyTray(SDL_Tray *tray)
140{
141}
142
143#endif // !SDL_PLATFORM_MACOS