2016-12-09 02:22:39 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2007-2016 Haiku, Inc.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Ryan Leavengood <leavengood@gmail.com>
|
|
|
|
* John Scipione <jscipione@gmail.com>
|
|
|
|
* Joseph Groover <looncraz@looncraz.net>
|
2017-03-18 15:36:04 +03:00
|
|
|
* Brian Hill <supernova@warpmail.net>
|
2016-12-09 02:22:39 +03:00
|
|
|
*/
|
|
|
|
#ifndef _STRIPE_VIEW_H
|
|
|
|
#define _STRIPE_VIEW_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <Bitmap.h>
|
|
|
|
#include <View.h>
|
|
|
|
|
|
|
|
|
|
|
|
class StripeView : public BView {
|
|
|
|
public:
|
2017-03-20 00:23:01 +03:00
|
|
|
StripeView(BBitmap& icon);
|
2016-12-09 02:22:39 +03:00
|
|
|
|
|
|
|
virtual void Draw(BRect updateRect);
|
2017-03-18 15:36:04 +03:00
|
|
|
virtual BSize PreferredSize();
|
|
|
|
virtual void GetPreferredSize(float* _width, float* _height);
|
|
|
|
virtual BSize MaxSize();
|
2016-12-09 02:22:39 +03:00
|
|
|
|
|
|
|
private:
|
2017-03-20 00:23:01 +03:00
|
|
|
BBitmap fIcon;
|
|
|
|
float fIconSize;
|
2017-03-18 15:36:04 +03:00
|
|
|
float fWidth;
|
2016-12-09 02:22:39 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* _STRIPE_VIEW_H */
|