ScreenManager.h 1.34 KB
Newer Older
Hisham Muhammad's avatar
Hisham Muhammad committed
1
/* Do not edit this file. It was automatically generated. */
Hisham Muhammad's avatar
Hisham Muhammad committed
2
3
4
5

#ifndef HEADER_ScreenManager
#define HEADER_ScreenManager
/*
Hisham Muhammad's avatar
Hisham Muhammad committed
6
htop - ScreenManager.h
Hisham Muhammad's avatar
Hisham Muhammad committed
7
(C) 2004-2011 Hisham H. Muhammad
Hisham Muhammad's avatar
Hisham Muhammad committed
8
9
10
11
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/

Hisham Muhammad's avatar
Hisham Muhammad committed
12
#include "FunctionBar.h"
13
#include "Vector.h"
14
#include "Header.h"
Hisham Muhammad's avatar
Hisham Muhammad committed
15
16
#include "Settings.h"
#include "Panel.h"
Hisham Muhammad's avatar
Hisham Muhammad committed
17
18
19
20
21
22
23
24
25
26
27
28

typedef enum Orientation_ {
   VERTICAL,
   HORIZONTAL
} Orientation;

typedef struct ScreenManager_ {
   int x1;
   int y1;
   int x2;
   int y2;
   Orientation orientation;
29
   Vector* panels;
Hisham Muhammad's avatar
Hisham Muhammad committed
30
   const char* name;
31
   int panelCount;
32
   const Header* header;
Hisham Muhammad's avatar
Hisham Muhammad committed
33
   const Settings* settings;
Hisham Muhammad's avatar
Hisham Muhammad committed
34
   bool owner;
35
   bool allowFocusChange;
Hisham Muhammad's avatar
Hisham Muhammad committed
36
37
38
} ScreenManager;


Hisham Muhammad's avatar
Hisham Muhammad committed
39
ScreenManager* ScreenManager_new(int x1, int y1, int x2, int y2, Orientation orientation, const Header* header, const Settings* settings, bool owner);
Hisham Muhammad's avatar
Hisham Muhammad committed
40
41
42

void ScreenManager_delete(ScreenManager* this);

43
extern int ScreenManager_size(ScreenManager* this);
Hisham Muhammad's avatar
Hisham Muhammad committed
44

45
void ScreenManager_add(ScreenManager* this, Panel* item, int size);
Hisham Muhammad's avatar
Hisham Muhammad committed
46

47
48
void ScreenManager_insert(ScreenManager* this, Panel* item, int size, int idx);

Hisham Muhammad's avatar
Hisham Muhammad committed
49
Panel* ScreenManager_remove(ScreenManager* this, int idx);
Hisham Muhammad's avatar
Hisham Muhammad committed
50
51
52

void ScreenManager_resize(ScreenManager* this, int x1, int y1, int x2, int y2);

Hisham Muhammad's avatar
Hisham Muhammad committed
53
void ScreenManager_run(ScreenManager* this, Panel** lastFocus, int* lastKey, char* name);
Hisham Muhammad's avatar
Hisham Muhammad committed
54
55

#endif