2 * Contains utilities for using Carbon with CGS routines.
4 * Copyright (C) 2007-2008 Alacatia Labs
6 * This software is provided 'as-is', without any express or implied
7 * warranty. In no event will the authors be held liable for any damages
8 * arising from the use of this software.
10 * Permission is granted to anyone to use this software for any purpose,
11 * including commercial applications, and to alter it and redistribute it
12 * freely, subject to the following restrictions:
14 * 1. The origin of this software must not be misrepresented; you must not
15 * claim that you wrote the original software. If you use this software
16 * in a product, an acknowledgment in the product documentation would be
17 * appreciated but is not required.
18 * 2. Altered source versions must be plainly marked as such, and must not be
19 * misrepresented as being the original software.
20 * 3. This notice may not be removed or altered from any source distribution.
22 * Joe Ranieri joe@alacatia.com
27 #include "CGSWindow.h"
32 /* Gets a CGSWindowID for a WindowRef. Implemented in Carbon.framework.
33 This call is deprecated in 10.5. Please use the public alternative, `HIWindowGetCGWindowID`. */
34 CG_EXTERN CGSWindowID GetNativeWindowFromWindowRef(WindowRef ref) DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER;
36 /* Gets a WindowRef (in the current process) from a CGSWindowID. Implemented in Carbon.framework.
37 This call is deprecated in 10.5. Please use the public alternative, `HIWindowFromCGWindowID`. */
38 CG_EXTERN WindowRef GetWindowRefFromNativeWindow(CGSWindowID wid) DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER;