.\" This manpage content is licensed under Creative Commons .\" Attribution 4.0 International (CC BY 4.0) .\" https://creativecommons.org/licenses/by/4.0/ .\" This manpage was generated from SDL's wiki page for SDL_CreatePopupWindow: .\" https://wiki.libsdl.org/SDL_CreatePopupWindow .\" Generated with SDL/build-scripts/wikiheaders.pl .\" revision SDL-3.1.0 .\" Please report issues in this manpage's content at: .\" https://github.com/libsdl-org/sdlwiki/issues/new .\" Please report issues in the generation of this manpage from the wiki at: .\" https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20SDL_CreatePopupWindow .\" SDL can be found at https://libsdl.org/ .de URL \$2 \(laURL: \$1 \(ra\$3 .. .if \n[.g] .mso www.tmac .TH SDL_CreatePopupWindow 3 "SDL 3.1.0" "SDL" "SDL3 FUNCTIONS" .SH NAME SDL_CreatePopupWindow \- Create a child popup window of the specified parent window\[char46] .SH SYNOPSIS .nf .B #include \(dqSDL3/SDL.h\(dq .PP .BI "SDL_Window* SDL_CreatePopupWindow(SDL_Window *parent, int offset_x, int offset_y, int w, int h, SDL_WindowFlags flags); .fi .SH DESCRIPTION 'flags' .B must contain exactly one of the following: - ' .BR SDL_WINDOW_TOOLTIP ': The popup window is a tooltip and will not pass any input events\[char46] - ' .BR SDL_WINDOW_POPUP_MENU ': The popup window is a popup menu\[char46] The topmost popup menu will implicitly gain the keyboard focus\[char46] The following flags are not relevant to popup window creation and will be ignored: \(bu ' .BR SDL_WINDOW_MINIMIZED ' \(bu ' .BR SDL_WINDOW_MAXIMIZED ' \(bu ' .BR SDL_WINDOW_FULLSCREEN ' \(bu ' .BR SDL_WINDOW_BORDERLESS ' The parent parameter .B must be non-null and a valid window\[char46] The parent of a popup window can be either a regular, toplevel window, or another popup window\[char46] Popup windows cannot be minimized, maximized, made fullscreen, raised, flash, be made a modal window, be the parent of a modal window, or grab the mouse and/or keyboard\[char46] Attempts to do so will fail\[char46] Popup windows implicitly do not have a border/decorations and do not appear on the taskbar/dock or in lists of windows such as alt-tab menus\[char46] If a parent window is hidden, any child popup windows will be recursively hidden as well\[char46] Child popup windows not explicitly hidden will be restored when the parent is shown\[char46] If the parent window is destroyed, any child popup windows will be recursively destroyed as well\[char46] .SH FUNCTION PARAMETERS .TP .I parent the parent of the window, must not be NULL .TP .I offset_x the x position of the popup window relative to the origin of the parent .TP .I offset_y the y position of the popup window relative to the origin of the parent window .TP .I w the width of the window .TP .I h the height of the window .TP .I flags .BR SDL_WINDOW_TOOLTIP or .BR SDL_WINDOW_POPUP MENU, and zero or more additional .BR SDL_WindowFlags OR'd together\[char46] .SH RETURN VALUE Returns the window that was created or NULL on failure; call .BR SDL_GetError () for more information\[char46] .SH AVAILABILITY This function is available since SDL 3\[char46]0\[char46]0\[char46] .SH SEE ALSO .BR SDL_CreateWindow (3), .BR SDL_CreateWindowWithProperties (3), .BR SDL_DestroyWindow (3), .BR SDL_GetWindowParent (3)