-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprogram.h
37 lines (36 loc) · 1.06 KB
/
program.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
#pragma once
#ifndef _PROGRAM
#define _PROGRAM
#include "ofMain.h"
#include "buttonGui.h"
#include "guiList.h"
#include "guiAlan.h"
#include "codeTextEditor.h"
class program
{
public:
program();
~program();
ofFbo fbo;
ofImage img,minImg;
vector<guiList*> guiListesi;
vector<buttonGui*> buttonGuiList;
vector<codeTextEditor*> textEditorList;
// tüm programlar prototip sürümünde aynı noktada başladıkları için
// bu kisim statik olarak eklenmiştir.
static float addMainX, addMainY;
void (*setup)();
void (*draw)();
void addGuiParametres(buttonGui* button, guiAlan* alan);
void addGuiParametres(codeTextEditor* textCode, guiAlan* alan);
void drawGui(float MainXt,float MainYt);
void mousePressed(int x, int y, int button, float MainX, float MainY);
void keyPressed(int key);
int searchIdbutton(int id);
int searchIdtextCode(int id);
bool tarama(guiAlan alan, int x, int y, float MainX, float MainY);
int specialIdSayac, lastProgram, programCode,activeGui,lastActiveGui;
bool runProgram, openProgram,desktopProgram = false;
string programName;
};
#endif