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.
61 lines
1.0 KiB
C
61 lines
1.0 KiB
C
/*
|
|
* Copyright 2008, Oliver Tappe, zooey@hirschkaefer.de.
|
|
* Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _BINARY_COMPATIBILITY_INTERFACE_H_
|
|
#define _BINARY_COMPATIBILITY_INTERFACE_H_
|
|
|
|
|
|
#include <binary_compatibility/Global.h>
|
|
|
|
|
|
struct perform_data_min_size {
|
|
BSize return_value;
|
|
};
|
|
|
|
struct perform_data_max_size {
|
|
BSize return_value;
|
|
};
|
|
|
|
struct perform_data_preferred_size {
|
|
BSize return_value;
|
|
};
|
|
|
|
struct perform_data_layout_alignment {
|
|
BAlignment return_value;
|
|
};
|
|
|
|
struct perform_data_has_height_for_width {
|
|
bool return_value;
|
|
};
|
|
|
|
struct perform_data_get_height_for_width {
|
|
float width;
|
|
float min;
|
|
float max;
|
|
float preferred;
|
|
};
|
|
|
|
struct perform_data_set_layout {
|
|
BLayout* layout;
|
|
};
|
|
|
|
struct perform_data_layout_invalidated {
|
|
bool descendants;
|
|
};
|
|
|
|
struct perform_data_get_tool_tip_at {
|
|
BPoint point;
|
|
BToolTip** tool_tip;
|
|
bool return_value;
|
|
};
|
|
|
|
struct perform_data_set_icon {
|
|
const BBitmap* icon;
|
|
uint32 flags;
|
|
};
|
|
|
|
|
|
#endif /* _BINARY_COMPATIBILITY_INTERFACE_H_ */
|