diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-21 22:39:57 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-21 22:39:57 +0100 |
| commit | 80b76666074aa94f165e3db7b3dda2145ca6efc0 (patch) | |
| tree | ba8a189df55f3dab4d3623eb4617c7b5d33c7f07 /Public/Kits/System.Graphics/Frame.hxx | |
| parent | dafcc53840c41dab7a1897868d020a5b196d5b2d (diff) | |
unstable, kernel+api: important breaking changes.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Public/Kits/System.Graphics/Frame.hxx')
| -rw-r--r-- | Public/Kits/System.Graphics/Frame.hxx | 60 |
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 |
