aboutsummaryrefslogtreecommitdiffstats
path: root/ListBox.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-11 13:00:19 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:19 +0200
commit266ab52b3a741a58fb17c48b0f7939d7c5d266de (patch)
treeb4bccc59b9a35f3acbe7560f3d633940c71aedef /ListBox.h
parent2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2 (diff)
downloaddebian_htop-266ab52b3a741a58fb17c48b0f7939d7c5d266de.tar.gz
debian_htop-266ab52b3a741a58fb17c48b0f7939d7c5d266de.tar.bz2
debian_htop-266ab52b3a741a58fb17c48b0f7939d7c5d266de.zip
Imported Upstream version 0.6upstream/0.6
Diffstat (limited to 'ListBox.h')
-rw-r--r--ListBox.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/ListBox.h b/ListBox.h
index 3843abe..750bcfd 100644
--- a/ListBox.h
+++ b/ListBox.h
@@ -33,7 +33,7 @@ typedef enum HandlerResult_ {
BREAK_LOOP
} HandlerResult;
-typedef HandlerResult(*ListBox_eventHandler)(ListBox*, int);
+typedef HandlerResult(*ListBox_EventHandler)(ListBox*, int);
struct ListBox_ {
Object super;
@@ -45,7 +45,7 @@ struct ListBox_ {
int oldSelected;
bool needsRedraw;
RichString header;
- ListBox_eventHandler eventHandler;
+ ListBox_EventHandler eventHandler;
};
extern char* LISTBOX_CLASS;
@@ -60,7 +60,11 @@ void ListBox_init(ListBox* this, int x, int y, int w, int h, char* type, bool ow
void ListBox_done(ListBox* this);
-void ListBox_setHeader(ListBox* this, RichString header);
+void ListBox_setEventHandler(ListBox* this, ListBox_EventHandler eh);
+
+void ListBox_setRichHeader(ListBox* this, RichString header);
+
+void ListBox_setHeader(ListBox* this, char* header);
void ListBox_move(ListBox* this, int x, int y);
@@ -70,6 +74,8 @@ void ListBox_prune(ListBox* this);
void ListBox_add(ListBox* this, Object* o);
+void ListBox_insert(ListBox* this, int i, Object* o);
+
void ListBox_set(ListBox* this, int i, Object* o);
Object* ListBox_get(ListBox* this, int i);

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