Move icon related constants to InterfaceDefs.h
There will be non-BControl views to use those as well.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -357,6 +357,39 @@ const float B_HIGHLIGHT_BACKGROUND_TINT = B_DARKEN_2_TINT;
|
||||
const float B_DISABLED_MARK_TINT = B_LIGHTEN_2_TINT;
|
||||
|
||||
|
||||
// Icon related constants
|
||||
|
||||
// Values for [Set]IconBitmap() of various view classes. Not all types are
|
||||
// applicable for all views.
|
||||
enum {
|
||||
B_INACTIVE_ICON_BITMAP = 0x00,
|
||||
B_ACTIVE_ICON_BITMAP = 0x01,
|
||||
B_PARTIALLY_ACTIVATE_ICON_BITMAP = 0x02,
|
||||
|
||||
// flag, can be combined with any of the above
|
||||
B_DISABLED_ICON_BITMAP = 0x80,
|
||||
// disabled version of the specified bitmap
|
||||
};
|
||||
|
||||
// flags for SetIconBitmap() of various view classes
|
||||
enum {
|
||||
B_KEEP_ICON_BITMAP = 0x0001,
|
||||
// transfer bitmap ownership to the view
|
||||
};
|
||||
|
||||
// flags for SetIcon() of various view classes
|
||||
enum {
|
||||
B_TRIM_ICON_BITMAP = 0x0100,
|
||||
// crop the bitmap to the not fully transparent area; may change the
|
||||
// icon size
|
||||
B_TRIM_ICON_BITMAP_KEEP_ASPECT = 0x0200,
|
||||
// like B_TRIM_BITMAP, but keeps the aspect ratio
|
||||
B_CREATE_ACTIVE_ICON_BITMAP = 0x0400,
|
||||
B_CREATE_PARTIALLY_ACTIVE_ICON_BITMAP = 0x0800,
|
||||
B_CREATE_DISABLED_ICON_BITMAPS = 0x1000,
|
||||
};
|
||||
|
||||
|
||||
status_t get_deskbar_frame(BRect* frame);
|
||||
|
||||
const color_map* system_colors();
|
||||
|
||||
Reference in New Issue
Block a user