summaryrefslogtreecommitdiffhomepage
path: root/Public
diff options
context:
space:
mode:
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.hxx35
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