be260374d5
The icon is meant as an addition to or replacement of the label. Icon bitmaps for various states of the control (off, on, partially on, each enabled or disabled, plus up to 125 custom states) can be set individually via SetIconBitmap() (getter IconBitmap()). The convenience method SetIcon() can be used to set the bitmaps for the standard states from a single bitmap; it also supports cropping the icon to its non-transparent area. Code borrowed from BIconButton.
42 lines
1.0 KiB
C
42 lines
1.0 KiB
C
/*
|
|
* Copyright 2008, Oliver Tappe, zooey@hirschkaefer.de.
|
|
* Copyright 2008-2012, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _BINARY_COMPATIBILITY_GLOBAL_H_
|
|
#define _BINARY_COMPATIBILITY_GLOBAL_H_
|
|
|
|
|
|
#if __GNUC__ == 2
|
|
# define B_IF_GCC_2(ifBlock, elseBlock) ifBlock
|
|
#else
|
|
# define B_IF_GCC_2(ifBlock, elseBlock) elseBlock
|
|
#endif
|
|
|
|
|
|
// method codes
|
|
enum {
|
|
// app kit
|
|
|
|
// interface kit
|
|
PERFORM_CODE_MIN_SIZE = 1000,
|
|
PERFORM_CODE_MAX_SIZE = 1001,
|
|
PERFORM_CODE_PREFERRED_SIZE = 1002,
|
|
PERFORM_CODE_LAYOUT_ALIGNMENT = 1003,
|
|
PERFORM_CODE_HAS_HEIGHT_FOR_WIDTH = 1004,
|
|
PERFORM_CODE_GET_HEIGHT_FOR_WIDTH = 1005,
|
|
PERFORM_CODE_SET_LAYOUT = 1006,
|
|
PERFORM_CODE_LAYOUT_INVALIDATED = 1007,
|
|
PERFORM_CODE_DO_LAYOUT = 1008,
|
|
PERFORM_CODE_GET_TOOL_TIP_AT = 1009,
|
|
PERFORM_CODE_LAYOUT_CHANGED = 1010,
|
|
PERFORM_CODE_SET_ICON = 1011,
|
|
|
|
// support kit
|
|
PERFORM_CODE_ALL_ARCHIVED = 2000,
|
|
PERFORM_CODE_ALL_UNARCHIVED = 2001,
|
|
};
|
|
|
|
|
|
#endif // _BINARY_COMPATIBILITY__GLOBAL_H_
|