mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-30 05:15:59 +02:00
Got rid of Action<T>/Func<T>
This commit is contained in:
parent
44bd9c698f
commit
b52db47d55
37 changed files with 94 additions and 88 deletions
|
@ -60,7 +60,7 @@ namespace IDE.ui
|
|||
public String mPendingEvalStr ~ delete _;
|
||||
public String mCurEvalExpr ~ delete _;
|
||||
public Breakpoint mPendingMemoryBreakpoint ~ { if (_ != null) _.Deref(); };
|
||||
public Action<int, int, String> mOnPendingMemoryBreakpoint ~ delete _;
|
||||
public delegate void(int, int, String) mOnPendingMemoryBreakpoint ~ delete _;
|
||||
|
||||
public this()
|
||||
{
|
||||
|
@ -488,7 +488,7 @@ namespace IDE.ui
|
|||
return true;
|
||||
}
|
||||
|
||||
public MemoryBreakpointResult TryCreateMemoryBreakpoint(String evalStr, out int addr, out int32 byteCount, String addrType, Action<int, int, String> pendingHandler)
|
||||
public MemoryBreakpointResult TryCreateMemoryBreakpoint(String evalStr, out int addr, out int32 byteCount, String addrType, delegate void(int, int, String) pendingHandler)
|
||||
{
|
||||
addr = 0;
|
||||
byteCount = 0;
|
||||
|
|
|
@ -427,7 +427,7 @@ namespace IDE.ui
|
|||
|
||||
Menu menu = new Menu();
|
||||
|
||||
Action<String, bool> addSubMenu = scope (label, useRepType) => {
|
||||
delegate void(String, bool) addSubMenu = scope (label, useRepType) => {
|
||||
|
||||
Menu subMenu = menu.AddItem(label);
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ namespace IDE.ui
|
|||
mIsReadOnly = true;
|
||||
}
|
||||
|
||||
public Event<Func<int, int, bool>> mGotoReferenceEvent ~ _.Dispose();
|
||||
public Event<delegate bool(int, int)> mGotoReferenceEvent ~ _.Dispose();
|
||||
public bool GotoRefrenceAtLine(int line, int lineOfs = 0)
|
||||
{
|
||||
//bool selectLine = true;
|
||||
|
|
|
@ -177,10 +177,10 @@ namespace IDE.ui
|
|||
OnlyShowInvoke = 4
|
||||
}
|
||||
|
||||
public Action<char32, AutoCompleteOptions> mOnGenerateAutocomplete ~ delete _;
|
||||
public delegate void(char32, AutoCompleteOptions) mOnGenerateAutocomplete ~ delete _;
|
||||
public Action mOnFinishAsyncAutocomplete ~ delete _;
|
||||
public Action mOnCancelAsyncAutocomplete ~ delete _;
|
||||
public Func<bool> mOnEscape ~ delete _; // returns 'true' if did work
|
||||
public delegate bool() mOnEscape ~ delete _; // returns 'true' if did work
|
||||
public AutoComplete mAutoComplete ~ delete _;
|
||||
List<QueuedTextEntry> mQueuedText = new List<QueuedTextEntry>() ~ delete _;
|
||||
List<QueuedUnderlineEntry> mQueuedUnderlines = new List<QueuedUnderlineEntry>() ~ delete _;
|
||||
|
|
|
@ -6641,7 +6641,7 @@ namespace IDE.ui
|
|||
}
|
||||
|
||||
|
||||
public void WithTrackedElementsAtCursor<T>(List<T> trackedElementList, Action<T> func) where T : TrackedTextElement
|
||||
public void WithTrackedElementsAtCursor<T>(List<T> trackedElementList, delegate void(T) func) where T : TrackedTextElement
|
||||
{
|
||||
int lineIdx;
|
||||
int lineCharIdx;
|
||||
|
|
|
@ -2800,7 +2800,7 @@ namespace IDE.ui
|
|||
}
|
||||
}
|
||||
|
||||
void WithSelected(Action<ListViewItem> func)
|
||||
void WithSelected(delegate void(ListViewItem) func)
|
||||
{
|
||||
var root = listView.GetRoot();
|
||||
root.WithSelectedItems(func, false, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue