/SleekThink.depend
80914,7 → 80914,7
<string>
"../math/vector2d.h"
 
1423324421 /mnt/windows1/Development/Project/Xtrem-Coder/Sleek Think/src/sleek/gui/interface.h
1423625553 /mnt/windows1/Development/Project/Xtrem-Coder/Sleek Think/src/sleek/gui/interface.h
"font.h"
"frame.h"
"theme.h"
/SleekThink.layout
Cannot display: file marked as a binary type.
svn:mime-type = application/xml
/bin/SleekThink
Cannot display: file marked as a binary type.
svn:mime-type = application/x-executable
/src/sleek/gui/interface.cpp
5,8 → 5,10
#include "progressbar.h"
#include "scrollbar.h"
#include "picture.h"
#include "window.h"
#include "window.h"
 
#include <algorithm>
 
namespace sleek
{
namespace gui
170,14 → 172,14
 
void interface::removeFrame(std::shared_ptr<frame> i) noexcept
{
for(auto it = gui.begin() ; it != gui.end(); ++it)
{
if(*it == i)
{
gui.erase(it);
break;
}
}
gui.erase(
std::remove_if(
gui.begin(), gui.end(),
[&i](const std::shared_ptr<frame> &it){
return it == i;
}
)
);
}
 
void interface::removeFrame(const s32 i) noexcept
192,7 → 194,7
 
void interface::clear() noexcept
{
while(gui.size()) removeFrame(0);
gui.clear();
}
 
std::shared_ptr<driver::driver> interface::getDrawManager() const noexcept