]> git.sesse.net Git - nageru/blobdiff - theme.h
Expose width and height information to Lua during get_chain().
[nageru] / theme.h
diff --git a/theme.h b/theme.h
index b60df1490190059fb0a0900ed543aab6fa0b7266..4f2c2327c223c0917cab5e16d556b41b37f17769 100644 (file)
--- a/theme.h
+++ b/theme.h
@@ -86,9 +86,15 @@ public:
                return input;
        }
 
+       // Of last connected signal number (see connect_signal()).
+       // Only valid during get_chain() or the setup callback.
+       unsigned get_width() const;
+       unsigned get_height() const;
+
 private:
        Theme *theme;  // Not owned by us.
        movit::YCbCrInput *input;  // Owned by the chain.
+       int last_connected_signal_num = -1;
 };
 
 #endif  // !defined(_THEME_H)