Skip to content

Commit

Permalink
Utilizing lambda in the GUI library.
Browse files Browse the repository at this point in the history
  • Loading branch information
captainys committed Oct 16, 2023
1 parent c551f88 commit 8bf5ed4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/fsguilib/src/fsguidialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,13 @@ class FsGuiDialog : public FsGuiControlBase
stdCloseModalCallBack=std::bind(func,obj,this,std::placeholders::_1);
}

/*!
*/
void CallOnCloseModal(std::function <void(int)> lambda)
{
stdCloseModalCallBack=lambda;
}

void UnbindCloseModalCallBack(void);


Expand Down

0 comments on commit 8bf5ed4

Please sign in to comment.