- Added container - Made container the base of Layout - Set Containers theirself as pParent for Elements on Push
14 lines
290 B
C++
14 lines
290 B
C++
#include <pd/ultra/layout.hpp>
|
|
|
|
namespace PD {
|
|
namespace Ultra {
|
|
PD_API void Layout::SetFont(PD::Li::Font& font) { pList.SetFont(&font); }
|
|
|
|
PD_API void Layout::Render() {
|
|
pList.Clear();
|
|
for (auto& it : GetElements()) {
|
|
it->Draw(pList);
|
|
}
|
|
}
|
|
} // namespace Ultra
|
|
} // namespace PD
|