2006-03-04 18:16:49 +00:00
|
|
|
#ifndef HEADER_CheckItem
|
|
|
|
#define HEADER_CheckItem
|
|
|
|
/*
|
2011-12-26 21:35:57 +00:00
|
|
|
htop - CheckItem.h
|
2011-05-26 16:35:07 +00:00
|
|
|
(C) 2004-2011 Hisham H. Muhammad
|
2020-10-05 07:51:32 +00:00
|
|
|
Released under the GNU GPLv2, see the COPYING file
|
2006-03-04 18:16:49 +00:00
|
|
|
in the source distribution for its full text.
|
|
|
|
*/
|
|
|
|
|
2020-09-19 11:55:23 +00:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2006-03-04 18:16:49 +00:00
|
|
|
#include "Object.h"
|
|
|
|
|
|
|
|
typedef struct CheckItem_ {
|
|
|
|
Object super;
|
|
|
|
char* text;
|
2007-11-08 23:23:01 +00:00
|
|
|
bool* ref;
|
2014-02-27 19:35:22 +00:00
|
|
|
bool value;
|
2006-03-04 18:16:49 +00:00
|
|
|
} CheckItem;
|
|
|
|
|
2020-10-05 11:19:50 +00:00
|
|
|
extern const ObjectClass CheckItem_class;
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2020-09-02 07:38:44 +00:00
|
|
|
CheckItem* CheckItem_newByRef(char* text, bool* ref);
|
2015-08-12 20:29:32 +00:00
|
|
|
|
2020-09-02 07:38:44 +00:00
|
|
|
CheckItem* CheckItem_newByVal(char* text, bool value);
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2020-09-02 07:38:44 +00:00
|
|
|
void CheckItem_set(CheckItem* this, bool value);
|
2007-11-08 23:23:01 +00:00
|
|
|
|
2020-10-06 10:28:11 +00:00
|
|
|
bool CheckItem_get(const CheckItem* this);
|
2007-11-08 23:23:01 +00:00
|
|
|
|
2006-03-04 18:16:49 +00:00
|
|
|
#endif
|