X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=theme.h;h=91c5c2e1a11deb2f25229104d4ae581e78f7d91d;hb=01181e6e22e5cfc9d0cb17231f2c1866cc53b04a;hp=660a2cd7962024a767230bfb9c49735ed8bb94fd;hpb=f245cb0d0453e0e8bd5c7d40720bd0a5b50454ee;p=nageru diff --git a/theme.h b/theme.h index 660a2cd..91c5c2e 100644 --- a/theme.h +++ b/theme.h @@ -2,8 +2,7 @@ #define _THEME_H 1 #include -#include -#include +#include #include #include #include @@ -39,7 +38,7 @@ public: class Theme { public: - Theme(const char *filename, movit::ResourcePool *resource_pool, unsigned num_cards); + Theme(const std::string &filename, const std::vector &search_dirs, movit::ResourcePool *resource_pool, unsigned num_cards); ~Theme(); struct Chain { @@ -59,6 +58,7 @@ public: int get_channel_signal(unsigned channel); bool get_supports_set_wb(unsigned channel); void set_wb(unsigned channel, double r, double g, double b); + std::string get_channel_color(unsigned channel); std::vector get_transition_names(float t);