Skip to content

Commit 8ec0a36

Browse files
committed
refactor
1 parent 323ae1e commit 8ec0a36

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ui.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ struct Data{
3838
eventFlag{mouseEvent.dwEventFlags},ui{ui},argv{argv}{}
3939
~Data(){}
4040
};
41-
using call=bool(*)(Data);
41+
using callback=bool(*)(Data);
4242
struct Text{
4343
cstr text;
4444
Color color;
4545
COORD pos;
46-
call fn;
46+
callback fn;
4747
void *argv;
4848
Text():
4949
text{},color{Color{0,0}},pos{},fn{nullptr}{}
50-
Text(cstr text,Color color,call fn,void *argv):
50+
Text(cstr text,Color color,callback fn,void *argv):
5151
text{text},color{color},pos{},fn{fn},argv{argv}{}
5252
~Text(){}
5353
auto operator==(const COORD &mousePosition)const{
@@ -179,7 +179,7 @@ class CUI{
179179
CUI():
180180
height{},width{}{}
181181
~CUI(){}
182-
auto push(cstr text,call fn=nullptr,void *argv=nullptr,i16 colorHighlight=CON_BLUE,i16 colorDef=CON_WHITE)->CUI&{
182+
auto push(cstr text,callback fn=nullptr,void *argv=nullptr,i16 colorHighlight=CON_BLUE,i16 colorDef=CON_WHITE)->CUI&{
183183
lineData.push_back(Text{text,Color{colorDef,(fn==nullptr)?(colorDef):(colorHighlight)},fn,argv});
184184
return *this;
185185
}

0 commit comments

Comments
 (0)