From 5bb312993960adaa663701391a83f76b81edc60a Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sun, 21 Dec 2025 16:57:44 +0900 Subject: created htop-vim/ --- fedora/.local/bin/htop-vim/ScreensPanel.h | 53 +++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 fedora/.local/bin/htop-vim/ScreensPanel.h (limited to 'fedora/.local/bin/htop-vim/ScreensPanel.h') diff --git a/fedora/.local/bin/htop-vim/ScreensPanel.h b/fedora/.local/bin/htop-vim/ScreensPanel.h new file mode 100644 index 0000000..88d85b5 --- /dev/null +++ b/fedora/.local/bin/htop-vim/ScreensPanel.h @@ -0,0 +1,53 @@ +#ifndef HEADER_ScreensPanel +#define HEADER_ScreensPanel +/* +htop - ScreensPanel.h +(C) 2004-2011 Hisham H. Muhammad +(C) 2020-2022 htop dev team +Released under the GNU GPLv2+, see the COPYING file +in the source distribution for its full text. +*/ + +#include + +#include "ColumnsPanel.h" +#include "ListItem.h" +#include "Object.h" +#include "Panel.h" +#include "ScreenManager.h" +#include "Settings.h" + +#ifndef SCREEN_NAME_LEN +#define SCREEN_NAME_LEN 20 +#endif + +typedef struct ScreensPanel_ { + Panel super; + + ScreenManager* scr; + Settings* settings; + ColumnsPanel* columns; + char buffer[SCREEN_NAME_LEN + 1]; + char* saved; + int cursor; + bool moving; + ListItem *renamingItem; +} ScreensPanel; + +typedef struct ScreenListItem_ { + ListItem super; + ScreenSettings* ss; +} ScreenListItem; + + +extern ObjectClass ScreenListItem_class; + +ScreenListItem* ScreenListItem_new(const char* value, ScreenSettings* ss); + +extern PanelClass ScreensPanel_class; + +ScreensPanel* ScreensPanel_new(Settings* settings); + +void ScreensPanel_update(Panel* super); + +#endif -- cgit v1.2.3