diff options
author | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:19 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:19 +0200 |
commit | 266ab52b3a741a58fb17c48b0f7939d7c5d266de (patch) | |
tree | b4bccc59b9a35f3acbe7560f3d633940c71aedef /ListBox.h | |
parent | 2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2 (diff) | |
download | debian_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.h | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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); |