aboutsummaryrefslogtreecommitdiffstats
path: root/ScreenManager.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-11 13:00:15 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:15 +0200
commitd3c9975943df58e293359b87905d19ff1fd52061 (patch)
treee416378879f60e8d538b1b25963904f767d30ff4 /ScreenManager.h
downloaddebian_htop-d3c9975943df58e293359b87905d19ff1fd52061.tar.gz
debian_htop-d3c9975943df58e293359b87905d19ff1fd52061.tar.bz2
debian_htop-d3c9975943df58e293359b87905d19ff1fd52061.zip
Imported Upstream version 0.5upstream/0.5
Diffstat (limited to 'ScreenManager.h')
-rw-r--r--ScreenManager.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/ScreenManager.h b/ScreenManager.h
new file mode 100644
index 0000000..20e8000
--- /dev/null
+++ b/ScreenManager.h
@@ -0,0 +1,57 @@
+/* Do not edit this file. It was automatically genarated. */
+
+#ifndef HEADER_ScreenManager
+#define HEADER_ScreenManager
+/*
+htop
+(C) 2004 Hisham H. Muhammad
+Released under the GNU GPL, see the COPYING file
+in the source distribution for its full text.
+*/
+
+#include "ListBox.h"
+#include "Object.h"
+#include "TypedVector.h"
+#include "FunctionBar.h"
+
+#include "debug.h"
+#include <assert.h>
+
+#include <stdbool.h>
+
+
+typedef enum Orientation_ {
+ VERTICAL,
+ HORIZONTAL
+} Orientation;
+
+typedef struct ScreenManager_ {
+ int x1;
+ int y1;
+ int x2;
+ int y2;
+ Orientation orientation;
+ TypedVector* items;
+ int itemCount;
+ FunctionBar* fuBar;
+ bool owner;
+} ScreenManager;
+
+
+ScreenManager* ScreenManager_new(int x1, int y1, int x2, int y2, Orientation orientation, bool owner);
+
+void ScreenManager_delete(ScreenManager* this);
+
+inline int ScreenManager_size(ScreenManager* this);
+
+void ScreenManager_add(ScreenManager* this, ListBox* item, int size);
+
+ListBox* ScreenManager_remove(ScreenManager* this, int index);
+
+void ScreenManager_setFunctionBar(ScreenManager* this, FunctionBar* fuBar);
+
+void ScreenManager_resize(ScreenManager* this, int x1, int y1, int x2, int y2);
+
+void ScreenManager_run(ScreenManager* this, ListBox** lastFocus, int* lastKey);
+
+#endif

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