Files
palladium/include/pd/ultra/layout.hpp
tobid7 679de3ae94 Add Input functionality to Ultra
- Add point InSpace check to PD::Li::Math
- Add Universal AlignmentCenter flag for Horizontal and and Vertical Alignment
-  Add Fallbackfont to Layout (if you dont want to set font per object)
- Add Button Object WIP
- Rename OnHover to OnFocus and add OnUnfocus
- Move font and FontScale to ElementBase (for fallback logic etc)
- Add UpdateInput func to ElementBase
- Corectly Set fontScale in Text Rendering
- Update ecample
2026-04-03 15:17:43 +02:00

25 lines
526 B
C++

#pragma once
#include <pd/ultra/canvas.hpp>
#include <pd/ultra/container.hpp>
#include <pd/ultra/elems/element.hpp>
namespace PD {
namespace Ultra {
class PD_API Layout : public Container {
public:
Layout() {}
~Layout() {}
/**
* 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; }
void Render(PD::Li::Drawlist& list);
private:
PD::Li::Font* pFont = nullptr;
};
} // namespace Ultra
} // namespace PD