|Project:||The Open Toolkit library|
Implement an internal property which allows each DisplayDevice instance to retain a handle to the native display device it represents. This will allow refactoring of the display device implementations so that they do not need to keep Dictionaries which map DisplayDevice instances to their respective handles.
On MacOS this needs to be an IntPtr, on Windows it needs to be a string, and on X11 it needs to be an int. This should flexible to accept any type for the handle, but using "object" for the property type is undesirable as it lacks type safety and (more importantly) makes the code less transparent.
The same approach should be used for the same reason on DisplayMode, but the required handle types may be different than described above.