mirror of
https://github.com/Clortox/dashboard.git
synced 2026-03-04 00:58:00 +00:00
Rename pannel to panel
This commit is contained in:
7
src/panel/panel.cpp
Normal file
7
src/panel/panel.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Tyler Perkins
|
||||
// 8-23-21
|
||||
// pannel implementation
|
||||
//
|
||||
|
||||
#include "panel.hpp"
|
||||
30
src/panel/panel.hpp
Normal file
30
src/panel/panel.hpp
Normal file
@@ -0,0 +1,30 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Tyler Perkins
|
||||
// 8-23-21
|
||||
// pannel definition
|
||||
//
|
||||
///////////////////////////////////////
|
||||
// Note:
|
||||
// This class is a pure virtual class. board has an array of these, and
|
||||
// each of them is a different page that will be shown. Whatever pannel is
|
||||
// set as pannel_border will not check its own time elapsed, and will be
|
||||
// displayed on top of all other pannels
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <SDL.h>
|
||||
#include <SDL2/SDL_image.h>
|
||||
#include <SDL2/SDL_ttf.h>
|
||||
|
||||
namespace dashboard {
|
||||
class panel {
|
||||
public:
|
||||
panel() = default;
|
||||
~panel() = default;
|
||||
|
||||
virtual void draw() = 0;
|
||||
|
||||
size_t _time_on_screen = 0;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user