Simple Nano Circuit 0.0.2
PnpObject.h
1#ifndef _PnpObject_H_
2#define _PnpObject_H_
3
4#include <SDL.h>
5#include "../BaseIcObject.h"
6#include "../symbols/pnp.c"
7
8class PnpObject : public BaseIcObject
9{
10 private:
11 void init() override;
12 void setupFootPins() override;
13
14 struct StoreData
15 {
16 ICType id;
17 SDL_Point centerPos;
18 int rotateNumber;
19 int mirrowNumber;
20 };
21 StoreData storeData;
22
23 public:
26 PnpObject(const unsigned char*, AsgardClass*);
27 ~PnpObject();
28
29 const ICType getType() const override {return ICType::PNP;}
30
31 BaseElectronObject* deepDuplicateSelf() override;
32
33 bool havePopupWindow() override {return false;}
34 const char* popupWindowName() const override {return "";}
35 void CreateImGuiForm() override {return;};
36
37 void pinInvalidNotify(FootPinNode*) override;
38
39 void saveToFile(std::ofstream&) override;
40};
41
42#endif
Definition: AsgardClass.h:17
Definition: BaseElectronObject.h:13
Definition: BaseIcObject.h:11
Definition: FootPinNode.h:15
Definition: PnpObject.h:9