16 Gtk::Box* left_box_ {
nullptr };
17 Gtk::Box* right_box_ {
nullptr };
18 Gtk::EventBox* left_click_ {
nullptr };
19 Gtk::EventBox* right_click_ {
nullptr };
24 Gtk::Label left_title_;
25 Gtk::Label left_details_;
26 Gtk::Image left_poster_;
28 Gtk::Label right_title_;
29 Gtk::Label right_details_;
30 Gtk::Image right_poster_;
32 Gtk::Button pass_btn_ {
"Pass"};
33 Gtk::Button finish_btn_ {
"Finish Ranking"};
35 int left_index_ { -1 };
36 int right_index_ { -1 };
39 void refresh_side(
bool left);
45 Glib::RefPtr<Gdk::Pixbuf> left_orig_;
46 Glib::RefPtr<Gdk::Pixbuf> right_orig_;
47 static Glib::RefPtr<Gdk::Pixbuf> scale_pixbuf(
const Glib::RefPtr<Gdk::Pixbuf>& src,
int maxW,
int maxH);
48 void update_scaled_posters();
49 void load_poster_async_for(Gtk::Image& image, Glib::RefPtr<Gdk::Pixbuf>& store,
const std::string& url);
52 bool on_left_click(GdkEventButton*);
53 bool on_right_click(GdkEventButton*);
56 bool on_left_enter(GdkEventCrossing*);
57 bool on_left_leave(GdkEventCrossing*);
58 bool on_right_enter(GdkEventCrossing*);
59 bool on_right_leave(GdkEventCrossing*);