summaryrefslogtreecommitdiffstats
path: root/OptionItem.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2022-05-04 21:26:33 +0200
committerBenBE <BenBE@geshi.org>2022-05-27 19:47:06 +0200
commit999801464a8a4d818e2ee3c87855a66929538a62 (patch)
tree9e9a6782ed7464579112a9b955f2f7b97722a308 /OptionItem.h
parent0e29174211754774534a5163667a91dbaa84abee (diff)
Add some headers in the Setup -> Display options panel
Diffstat (limited to 'OptionItem.h')
-rw-r--r--OptionItem.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/OptionItem.h b/OptionItem.h
index 35c85062..ba28775d 100644
--- a/OptionItem.h
+++ b/OptionItem.h
@@ -13,6 +13,7 @@ in the source distribution for its full text.
enum OptionItemType {
+ OPTION_ITEM_TEXT,
OPTION_ITEM_CHECK,
OPTION_ITEM_NUMBER,
};
@@ -32,6 +33,12 @@ typedef struct OptionItem_ {
char* text;
} OptionItem;
+typedef struct TextItem_ {
+ OptionItem super;
+
+ char* text;
+} TextItem;
+
typedef struct CheckItem_ {
OptionItem super;
@@ -51,9 +58,12 @@ typedef struct NumberItem_ {
} NumberItem;
extern const OptionItemClass OptionItem_class;
+extern const OptionItemClass TextItem_class;
extern const OptionItemClass CheckItem_class;
extern const OptionItemClass NumberItem_class;
+TextItem* TextItem_new(const char* text);
+
CheckItem* CheckItem_newByRef(const char* text, bool* ref);
CheckItem* CheckItem_newByVal(const char* text, bool value);
bool CheckItem_get(const CheckItem* this);

© 2014-2024 Faster IT GmbH | imprint | privacy policy