mirror of https://github.com/xzeldon/htop.git
31 lines
572 B
C
31 lines
572 B
C
#ifndef HEADER_CheckItem
|
|
#define HEADER_CheckItem
|
|
/*
|
|
htop - CheckItem.h
|
|
(C) 2004-2011 Hisham H. Muhammad
|
|
Released under the GNU GPL, see the COPYING file
|
|
in the source distribution for its full text.
|
|
*/
|
|
|
|
#include "Object.h"
|
|
|
|
typedef struct CheckItem_ {
|
|
Object super;
|
|
char* text;
|
|
bool* ref;
|
|
bool value;
|
|
} CheckItem;
|
|
|
|
|
|
extern ObjectClass CheckItem_class;
|
|
|
|
CheckItem* CheckItem_newByRef(char* text, bool* ref);
|
|
|
|
CheckItem* CheckItem_newByVal(char* text, bool value);
|
|
|
|
void CheckItem_set(CheckItem* this, bool value);
|
|
|
|
bool CheckItem_get(CheckItem* this);
|
|
|
|
#endif
|