6 #include <GraphicsDefs.h>
25 void Init(rgb_color color
, drawing_mode mode
,
26 bool fill
, float penSize
);
28 void MouseDown(BPoint where
);
30 void MouseMoved(BPoint where
);
31 bool IsTracking() const
34 void SetColor(rgb_color color
);
35 rgb_color
Color() const
37 void SetDrawingMode(drawing_mode mode
);
38 void SetFill(bool fill
);
39 void SetPenSize(float penSize
);
41 void SetEditing(bool editing
);
44 virtual void Draw(BView
* view
) const;
45 virtual bool SupportsFill() const
48 static State
* StateFor(int32 objectType
,
49 rgb_color color
, drawing_mode mode
,
50 bool fill
, float penSize
);
53 BRect
_ValidRect() const;
54 void _RenderDot(BView
* view
, BPoint where
) const;
55 void _AdjustViewState(BView
* view
) const;
57 bool _HitTest(BPoint where
, BPoint point
) const;
76 drawing_mode fDrawingMode
;