diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /common/quicktime_win32/IBCarbonRuntime.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'common/quicktime_win32/IBCarbonRuntime.h')
| -rw-r--r-- | common/quicktime_win32/IBCarbonRuntime.h | 181 |
1 files changed, 181 insertions, 0 deletions
diff --git a/common/quicktime_win32/IBCarbonRuntime.h b/common/quicktime_win32/IBCarbonRuntime.h new file mode 100644 index 0000000..2d6deab --- /dev/null +++ b/common/quicktime_win32/IBCarbonRuntime.h @@ -0,0 +1,181 @@ +/* + File: IBCarbonRuntime.h + + Contains: Nib support for Carbon + + Version: QuickTime 7.3 + + Copyright: (c) 2007 (c) 2000-2001 by Apple Computer, Inc., all rights reserved. + + Bugs?: For bug reports, consult the following page on + the World Wide Web: + + http://developer.apple.com/bugreporter/ + +*/ +#ifndef __IBCARBONRUNTIME__ +#define __IBCARBONRUNTIME__ + +#ifndef __CFSTRING__ +#include <CFString.h> +#endif + +#ifndef __CFBUNDLE__ +#include <CFBundle.h> +#endif + +#ifndef __MACWINDOWS__ +#include <MacWindows.h> +#endif + +#ifndef __MENUS__ +#include <Menus.h> +#endif + +#ifndef __CONTROLDEFINITIONS__ +#include <ControlDefinitions.h> +#endif + + + + + +#if PRAGMA_ONCE +#pragma once +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#if PRAGMA_IMPORT +#pragma import on +#endif + +enum { + kIBCarbonRuntimeCantFindNibFile = -10960, + kIBCarbonRuntimeObjectNotOfRequestedType = -10961, + kIBCarbonRuntimeCantFindObject = -10962 +}; + +/* ----- typedef ------ */ +typedef struct OpaqueIBNibRef* IBNibRef; +/* ----- Create & Dispose NIB References ------ */ +/* + * CreateNibReference() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: in CarbonLib 1.1 and later + * Mac OS X: in version 10.0 and later + */ +EXTERN_API_C( OSStatus ) +CreateNibReference( + CFStringRef inNibName, + IBNibRef * outNibRef); + + +/* + * CreateNibReferenceWithCFBundle() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: in CarbonLib 1.1 and later + * Mac OS X: in version 10.0 and later + */ +EXTERN_API_C( OSStatus ) +CreateNibReferenceWithCFBundle( + CFBundleRef inBundle, + CFStringRef inNibName, + IBNibRef * outNibRef); + + +/* + * DisposeNibReference() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: in CarbonLib 1.1 and later + * Mac OS X: in version 10.0 and later + */ +EXTERN_API_C( void ) +DisposeNibReference(IBNibRef inNibRef); + + +/* ----- Window ------ */ +/* + * CreateWindowFromNib() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: in CarbonLib 1.1 and later + * Mac OS X: in version 10.0 and later + */ +EXTERN_API_C( OSStatus ) +CreateWindowFromNib( + IBNibRef inNibRef, + CFStringRef inName, + WindowRef * outWindow); + + +/* ----- Menu -----*/ + +/* + * CreateMenuFromNib() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: in CarbonLib 1.1 and later + * Mac OS X: in version 10.0 and later + */ +EXTERN_API_C( OSStatus ) +CreateMenuFromNib( + IBNibRef inNibRef, + CFStringRef inName, + MenuRef * outMenuRef); + + +/* ----- MenuBar ------*/ + +/* + * CreateMenuBarFromNib() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: in CarbonLib 1.1 and later + * Mac OS X: in version 10.0 and later + */ +EXTERN_API_C( OSStatus ) +CreateMenuBarFromNib( + IBNibRef inNibRef, + CFStringRef inName, + Handle * outMenuBar); + + +/* + * SetMenuBarFromNib() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: in CarbonLib 1.1 and later + * Mac OS X: in version 10.0 and later + */ +EXTERN_API_C( OSStatus ) +SetMenuBarFromNib( + IBNibRef inNibRef, + CFStringRef inName); + + + +#ifdef PRAGMA_IMPORT_OFF +#pragma import off +#elif PRAGMA_IMPORT +#pragma import reset +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* __IBCARBONRUNTIME__ */ + |