Versión de Firmware con funciones de RAM incorporadas.

Dependencies:   mbed

Fork of VmRecorderV1dot1 by virtualmech

ScreenManager/SelecManager.cpp

Committer:
JuanManuelAmador
Date:
2015-06-15
Revision:
0:3d456b8ce449

File content as of revision 0:3d456b8ce449:

#include "SelecManager.h"

SelecManager::SelecManager(){
    nScreens = 0;
}

int SelecManager::addScreen(Seleccion *screen){
    screens[nScreens] = screen;
    nScreens++;
    return nScreens -1;
}

void SelecManager::setInverterSelection(){
    for(int i = 0; i < nScreens; i++){
        screens[i]->setInverterSelection();
    }
}

void SelecManager::setRectSelection(){
    for(int i = 0; i < nScreens; i++){
        screens[i]->setRectSelection();
    }
}

int SelecManager::getnScreens(){
    return nScreens;
}