12 MSG_OBJECT_COUNT_CHANGED
= 'obcc',
13 MSG_OBJECT_ADDED
= 'obad',
16 class ObjectView
: public BView
{
18 ObjectView(BRect frame
, const char* name
,
19 uint32 resizeFlags
, uint32 flags
);
20 virtual ~ObjectView();
23 virtual void AttachedToWindow();
24 virtual void DetachedFromWindow();
26 virtual void Draw(BRect updateRect
);
28 virtual void MouseDown(BPoint where
);
29 virtual void MouseUp(BPoint where
);
30 virtual void MouseMoved(BPoint where
, uint32 transit
,
31 const BMessage
* dragMessage
);
33 virtual void MessageReceived(BMessage
* message
);
36 void SetState(State
* state
);
38 void SetObjectType(int32 type
);
39 int32
ObjectType() const
40 { return fObjectType
; }
42 void AddObject(State
* state
);
43 void RemoveObject(State
* state
);
44 int32
CountObjects() const;
47 void SetStateColor(rgb_color color
);
48 rgb_color
StateColor() const
51 void SetStateDrawingMode(drawing_mode mode
);
52 drawing_mode
StateDrawingMode() const
53 { return fDrawingMode
; }
55 void SetStateFill(bool fill
);
56 bool StateFill() const
59 void SetStatePenSize(float penSize
);
60 float StatePenSize() const
70 drawing_mode fDrawingMode
;
79 #endif // OBJECT_VIEW_H