Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

181 lines
3.4 KiB

/*
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__ */