summaryrefslogtreecommitdiffhomepage
path: root/Public/Kits/System.Graphics/Frame.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'Public/Kits/System.Graphics/Frame.hxx')
-rw-r--r--Public/Kits/System.Graphics/Frame.hxx60
1 files changed, 0 insertions, 60 deletions
diff --git a/Public/Kits/System.Graphics/Frame.hxx b/Public/Kits/System.Graphics/Frame.hxx
deleted file mode 100644
index 318f01cd..00000000
--- a/Public/Kits/System.Graphics/Frame.hxx
+++ /dev/null
@@ -1,60 +0,0 @@
-/* -------------------------------------------
-
- Copyright Mahrouss Logic
-
- File: Frame.hxx
- Purpose:
-
- Revision History:
-
- 31/01/24: Added file (amlel)
-
-------------------------------------------- */
-
-#pragma once
-
-#include <System.Graphics/Core.hxx>
-#include <System.Graphics/Dim2d.hxx>
-#include <System.Core/Defs.hxx>
-#include <NewKit/MutableArray.hpp>
-
-namespace System::Graphics {
-class G_API GFrame {
- public:
- explicit GFrame(GFrame* parent = nullptr) : m_ParentFrame(parent) {}
- ~GFrame() {}
-
- GFrame& operator=(const GFrame&) = default;
- GFrame(const GFrame&) = default;
-
- virtual void Update() {
- if (m_Frames.Count() == 0) return;
-
- for (DWORD x = 0; x < m_Frames.Count(); ++x) {
- if (!m_Frames[x]->ShouldBeUpdated()) continue;
-
- m_Frames[x]->Update();
- }
-
- this->Paint();
- }
-
- virtual void UpdateInput() {
- if (m_Frames.Count() == 0) return;
-
- for (DWORD x = 0; x < m_Frames.Count(); ++x) {
- if (!m_Frames[x]->ShouldBeUpdated()) continue;
-
- m_Frames[x]->UpdateInput();
- }
- }
-
- virtual bool ShouldBeUpdated() { return false; }
-
- virtual void Paint() {}
-
- private:
- HCore::MutableArray<GFrame*> m_Frames;
- GFrame* m_ParentFrame{nullptr};
-};
-} // namespace System::Graphics