summaryrefslogtreecommitdiffhomepage
path: root/Public/Kits/System.Graphics/Stylesheet.hxx
blob: 79efbcf48b03f613b4ae87cb7f24d10d4dc6a862 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* -------------------------------------------

    Copyright Mahrouss Logic

    File: Stylesheet.hxx
    Purpose:

    Revision History:

    08/02/24: Added file (amlel)

------------------------------------------- */

#pragma once

/// TODO: Stylesheets for GUI.

#include <System.Graphics/Core.hxx>
#include <System.Graphics/Dim2d.hxx>
#include <NewKit/MutableArray.hpp>

namespace HCore {
class G_API GStylesheet final {
 public:
  explicit GStylesheet() = default;
  ~GStylesheet() = default;

  HCORE_COPY_DEFAULT(GStylesheet);

  MutableArray<StringView>& Props() { return mProps; }

 private:
  MutableArray<StringView> mProps;
};

class StylesheetParser final {
 public:
  static MutableArray<GStylesheet> FromBlob(WideChar* Blob, SizeT BlobSz) {
    MutableArray<GStylesheet> stylesheet;

    if (!Blob || BlobSz < 1) return stylesheet;

    for (auto BlobIndex = 0UL; BlobIndex < BlobSz; ++BlobIndex) {
    }

    return stylesheet;
  }
};
}  // namespace HCore