Files
palladium/include/pd/ultra/layout.hpp
T

25 lines
526 B
C++
Raw Normal View History

2026-03-26 21:02:10 +01:00
#pragma once
#include <pd/ultra/canvas.hpp>
2026-03-29 04:28:45 +02:00
#include <pd/ultra/container.hpp>
2026-03-26 21:02:10 +01:00
#include <pd/ultra/elems/element.hpp>
namespace PD {
namespace Ultra {
2026-03-29 04:28:45 +02:00
class PD_API Layout : public Container {
2026-03-26 21:02:10 +01:00
public:
Layout() {}
~Layout() {}
2026-04-03 15:17:43 +02:00
/**
* Set a fallback font if you dont want to explicitly set a font for every
* objectt individually
*/
void SetFont(PD::Li::Font& font) { pFont = &font; }
2026-04-03 12:43:49 +02:00
void Render(PD::Li::Drawlist& list);
2026-04-03 15:17:43 +02:00
private:
PD::Li::Font* pFont = nullptr;
2026-03-26 21:02:10 +01:00
};
} // namespace Ultra
} // namespace PD