2 * Copyright 2017 Julian Harnath <julian.harnath@rwth-aachen.de>
3 * All rights reserved. Distributed under the terms of the MIT license.
17 /*! Spinning barber pole progress indicator. Number and colors of the
18 color stripes are configurable. By default, it will be 2 colors,
19 chosen from the system color palette.
21 class BarberPole
: public BView
{
25 kRefreshMessage
= 0x1001
29 BarberPole(const char* name
);
32 virtual void MessageReceived(BMessage
* message
);
33 virtual void Draw(BRect updateRect
);
34 virtual void FrameResized(float width
, float height
);
36 virtual BSize
MinSize();
41 void SetSpinSpeed(float speed
);
42 void SetColors(const rgb_color
* colors
,
51 const rgb_color
* fColors
;
61 #endif // BARBER_POLE_H