xref: /haiku/headers/private/binary_compatibility/Global.h (revision 1026b0a1a76dc88927bb8175c470f638dc5464ee)
1 /*
2  * Copyright 2008, Oliver Tappe, zooey@hirschkaefer.de.
3  * Copyright 2008-2012, Ingo Weinhold, ingo_weinhold@gmx.de.
4  * Distributed under the terms of the MIT License.
5  */
6 #ifndef _BINARY_COMPATIBILITY_GLOBAL_H_
7 #define _BINARY_COMPATIBILITY_GLOBAL_H_
8 
9 
10 #if __GNUC__ == 2
11 #	define B_IF_GCC_2(ifBlock, elseBlock)	ifBlock
12 #else
13 #	define B_IF_GCC_2(ifBlock, elseBlock)	elseBlock
14 #endif
15 
16 
17 // method codes
18 enum {
19 	// app kit
20 
21 	// interface kit
22 	PERFORM_CODE_MIN_SIZE				= 1000,
23 	PERFORM_CODE_MAX_SIZE				= 1001,
24 	PERFORM_CODE_PREFERRED_SIZE			= 1002,
25 	PERFORM_CODE_LAYOUT_ALIGNMENT		= 1003,
26 	PERFORM_CODE_HAS_HEIGHT_FOR_WIDTH	= 1004,
27 	PERFORM_CODE_GET_HEIGHT_FOR_WIDTH	= 1005,
28 	PERFORM_CODE_SET_LAYOUT				= 1006,
29 	PERFORM_CODE_LAYOUT_INVALIDATED		= 1007,
30 	PERFORM_CODE_DO_LAYOUT				= 1008,
31 	PERFORM_CODE_GET_TOOL_TIP_AT		= 1009,
32 
33 	// support kit
34 	PERFORM_CODE_ALL_ARCHIVED			= 1010,
35 	PERFORM_CODE_ALL_UNARCHIVED			= 1011,
36 
37 	PERFORM_CODE_LAYOUT_CHANGED			= 1012
38 };
39 
40 
41 #endif // _BINARY_COMPATIBILITY__GLOBAL_H_
42