aboutsummaryrefslogtreecommitdiffstats
path: root/ScreensPanel.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2022-05-02 16:04:22 +0200
committerDaniel Lange <DLange@git.local>2022-05-02 16:04:22 +0200
commit2f0332b75397ad5240a429d72203f0531011b6a9 (patch)
tree4782d4b8d0c43f3e6faa1bbbe95816a09e815e67 /ScreensPanel.h
parent93c96b12c9cb349b762d38d69568d65cd3e4fbfd (diff)
parent1b805a31720727008b32b1129a167758519fd4db (diff)
downloaddebian_htop-2f0332b75397ad5240a429d72203f0531011b6a9.tar.gz
debian_htop-2f0332b75397ad5240a429d72203f0531011b6a9.tar.bz2
debian_htop-2f0332b75397ad5240a429d72203f0531011b6a9.zip
Update upstream source from tag 'upstream/3.2.0'
Update to upstream version '3.2.0' with Debian dir 5ce130e9471b77941bbd217b5ea8b7b3419a91c6
Diffstat (limited to 'ScreensPanel.h')
-rw-r--r--ScreensPanel.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/ScreensPanel.h b/ScreensPanel.h
new file mode 100644
index 0000000..1f82395
--- /dev/null
+++ b/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 <stdbool.h>
+
+#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;
+ bool renaming;
+} 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

© 2014-2024 Faster IT GmbH | imprint | privacy policy