Move icon related constants to InterfaceDefs.h

There will be non-BControl views to use those as well.
This commit is contained in:
Ingo Weinhold
2013-12-22 14:45:33 +01:00
parent 7166099626
commit 5414b3c445
5 changed files with 65 additions and 56 deletions
-31
View File
@@ -21,37 +21,6 @@ class BWindow;
class BControl : public BView, public BInvoker {
public:
// Values for [Set]IconBitmap(). Not all types are applicable for
// all controls.
enum {
B_OFF_BITMAP = 0x00,
B_ON_BITMAP = 0x01,
B_PARTIALLY_ON_BITMAP = 0x02,
// flag, can be combined with any of the above
B_DISABLED_BITMAP = 0x80,
// disabled version of the specified bitmap
};
// flags for SetIconBitmap()
enum {
B_KEEP_BITMAP = 0x0001,
// transfer bitmap ownership to BControl object
};
// flags for SetIcon()
enum {
B_TRIM_BITMAP = 0x0100,
// crop the bitmap to the not fully transparent area, may
// change the icon size
B_TRIM_BITMAP_KEEP_ASPECT = 0x0200,
// like B_TRIM_BITMAP, but keeps the aspect ratio
B_CREATE_ON_BITMAP = 0x0400,
B_CREATE_PARTIALLY_ON_BITMAP = 0x0800,
B_CREATE_DISABLED_BITMAPS = 0x1000,
};
public:
BControl(BRect frame, const char* name,
const char* label, BMessage* message,