diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-13 17:20:30 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-13 17:21:05 +0100 |
| commit | b75417b44d5f63ea0ead68cbe8f62bd76df62229 (patch) | |
| tree | 81527a21bdf4ae8f14fb8acd0ff04d9d127f24d3 /Public | |
| parent | a9ac78b47dd040e04afc4990dace2472df2302e4 (diff) | |
HCR-15: Merge to master branch.
Important commit and end of ticket.
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Public')
| -rw-r--r-- | Public/Kits/GKit/Frame.cxx (renamed from Public/Kits/GKit/GFrame.cxx) | 4 | ||||
| -rw-r--r-- | Public/Kits/GKit/Frame.hpp (renamed from Public/Kits/GKit/GFrame.hpp) | 4 | ||||
| -rw-r--r-- | Public/Kits/GKit/Stylesheet.hxx | 35 |
3 files changed, 39 insertions, 4 deletions
diff --git a/Public/Kits/GKit/GFrame.cxx b/Public/Kits/GKit/Frame.cxx index 427c95ba..939dfc5a 100644 --- a/Public/Kits/GKit/GFrame.cxx +++ b/Public/Kits/GKit/Frame.cxx @@ -2,7 +2,7 @@ Copyright Mahrouss Logic - File: GFrame.cpp + File: Frame.cpp Purpose: Revision History: @@ -11,6 +11,6 @@ ------------------------------------------- */ -#include <GKit/GFrame.hpp> +#include <GKit/Frame.hpp> namespace HCore {} diff --git a/Public/Kits/GKit/GFrame.hpp b/Public/Kits/GKit/Frame.hpp index f70f8f8e..f71628a7 100644 --- a/Public/Kits/GKit/GFrame.hpp +++ b/Public/Kits/GKit/Frame.hpp @@ -2,7 +2,7 @@ Copyright Mahrouss Logic - File: GFrame.hpp + File: Frame.hpp Purpose: Revision History: @@ -18,7 +18,7 @@ #include <NewKit/MutableArray.hpp> namespace HCore { -class GFrame { +class G_API GFrame { public: explicit GFrame(GFrame* parent = nullptr) : m_ParentFrame(parent) {} ~GFrame() {} diff --git a/Public/Kits/GKit/Stylesheet.hxx b/Public/Kits/GKit/Stylesheet.hxx index bd764fcb..a34dd435 100644 --- a/Public/Kits/GKit/Stylesheet.hxx +++ b/Public/Kits/GKit/Stylesheet.hxx @@ -14,3 +14,38 @@ #pragma once /// TODO: Stylesheets for GUI. + +#include <GKit/Core.hpp> +#include <GKit/Dim2d.hpp> +#include <NewKit/MutableArray.hpp> + +#include "NewKit/String.hpp" + +namespace HCore { +class G_API Stylesheet final { + public: + explicit Stylesheet() = default; + ~Stylesheet() = default; + + HCORE_COPY_DEFAULT(Stylesheet); + + MutableArray<StringView>& Props() { return mProps; } + + private: + MutableArray<StringView> mProps; +}; + +class StylesheetParser final { + public: + static MutableArray<Stylesheet> FromBlob(WideChar* Blob, SizeT BlobSz) { + MutableArray<Stylesheet> stylesheet; + + if (!Blob || BlobSz < 1) return stylesheet; + + for (auto BlobIndex = 0UL; BlobIndex < BlobSz; ++BlobIndex) { + } + + return stylesheet; + } +}; +} // namespace HCore |
