kanato's picture

Implement "Tag" property on DisplayDevice and DisplayMode

Project:The Open Toolkit library
Version:0.9.x-dev
Component:Code
Category:task
Priority:minor
Assigned:kanato
Status:open
Description

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.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kanato's picture

#1

Assigned to:Anonymous» kanato