From 86d248ed2b033fe36ce53b0387b2cbdcb69c0b72 Mon Sep 17 00:00:00 2001 From: aura Date: Tue, 28 Jul 2026 19:11:34 +0200 Subject: finish undo/redo --- src/gui/base.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/gui/base.h') diff --git a/src/gui/base.h b/src/gui/base.h index 1a1c4cb..108988d 100644 --- a/src/gui/base.h +++ b/src/gui/base.h @@ -169,10 +169,12 @@ struct GUI_LIST : GUI_BASE { U8 held; GUI_CALLBACK cb; + GUI_CALLBACK pre_cb; }; struct GUI_BUTTON : GUI_BASE { GUI_CALLBACK cb; + GUI_CALLBACK pre_cb; U8 held; void* extra; }; @@ -182,6 +184,7 @@ struct GUI_CHECKBOX : GUI_BASE { U8* pval; GUI_CALLBACK cb; + GUI_CALLBACK pre_cb; }; struct GUI_DROPDOWN : GUI_BASE { @@ -190,6 +193,7 @@ struct GUI_DROPDOWN : GUI_BASE { U8 held; GUI_CALLBACK cb; + GUI_CALLBACK pre_cb; GUI_WINDOW* listwnd; GUI_VIEW* listview; }; @@ -216,6 +220,7 @@ struct GUI_TEXTBOX : GUI_BASE { U8 m1held; GUI_CALLBACK cb; + GUI_CALLBACK pre_cb; }; struct GUI_CONTEXTBOX : GUI_BASE { @@ -243,6 +248,8 @@ struct GUI_FLOATINPUT : GUI_BASE { U8 wraparound; GUI_CALLBACK cb; + GUI_CALLBACK pre_cb; + GUI_CALLBACK release_cb; void* cbextra; }; @@ -261,6 +268,8 @@ struct GUI_VECTORINPUT : GUI_VIEW { LIST lastchange; GUI_CALLBACK cb; + GUI_CALLBACK pre_cb; + GUI_CALLBACK release_cb; void* cbextra; }; -- cgit v1.2.3