blob: ec18e934e6b5f11dbcc88b41a6abd556c29d2c63 (
plain)
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
|
#ifndef BUS_H
#define BUS_H
#include "BusForm.h"
#include "Element.h"
class Bus : public Element
{
public:
Bus();
Bus(wxPoint2DDouble position);
~Bus();
virtual bool AddParent(Element* parent, wxPoint2DDouble position) { return true; }
virtual bool Contains(wxPoint2DDouble position) const;
virtual bool Intersects(wxRect2DDouble rect) const;
virtual void Draw(wxPoint2DDouble translation, double scale) const;
virtual void Rotate(bool clockwise = true);
virtual wxCursor GetBestPickboxCursor() const;
virtual void MovePickbox(wxPoint2DDouble position);
virtual bool PickboxContains(wxPoint2DDouble position);
virtual bool GetContextMenu(wxMenu& menu);
virtual bool ShowForm(wxWindow* parent);
};
#endif // BUS_H
|