Some cleanups: made the bitmaps static, moved variables around. No functional change.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32056 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2009-08-01 08:14:18 +00:00
parent 90d0584d89
commit dcc8ae9118
3 changed files with 41 additions and 33 deletions
+11 -7
View File
@@ -17,11 +17,14 @@ enum menu_states {
MENU_STATE_CLOSED = 5
};
class BBitmap;
class BMenu;
class BWindow;
namespace BPrivate {
extern const char *kEmptyMenuLabel;
class MenuPrivate {
public:
@@ -37,7 +40,8 @@ public:
BRect Padding() const;
void GetItemMargins(float *, float *, float *, float *) const;
bool IsAltCommandKey() const;
static bool IsAltCommandKey();
int State(BMenuItem **item = NULL) const;
void Install(BWindow *window);
@@ -56,16 +60,16 @@ public:
static const BBitmap *MenuItemShift();
private:
BMenu *fMenu;
};
extern BBitmap *gMenuItemAlt;
extern BBitmap *gMenuItemControl;
extern BBitmap *gMenuItemOption;
extern BBitmap *gMenuItemShift;
static BBitmap *sMenuItemAlt;
static BBitmap *sMenuItemControl;
static BBitmap *sMenuItemOption;
static BBitmap *sMenuItemShift;
};
extern const char *kEmptyMenuLabel;
};
// Note: since sqrt is slow, we don't use it and return the square of the distance