From 999801464a8a4d818e2ee3c87855a66929538a62 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Wed, 4 May 2022 21:26:33 +0200 Subject: Add some headers in the Setup -> Display options panel --- OptionItem.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'OptionItem.h') 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); -- cgit v1.2.3