Changeset 7919 in orxonox.OLD for trunk/src/lib/gui/gl_gui/signal_connector.h
- Timestamp:
- May 28, 2006, 3:48:13 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/signal_connector.h
r7855 r7919 11 11 namespace OrxGui 12 12 { 13 14 #define DeclareSignal(name, params) \ 15 public: \ 16 void signal_ ##connect ##name(const SignalConnector& connector) { \ 17 name ## connected.push_back(connector); \ 18 }\ 19 private: \ 20 void signal_ ## name params { \ 21 for (unsigned int i = 0; i < name ## connected . size(); i++) \ 22 name ## connected[i] ("TEST"); \ 23 }\ 24 std::vector<SignalConnector> name ## connected 25 13 26 //! A class for Conncting Signals to Objects, inside of the GUI 14 27 class SignalConnector
Note: See TracChangeset
for help on using the changeset viewer.