diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-28 15:42:50 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-28 15:42:50 +0900 |
| commit | ae78dbbff81196f1d7bc8fabf84d05e6b9f3ca03 (patch) | |
| tree | fdc69ee3e2772aa4db7e8efe4bd30d101c7f82ac /fedora/.local/bin/htop-vim/InfoScreen.h | |
| parent | 06ad645351572c0e7188c52028998384d718df2e (diff) | |
Diffstat (limited to 'fedora/.local/bin/htop-vim/InfoScreen.h')
| -rw-r--r-- | fedora/.local/bin/htop-vim/InfoScreen.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/fedora/.local/bin/htop-vim/InfoScreen.h b/fedora/.local/bin/htop-vim/InfoScreen.h deleted file mode 100644 index d7497be..0000000 --- a/fedora/.local/bin/htop-vim/InfoScreen.h +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef HEADER_InfoScreen -#define HEADER_InfoScreen - -#include <stdbool.h> - -#include "FunctionBar.h" -#include "IncSet.h" -#include "Macros.h" -#include "Object.h" -#include "Panel.h" -#include "Process.h" -#include "Vector.h" - - -typedef struct InfoScreen_ { - Object super; - const Process* process; - Panel* display; - IncSet* inc; - Vector* lines; -} InfoScreen; - -typedef void(*InfoScreen_Scan)(InfoScreen*); -typedef void(*InfoScreen_Draw)(InfoScreen*); -typedef void(*InfoScreen_OnErr)(InfoScreen*); -typedef bool(*InfoScreen_OnKey)(InfoScreen*, int); - -typedef struct InfoScreenClass_ { - const ObjectClass super; - const InfoScreen_Scan scan; - const InfoScreen_Draw draw; - const InfoScreen_OnErr onErr; - const InfoScreen_OnKey onKey; -} InfoScreenClass; - -#define As_InfoScreen(this_) ((const InfoScreenClass*)(((InfoScreen*)(this_))->super.klass)) -#define InfoScreen_scan(this_) As_InfoScreen(this_)->scan((InfoScreen*)(this_)) -#define InfoScreen_draw(this_) As_InfoScreen(this_)->draw((InfoScreen*)(this_)) -#define InfoScreen_onErr(this_) As_InfoScreen(this_)->onErr((InfoScreen*)(this_)) -#define InfoScreen_onKey(this_, ch_) As_InfoScreen(this_)->onKey((InfoScreen*)(this_), ch_) - -InfoScreen* InfoScreen_init(InfoScreen* this, const Process* process, FunctionBar* bar, int height, const char* panelHeader); - -InfoScreen* InfoScreen_done(InfoScreen* this); - -ATTR_FORMAT(printf, 2, 3) -void InfoScreen_drawTitled(InfoScreen* this, const char* fmt, ...); - -void InfoScreen_addLine(InfoScreen* this, const char* line); - -void InfoScreen_appendLine(InfoScreen* this, const char* line); - -void InfoScreen_run(InfoScreen* this); - -#endif |
