dashboard/src/panel/weather.hpp

43 lines
769 B
C++

///////////////////////////////////////////////////////////////////////////////
// Tyler Perkins
// 19-9-21
// weather panel
//
#pragma once
#include "panel.hpp"
#include <chrono>
#include <SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>
#include <iostream>
#include <string>
namespace dashboard::panel {
class weather : public panel {
public:
weather();
~weather();
void draw();
private:
void update();
void update_texture();
void initTexture();
std::string current_desc;
std::string tommorow_desc;
std::chrono::time_point<std::chrono::high_resolution_clock> _last_update;
std::chrono::milliseconds _update_interval;
};
}
#include "../board.hpp"