Atlas - SDL_tray.c

Home / ext / SDL / src / tray / dummy Lines: 1 | Size: 3243 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1/* 2 Simple DirectMedia Layer 3 Copyright (C) 1997-2026 Sam Lantinga <[email protected]> 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#ifdef SDL_TRAY_DUMMY 25 26#include "../SDL_tray_utils.h" 27 28void SDL_UpdateTrays(void) 29{ 30} 31 32SDL_Tray *SDL_CreateTrayWithProperties(SDL_PropertiesID props) 33{ 34 SDL_Unsupported(); 35 return NULL; 36} 37 38SDL_Tray *SDL_CreateTray(SDL_Surface *icon, const char *tooltip) 39{ 40 SDL_Unsupported(); 41 return NULL; 42} 43 44void SDL_SetTrayIcon(SDL_Tray *tray, SDL_Surface *icon) 45{ 46} 47 48void SDL_SetTrayTooltip(SDL_Tray *tray, const char *tooltip) 49{ 50} 51 52SDL_TrayMenu *SDL_CreateTrayMenu(SDL_Tray *tray) 53{ 54 SDL_InvalidParamError("tray"); 55 return NULL; 56} 57 58SDL_TrayMenu *SDL_GetTrayMenu(SDL_Tray *tray) 59{ 60 SDL_InvalidParamError("tray"); 61 return NULL; 62} 63 64SDL_TrayMenu *SDL_CreateTraySubmenu(SDL_TrayEntry *entry) 65{ 66 SDL_InvalidParamError("entry"); 67 return NULL; 68} 69 70SDL_TrayMenu *SDL_GetTraySubmenu(SDL_TrayEntry *entry) 71{ 72 return NULL; 73} 74 75const SDL_TrayEntry **SDL_GetTrayEntries(SDL_TrayMenu *menu, int *count) 76{ 77 SDL_InvalidParamError("menu"); 78 return NULL; 79} 80 81void SDL_RemoveTrayEntry(SDL_TrayEntry *entry) 82{ 83} 84 85SDL_TrayEntry *SDL_InsertTrayEntryAt(SDL_TrayMenu *menu, int pos, const char *label, SDL_TrayEntryFlags flags) 86{ 87 SDL_InvalidParamError("menu"); 88 return NULL; 89} 90 91void SDL_SetTrayEntryLabel(SDL_TrayEntry *entry, const char *label) 92{ 93} 94 95const char *SDL_GetTrayEntryLabel(SDL_TrayEntry *entry) 96{ 97 SDL_InvalidParamError("entry"); 98 return NULL; 99} 100 101void SDL_SetTrayEntryChecked(SDL_TrayEntry *entry, bool checked) 102{ 103} 104 105bool SDL_GetTrayEntryChecked(SDL_TrayEntry *entry) 106{ 107 return SDL_InvalidParamError("entry"); 108} 109 110void SDL_SetTrayEntryEnabled(SDL_TrayEntry *entry, bool enabled) 111{ 112} 113 114bool SDL_GetTrayEntryEnabled(SDL_TrayEntry *entry) 115{ 116 return SDL_InvalidParamError("entry"); 117} 118 119void SDL_SetTrayEntryCallback(SDL_TrayEntry *entry, SDL_TrayCallback callback, void *userdata) 120{ 121} 122 123void SDL_ClickTrayEntry(SDL_TrayEntry *entry) 124{ 125} 126 127SDL_TrayMenu *SDL_GetTrayEntryParent(SDL_TrayEntry *entry) 128{ 129 SDL_InvalidParamError("entry"); 130 return NULL; 131} 132 133SDL_TrayEntry *SDL_GetTrayMenuParentEntry(SDL_TrayMenu *menu) 134{ 135 SDL_InvalidParamError("menu"); 136 return NULL; 137} 138 139SDL_Tray *SDL_GetTrayMenuParentTray(SDL_TrayMenu *menu) 140{ 141 SDL_InvalidParamError("menu"); 142 return NULL; 143} 144 145void SDL_DestroyTray(SDL_Tray *tray) 146{ 147} 148 149#endif // SDL_TRAY_DUMMY 150
[FILE END]
(C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.