BitmapButton: move from WebPositive to libshared
Remove a currently unused copy of it from HaikuDepot. Change-Id: Idb97fae8e7190da6bc1049b3c1f1df929ea91bab Reviewed-on: https://review.haiku-os.org/c/1506 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
d689db1448
commit
f74f860085
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2010 Stephan Aßmus <[email protected]>. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef BITMAP_BUTTON_H
|
||||
#define BITMAP_BUTTON_H
|
||||
|
||||
#include <Button.h>
|
||||
#include <Size.h>
|
||||
|
||||
|
||||
class BBitmap;
|
||||
|
||||
|
||||
namespace BPrivate {
|
||||
|
||||
class BBitmapButton : public BButton {
|
||||
public:
|
||||
enum {
|
||||
BUTTON_BACKGROUND = 0,
|
||||
MENUBAR_BACKGROUND,
|
||||
};
|
||||
|
||||
BBitmapButton(const char* resourceName,
|
||||
BMessage* message);
|
||||
|
||||
BBitmapButton(const uint8* bits, uint32 width,
|
||||
uint32 height, color_space format,
|
||||
BMessage* message);
|
||||
|
||||
virtual ~BBitmapButton();
|
||||
|
||||
virtual BSize MinSize();
|
||||
virtual BSize MaxSize();
|
||||
virtual BSize PreferredSize();
|
||||
|
||||
virtual void Draw(BRect updateRect);
|
||||
|
||||
void SetBackgroundMode(uint32 mode);
|
||||
|
||||
private:
|
||||
BBitmap* fBitmap;
|
||||
uint32 fBackgroundMode;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
using BPrivate::BBitmapButton;
|
||||
|
||||
|
||||
#endif // BITMAP_BUTTON_H
|
||||
Reference in New Issue
Block a user