2006-06-06 20:28:42 +00:00
|
|
|
/* Do not edit this file. It was automatically generated. */
|
2006-03-04 18:16:49 +00:00
|
|
|
|
|
|
|
#ifndef HEADER_ScreenManager
|
|
|
|
#define HEADER_ScreenManager
|
|
|
|
/*
|
|
|
|
htop
|
2010-02-25 02:08:18 +00:00
|
|
|
(C) 2004-2010 Hisham H. Muhammad
|
2006-03-04 18:16:49 +00:00
|
|
|
Released under the GNU GPL, see the COPYING file
|
|
|
|
in the source distribution for its full text.
|
|
|
|
*/
|
|
|
|
|
2006-05-30 13:47:28 +00:00
|
|
|
#include "Panel.h"
|
2006-03-04 18:16:49 +00:00
|
|
|
#include "Object.h"
|
2006-05-30 13:45:40 +00:00
|
|
|
#include "Vector.h"
|
2011-03-22 20:37:08 +00:00
|
|
|
#include "Header.h"
|
2006-03-04 18:16:49 +00:00
|
|
|
#include "FunctionBar.h"
|
|
|
|
|
|
|
|
#include "debug.h"
|
|
|
|
#include <assert.h>
|
2011-03-22 20:37:08 +00:00
|
|
|
#include <time.h>
|
2006-03-04 18:16:49 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
|
|
|
|
typedef enum Orientation_ {
|
|
|
|
VERTICAL,
|
|
|
|
HORIZONTAL
|
|
|
|
} Orientation;
|
|
|
|
|
|
|
|
typedef struct ScreenManager_ {
|
|
|
|
int x1;
|
|
|
|
int y1;
|
|
|
|
int x2;
|
|
|
|
int y2;
|
|
|
|
Orientation orientation;
|
2006-05-30 13:45:40 +00:00
|
|
|
Vector* items;
|
2006-06-06 20:28:42 +00:00
|
|
|
Vector* fuBars;
|
2006-03-04 18:16:49 +00:00
|
|
|
int itemCount;
|
2011-03-22 20:37:08 +00:00
|
|
|
const FunctionBar* fuBar;
|
|
|
|
const Header* header;
|
|
|
|
time_t lastScan;
|
2006-03-04 18:16:49 +00:00
|
|
|
bool owner;
|
|
|
|
} ScreenManager;
|
|
|
|
|
|
|
|
|
2011-03-22 20:37:08 +00:00
|
|
|
ScreenManager* ScreenManager_new(int x1, int y1, int x2, int y2, Orientation orientation, const Header* header, bool owner);
|
2006-03-04 18:16:49 +00:00
|
|
|
|
|
|
|
void ScreenManager_delete(ScreenManager* this);
|
|
|
|
|
2007-08-10 05:59:36 +00:00
|
|
|
extern int ScreenManager_size(ScreenManager* this);
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2006-05-30 13:47:28 +00:00
|
|
|
void ScreenManager_add(ScreenManager* this, Panel* item, FunctionBar* fuBar, int size);
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2010-02-25 01:43:18 +00:00
|
|
|
Panel* ScreenManager_remove(ScreenManager* this, int idx);
|
2006-03-04 18:16:49 +00:00
|
|
|
|
|
|
|
void ScreenManager_resize(ScreenManager* this, int x1, int y1, int x2, int y2);
|
|
|
|
|
2006-05-30 13:47:28 +00:00
|
|
|
void ScreenManager_run(ScreenManager* this, Panel** lastFocus, int* lastKey);
|
2006-03-04 18:16:49 +00:00
|
|
|
|
|
|
|
#endif
|