Something went wrong. Try again.
art software for the rest of us
drawing paint image sdl art
Something went wrong. Try again.
509 B · 26 lines
C
123456789101112131415161718192021222324252627#pragma once
#include "../../Widgets/Widget.h"#include "../Engine/Geometry.h"
namespace UI {
// helper class for efficiently updating layoutclass DirtyManager {private: Widget* rootWidget = nullptr;
public: DirtyManager() = default; explicit DirtyManager(Widget* root) : rootWidget(root) {}
void SetRootWidget(Widget* root);
// do we need to messure and arrange? void UpdateLayout(Size viewportSize);
// do we need to render anything? bool NeedsRender() const;};
}