htop/ScreenManager.h

56 lines
1.3 KiB
C
Raw Normal View History

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
/*
2011-12-26 21:35:57 +00:00
htop - ScreenManager.h
2011-05-26 16:35:07 +00:00
(C) 2004-2011 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.
*/
2011-12-26 21:35:57 +00:00
#include "FunctionBar.h"
#include "Vector.h"
#include "Header.h"
#include "Settings.h"
#include "Panel.h"
2006-03-04 18:16:49 +00:00
typedef enum Orientation_ {
VERTICAL,
HORIZONTAL
} Orientation;
typedef struct ScreenManager_ {
int x1;
int y1;
int x2;
int y2;
Orientation orientation;
Vector* panels;
2018-08-25 01:45:55 +00:00
const char* name;
int panelCount;
const Header* header;
const Settings* settings;
2006-03-04 18:16:49 +00:00
bool owner;
bool allowFocusChange;
2006-03-04 18:16:49 +00:00
} ScreenManager;
ScreenManager* ScreenManager_new(int x1, int y1, int x2, int y2, Orientation orientation, const Header* header, const Settings* settings, bool owner);
2006-03-04 18:16:49 +00:00
void ScreenManager_delete(ScreenManager* this);
extern int ScreenManager_size(ScreenManager* this);
2006-03-04 18:16:49 +00:00
2015-03-23 18:26:56 +00:00
void ScreenManager_add(ScreenManager* this, Panel* item, int size);
2006-03-04 18:16:49 +00:00
void ScreenManager_insert(ScreenManager* this, Panel* item, int size, int idx);
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);
2018-08-25 01:45:55 +00:00
void ScreenManager_run(ScreenManager* this, Panel** lastFocus, int* lastKey, char* name);
2006-03-04 18:16:49 +00:00
#endif