~ubuntu-branches/ubuntu/feisty/htop/feisty

« back to all changes in this revision

Viewing changes to ListBox.h

  • Committer: Bazaar Package Importer
  • Author(s): Bartosz Fenski
  • Date: 2004-06-20 10:33:13 UTC
  • Revision ID: james.westby@ubuntu.com-20040620103313-7tsm7dmr4obb3b5t
Tags: upstream-0.3.3
ImportĀ upstreamĀ versionĀ 0.3.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Do not edit this file. It was automatically genarated. */
 
2
 
 
3
#ifndef HEADER_ListBox
 
4
#define HEADER_ListBox
 
5
/*
 
6
htop
 
7
(C) 2004 Hisham H. Muhammad
 
8
Released under the GNU GPL, see the COPYING file
 
9
in the source distribution for its full text.
 
10
*/
 
11
 
 
12
#include "Object.h"
 
13
#include "TypedVector.h"
 
14
#include "CRT.h"
 
15
#include "RichString.h"
 
16
 
 
17
#include "debug.h"
 
18
 
 
19
#include <assert.h>
 
20
#include <math.h>
 
21
#include <sys/param.h>
 
22
#include <stdbool.h>
 
23
 
 
24
#include <curses.h>
 
25
//#link curses
 
26
 
 
27
typedef struct ListBox_ {
 
28
   int x, y, w, h;
 
29
   WINDOW* window;
 
30
   TypedVector* items;
 
31
   int selected;
 
32
   int scrollV, scrollH;
 
33
   int oldSelected;
 
34
   bool needsRedraw;
 
35
   RichString header;
 
36
} ListBox;
 
37
 
 
38
ListBox* ListBox_new(int x, int y, int w, int h, char* type);
 
39
 
 
40
void ListBox_setHeader(ListBox* this, RichString header);
 
41
 
 
42
void ListBox_delete(ListBox* this);
 
43
 
 
44
void ListBox_move(ListBox* this, int x, int y);
 
45
 
 
46
void ListBox_resize(ListBox* this, int w, int h);
 
47
 
 
48
void ListBox_prune(ListBox* this);
 
49
 
 
50
void ListBox_add(ListBox* this, Object* o);
 
51
 
 
52
void ListBox_set(ListBox* this, int i, Object* o);
 
53
 
 
54
Object* ListBox_get(ListBox* this, int i);
 
55
 
 
56
Object* ListBox_getSelected(ListBox* this);
 
57
 
 
58
int ListBox_getSelectedIndex(ListBox* this);
 
59
 
 
60
int ListBox_getSize(ListBox* this);
 
61
 
 
62
void ListBox_setSelected(ListBox* this, int selected);
 
63
 
 
64
void ListBox_draw(ListBox* this);
 
65
 
 
66
void ListBox_onKey(ListBox* this, int key);
 
67
 
 
68
#endif