]> git.sesse.net Git - ccbs/blobdiff - bigscreen/top10scorescreen.h
Shape text using Pango and HarfBuzz; gives us nice ligatures and exotic scripts.
[ccbs] / bigscreen / top10scorescreen.h
index 9e8f3c07b6313807901ad0bcecc10cfc38de8572..439bfebddc87e2d5a7540a8d075b157fe8ae080f 100644 (file)
@@ -1,14 +1,12 @@
 #ifndef _TOP10SCORESCREEN_H
 #define _TOP10SCORESCREEN_H 1
 
-#include <vector>
+#include <set>
 #include <pqxx/connection>
-#include <time.h>
-#include <sys/time.h>
 
 #include "screen.h"
 #include "flagtrigger.h"
-#include "fonts.h"
+#include "fetch_top_scores_for_tournament.h"
 
 /* A screen class showing a group in the tournament */
 class Top10ScoreScreen : public GenericScreen {
@@ -17,14 +15,15 @@ private:
        unsigned tournament;
        FlagTrigger scores_changed;
        bool valid;
-       std::vector<TextDefer> last_text;
+       std::set<TopScore> seen_topscore;
        
 public:
        Top10ScoreScreen(pqxx::connection &conn, unsigned tournament);
        virtual ~Top10ScoreScreen();
 
        bool check_invalidated();
-       void draw(unsigned char *buf);
+       void draw(unsigned char *buf, unsigned width, unsigned height);
+       int get_priority();
 };
 
 #endif /* !defined(_TOP10SCORESCREEN_H) */