suwako / UnixWallpaper アーカイブ

このリポジトリはアーカイブされています。読むだけで、プッシュやイシューの変更は出来ません。

master
ブランチ master
UnixWallpaper / src / fe / thumbnail.hh
657 B、33行 生 Blame 履歴
1#pragma once
2
3#include <FL/Fl_Image.H>
4#include <FL/Fl_Window.H>
5
6#include <mutex>
7#include <string>
8#include <queue>
9#include <vector>
10
11namespace fe {
12 class Thumbnail {
13 public:
14 Thumbnail();
15 ~Thumbnail();
16
17 void init();
18 static void loadImagesCb(void *v);
19
20 private:
21 std::vector<std::string> imgfiles;
22 std::vector<Fl_Image *> thumbs;
23 std::queue<std::string> pending;
24 std::mutex mutex;
25 int curX = 10;
26 int curY = 10;
27 Fl_Window *loadingDialog;
28
29 void createLoadingDialog();
30 std::vector<std::string> listImages(const std::string &directory);
31 void loadNextImage();
32 };
33}