-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathForeBackSelector.h
42 lines (30 loc) · 1.02 KB
/
ForeBackSelector.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Copyright 2009-2012 Haiku, Inc. All Rights Reserved.
* Copyright 2001-2008 Werner Freytag.
* Distributed under the terms of the MIT License.
*/
#ifndef _FORE_BACK_SELECTOR_H
#define _FORE_BACK_SELECTOR_H
#include <View.h>
class BMessageRunner;
class ColorContainer;
class ForeBackSelector : public BView {
public:
ForeBackSelector(BRect frame);
virtual ~ForeBackSelector();
virtual void Draw(BRect updateRect);
virtual void DrawAfterChildren(BRect updateRect);
virtual void MessageReceived(BMessage *message);
virtual void MouseDown(BPoint where);
virtual void MouseMoved(BPoint where, uint32 code,
const BMessage* message);
virtual void MouseUp(BPoint where);
ColorContainer* ForeColorContainer() const
{ return fForeColorContainer; };
ColorContainer* BackColorContainer() const
{ return fBackColorContainer; };
private:
ColorContainer* fForeColorContainer;
ColorContainer* fBackColorContainer;
};
#endif // _FORE_BACK_SELECTOR_H