From 5f6dad55d75cbe146ff7fefc899a02ccd39078ba Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 7 Oct 2010 15:56:13 +0200 Subject: initial commit -- everything compiles except for material.cpp. the material system still needs quite a bit of work; this will come in due time --- lyt/textbox.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 lyt/textbox.h (limited to 'lyt/textbox.h') diff --git a/lyt/textbox.h b/lyt/textbox.h new file mode 100644 index 0000000..de1020d --- /dev/null +++ b/lyt/textbox.h @@ -0,0 +1,37 @@ +#ifndef LYTTEXTBOX_H +#define LYTTEXTBOX_H + +#include + +#include "pane.h" + +class LYTTextBox : public LYTPane { +public: + LYTTextBox(LYTLayout &layout); + + + void writeToDataStream(QDataStream &out); + void readFromDataStream(QDataStream &in); + + void dumpToDebug(bool showHeading=true); + + quint16 bufferLength; + QString text; + + QString materialName; + QString fontName; + + quint8 alignment; + quint8 alignmentOverride; + + QColor colour1; + QColor colour2; + + float fontSizeX; + float fontSizeY; + float charSpace; + float lineSpace; +}; + + +#endif // LYTTEXTBOX_H -- cgit v1.2.3