You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.
E.g. the CreateWindow request has the field visual, where 0 means CopyFromParent, and any other value means a VisualId. This will need to therefore be something like:
where Uninherited(T) writes no discriminant, and CopyFromParent, in the case of VisualIds, is written as a u32 value (as are VisualIds).
Thoughts
May be able to take advantage of the fact that VisualIds actually wrap u32 values. Traits could be implemented for Inheritable<T> where T wraps a u32 value (what bound that could be, I'm not sure; T: From<u32> wouldn't work because of the fact that it would be possible to implement From<u16>, etc., for T as well).
The text was updated successfully, but these errors were encountered:
Currently this is being done with a Wrapper trait in XRBK. There may or may not be a better way. I will leave this issue open for now in case a better way is found.
E.g. the
CreateWindow
request has the fieldvisual
, where0
meansCopyFromParent
, and any other value means aVisualId
. This will need to therefore be something like:where
Uninherited(T)
writes no discriminant, andCopyFromParent
, in the case ofVisualId
s, is written as au32
value (as areVisualId
s).Thoughts
May be able to take advantage of the fact that
VisualId
s actually wrapu32
values. Traits could be implemented forInheritable<T>
whereT
wraps au32
value (what bound that could be, I'm not sure;T: From<u32>
wouldn't work because of the fact that it would be possible to implementFrom<u16>
, etc., forT
as well).The text was updated successfully, but these errors were encountered: