git-svn-id: svn://db.shs.com.ru/pip@696 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
4
main.cpp
4
main.cpp
@@ -4,8 +4,8 @@ class A: public PIObject {
|
|||||||
PIOBJECT(A)
|
PIOBJECT(A)
|
||||||
public:
|
public:
|
||||||
A() {}
|
A() {}
|
||||||
EVENT_HANDLER1(void, handlerA1, PIString, s) {piCout << "handlerA1 s" << s;}
|
|
||||||
EVENT_HANDLER1(void, handlerA1, float, f) {piCout << "handlerA1 f" << f;}
|
EVENT_HANDLER1(void, handlerA1, float, f) {piCout << "handlerA1 f" << f;}
|
||||||
|
EVENT_HANDLER1(void, handlerA2, PIString, s) {piCout << "handlerA2 s" << s;}
|
||||||
//uchar _[0x10];
|
//uchar _[0x10];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ int main() {
|
|||||||
A a;
|
A a;
|
||||||
B b;
|
B b;
|
||||||
CONNECTU(&b, eventB1, &a, handlerA1)
|
CONNECTU(&b, eventB1, &a, handlerA1)
|
||||||
CONNECTU(&b, eventB2, &a, handlerA1)
|
CONNECTU(&b, eventB2, &a, handlerA2)
|
||||||
a.dump();
|
a.dump();
|
||||||
b.dump();
|
b.dump();
|
||||||
b.eventB1(0.33);
|
b.eventB1(0.33);
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ private:
|
|||||||
PRIVATE_DECLARATION
|
PRIVATE_DECLARATION
|
||||||
int width, height, pwidth, pheight;
|
int width, height, pwidth, pheight;
|
||||||
int mouse_x, mouse_y;
|
int mouse_x, mouse_y;
|
||||||
PIVector<PIVector<PIScreenTypes::Cell> > cells, pcells, dcells;
|
PIVector<PIVector<PIScreenTypes::Cell> > cells, pcells;
|
||||||
};
|
};
|
||||||
|
|
||||||
void begin();
|
void begin();
|
||||||
|
|||||||
Reference in New Issue
Block a user