

artic
@ 3
artic / ARTIC / jni / ViewDrawNotifier.cpp
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 38 39 40 41 42 43 |
#include "ViewDrawNotifier.h" #include <vector> #include <algorithm> static std::vector<IViewDrawNotifier*> gViewNotifiers; IViewDrawNotifier::IViewDrawNotifier() { gViewNotifiers.push_back(this); } IViewDrawNotifier::~IViewDrawNotifier() { gViewNotifiers.erase(std::find(gViewNotifiers.begin(),gViewNotifiers.end(),this)); } void IViewDrawNotifier::ResumeAll() { size_t n=gViewNotifiers.size(); for(size_t a=0;a<n;a++) { gViewNotifiers[a]->Resume(); } } void IViewDrawNotifier::PauseAll() { size_t n=gViewNotifiers.size(); for(size_t a=0;a<n;a++) { gViewNotifiers[a]->Pause(); } } void IViewDrawNotifier::StopAll() { size_t n=gViewNotifiers.size(); for(size_t a=0;a<n;a++) { gViewNotifiers[a]->Stop(); } } |
Commits for artic/ARTIC/jni/ViewDrawNotifier.cpp
Revision | Author | Commited | Message |
---|---|---|---|
3 |
![]() |
Tue 01 Mar, 2016 17:50:10 +0000 | Subiendo Proyecto Artic |