summaryrefslogtreecommitdiff
path: root/lyt/layout.h
diff options
context:
space:
mode:
Diffstat (limited to 'lyt/layout.h')
-rw-r--r--lyt/layout.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/lyt/layout.h b/lyt/layout.h
index 88e62dd..092be44 100644
--- a/lyt/layout.h
+++ b/lyt/layout.h
@@ -20,6 +20,7 @@
#include "packagebase.h"
#include "materials/material.h"
+#include "materials/materialcontainer.h"
#include "group.h"
#include "pane.h"
#include "textbox.h"
@@ -44,10 +45,14 @@ public:
void clear();
LYTPackageBase &package() const;
+ QByteArray pack();
+
+ quint8 flags;
+
float width;
float height;
- QMap<QString, LYTMaterial *> materials;
+ LYTMaterialContainer materials;
LYTPane *rootPane;
QList<LYTGroup *> groups;
@@ -72,6 +77,13 @@ protected:
LYTPane *createPaneObj(LYTBinaryFileSection &section);
+ QStringList generateTextureRefs() const;
+ QStringList generateFontRefs() const;
+
+ void writeMat1(LYTBinaryFileSection &section) const;
+ void writePane(LYTBinaryFile &file, LYTPane *pane) const;
+ void writeGroups(LYTBinaryFile &file) const;
+
friend class LYTPane;
friend class LYTTextBox;
friend class LYTPicture;