mirror of
https://github.com/Clortox/dashboard.git
synced 2026-03-04 00:58:00 +00:00
Add panel::forceUpdate()
This commit is contained in:
@@ -5,3 +5,13 @@
|
||||
//
|
||||
|
||||
#include "panel.hpp"
|
||||
|
||||
using namespace dashboard::panel;
|
||||
|
||||
void panel::forceUpdate(){
|
||||
if(_texture == nullptr)
|
||||
initTexture();
|
||||
|
||||
update();
|
||||
update_texture();
|
||||
}
|
||||
|
||||
@@ -25,6 +25,8 @@ namespace dashboard::panel {
|
||||
virtual ~panel() = default;
|
||||
|
||||
virtual void draw() = 0;
|
||||
|
||||
void forceUpdate();
|
||||
|
||||
//in milliseconds
|
||||
size_t _time_on_screen = 0;
|
||||
|
||||
Reference in New Issue
Block a user