aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/window_text_buffer.h
diff options
context:
space:
mode:
authorPaul Gilbert2018-12-31 18:34:42 -0800
committerPaul Gilbert2018-12-31 18:34:42 -0800
commit1021da132b2ed37232461c1ff44b78164b0a4ee5 (patch)
tree51efb87db162a9a229ad5d6fb1c2ecb8d9d230fe /engines/glk/window_text_buffer.h
parentf25b3d93c1596eadc49578b8b331609168678429 (diff)
downloadscummvm-rg350-1021da132b2ed37232461c1ff44b78164b0a4ee5.tar.gz
scummvm-rg350-1021da132b2ed37232461c1ff44b78164b0a4ee5.tar.bz2
scummvm-rg350-1021da132b2ed37232461c1ff44b78164b0a4ee5.zip
GLK: Splitting font related info from Conf into their own classes
Diffstat (limited to 'engines/glk/window_text_buffer.h')
-rw-r--r--engines/glk/window_text_buffer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/glk/window_text_buffer.h b/engines/glk/window_text_buffer.h
index 1eacbb9710..47d87a45ab 100644
--- a/engines/glk/window_text_buffer.h
+++ b/engines/glk/window_text_buffer.h
@@ -26,6 +26,7 @@
#include "glk/windows.h"
#include "glk/picture.h"
#include "glk/speech.h"
+#include "glk/conf.h"
#include "common/array.h"
#include "common/ustr.h"
@@ -54,6 +55,8 @@ class TextBufferWindow : public Window, Speech {
};
typedef Common::Array<TextBufferRow> TextBufferRows;
private:
+ PropFontInfo &_font;
+private:
void reflow();
void touchScroll();
bool putPicture(Picture *pic, uint align, uint linkval);
@@ -150,6 +153,11 @@ public:
uint drawPicture(uint image, uint align, uint scaled, uint width, uint height);
/**
+ * Get the font info structure associated with the window
+ */
+ virtual FontInfo *getFontInfo() override { return &_font; }
+
+ /**
* Rearranges the window
*/
virtual void rearrange(const Rect &box) override;