Giuseppe Lippolis
3b9a34274a
feat(IDispatcher): Add void Post(Action<object> action,object arg, DispatcherPriority priority = default);
4 years ago
Nikita Tsukanov
b2b4014b1c
Make DispatcherPriority to be a struct with static readonly field values
In future versions this will allow us to extend priority lists without breaking binary compatibility
4 years ago
Nikita Tsukanov
9c0964adf5
Added GetIntermediatePoints support for X11, libinput and evdev
4 years ago
Giuseppe Lippolis
509d7c06f7
fixes: Null Annotaion
4 years ago
Steven Kirk
a0c10cd6bf
Use GetRequiredService throughout.
4 years ago
Steven Kirk
76667dbd0d
Finished adding nullable annotations to Avalonia.Base.
4 years ago
Giuseppe Lippolis
75bd449a69
feat: Implement Post<T> method of IDispatcher.
5 years ago
Steven Kirk
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
6 years ago
Nicolas Musset
0befa22692
Support invoking a task in the dispatcher.
8 years ago
Nicolas Musset
434bf0d3db
Support invoking a function in the dispatcher.
8 years ago
lindexi
487f3eb10e
check action is null
If the user give the null to InvokeAsync, what is his intention
8 years ago
Steven Kirk
64ed0761c7
Rename Dispatcher invoke methods.
`InvokeAsync` -> `Post`
`InvokeTaskAsync` -> `InvokeAsync`
8 years ago
Nikita Tsukanov
5027248bd4
[MONOMAC] Dispatcher changes
9 years ago
Nikita Tsukanov
bdbe95b9b1
Fixed DispatcherTimer's priorities
9 years ago
Nikita Tsukanov
b963d68668
Try to respect DispatcherPriority when possible
9 years ago
Steven Kirk
a56ca5f319
Ported IDispatcher from scenegraph branch.
9 years ago
Steven Kirk
a46be4e200
Ensure correct thread for AvaloniaProperty access.
Previously we ensured that `AvaloniaObject.SetValue` was run on the main
thread. This makes sure that `GetValue`, `IsSet` and `ClearValue` are
also run on the main thread. Unit testing this turned out to be more
complicated than expected, because `Dispatcher` keeps a hold of a
reference to the first `IPlatformThreadingInterface` it sees, so made
`UnitTestApplication` able to notify `Dispatcher` that it should update
its services.
9 years ago
Steven Kirk
d34c279ba1
WIP: Adding render layers.
9 years ago
Steven Kirk
934e18c8ba
Initial impl of incremental update to SceneGraph.
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
04f10b9faf
CurrentThreadIsLoopThread is a property.
11 years ago
Nikita Tsukanov
45da235507
Renaming stuff
11 years ago
Nikita Tsukanov
d1c6b50911
Added VerifyAccess call to PerspexObject. We need to do something about Dispatcher and unit tests
11 years ago
Nikita Tsukanov
17f90128c9
Method renaming
11 years ago
Nikita Tsukanov
21f977ac9d
Replaced InvokeAsync with Invoke and InvokeTask to avoid exception swallowing and misunderstanding
11 years ago
Nikita Tsukanov
f50a2c361c
Reverted Dispatcher.UIThread and added SingleThreadDispatcher
11 years ago
Nikita Tsukanov
d7f3778de6
New main loop system
11 years ago
Nikita Tsukanov
3cd3579475
"field can be readonly"
11 years ago
Nikita Tsukanov
21a3554260
Change property getter to expression properties
11 years ago
Steven Kirk
145411020b
Ran .net core code formatter.
11 years ago
Steven Kirk
6151aef188
Removed file headers.
11 years ago
Nikita Tsukanov
7923159c61
DispatcherTimer should now swallow exceptions
11 years ago
Nikita Tsukanov
99af4bfdb3
Added SynchronizationContext support
11 years ago
Nikita Tsukanov
e2198a0c67
Added RunJobs to Dispatcher (needed for designer)
11 years ago
Nikita Tsukanov
ea1acce696
Fixed render updates
11 years ago
Steven Kirk
5dc0e604fb
Slyecoping.
11 years ago
Steven Kirk
6167bacf54
Moved to more standard filesystem layout.
Based on https://gist.github.com/davidfowl/ed7564297c61fe9ab814 and https://github.com/fsprojects/ProjectScaffold
11 years ago
Steven Kirk
1599828f9d
Documentation.
11 years ago
Steven Kirk
0717b980e1
Refactored Dispatcher.
To make it easier to implement dispatchers on other platforms. Currently
assuming a single dispatcher per application. Had to copy most of
NGenerics locally just to get a PriorityQueue implementation as it has
no PCL version.
11 years ago
Steven Kirk
bfadaac5d9
Non-building checkpoint in MAJOR refactor.
12 years ago
Steven Kirk
7dc715d27e
Make TextBox caret flash.
12 years ago