LeviLamina
Loading...
Searching...
No Matches
NinePatchLayer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/ScreenRenderer.h"
7#include "mc/client/gui/components/NinePatchDescription.h"
8#include "mc/deps/minecraft_renderer/renderer/TexturePtr.h"
9
10// auto generated forward declare list
11// clang-format off
12class ScreenContext;
13class Tessellator;
14// clang-format on
15
16class NinePatchLayer : public ::ScreenRenderer {
17public:
18 // NinePatchLayer inner types declare
19 // clang-format off
20 struct CachedQuad;
21 // clang-format on
22
23 // NinePatchLayer inner types define
24 struct CachedQuad {
25 public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<4, 4, float> x0;
29 ::ll::TypedStorage<4, 4, float> x1;
30 ::ll::TypedStorage<4, 4, float> y0;
31 ::ll::TypedStorage<4, 4, float> y1;
32 ::ll::TypedStorage<4, 4, float> z;
33 ::ll::TypedStorage<4, 4, float> u0;
34 ::ll::TypedStorage<4, 4, float> u1;
35 ::ll::TypedStorage<4, 4, float> v0;
36 ::ll::TypedStorage<4, 4, float> v1;
37 // NOLINTEND
38 };
39
40 using CachedQuad = ::NinePatchLayer::CachedQuad;
41
42 using CachedQuad = ::NinePatchLayer::CachedQuad;
43
44public:
45 // member variables
46 // NOLINTBEGIN
47 ::ll::TypedStorage<4, 4, float> w;
48 ::ll::TypedStorage<4, 4, float> h;
49 ::ll::TypedStorage<4, 56, ::NinePatchDescription> desc;
50 ::ll::TypedStorage<8, 32, ::mce::TexturePtr> texture;
51 ::ll::TypedStorage<4, 4, int> excluded;
52 ::ll::TypedStorage<4, 324, ::NinePatchLayer::CachedQuad[9]> quads;
53 // NOLINTEND
54
55public:
56 // virtual functions
57 // NOLINTBEGIN
58 virtual ~NinePatchLayer() = default;
59 // NOLINTEND
60
61public:
62 // member functions
63 // NOLINTBEGIN
64 MCAPI void draw(::ScreenContext& screenContext, ::Tessellator& tessellator, float x, float y);
65
66 MCAPI void setSize(float w, float h);
67 // NOLINTEND
68
69public:
70 // vftables
71 // NOLINTBEGIN
72 MCNAPI static void** $vftable();
73 // NOLINTEND
74};
Definition NinePatchLayer.h:5
static MCAPI void ** $vftable()
Definition ScreenContext.h:5
Definition ScreenRenderer.h:5
Definition Tessellator.h:5
Definition NinePatchLayer.h:13