comments
This commit is contained in:
3
TODO
3
TODO
@@ -1,6 +1,5 @@
|
|||||||
images
|
images
|
||||||
text
|
text
|
||||||
ui ctx = ui + app ctx for sensors
|
ui ctx = ui + app ctx for sensors
|
||||||
free / delete widgets
|
|
||||||
abstract sensors to work with any event, maybe associate data as well?
|
abstract sensors to work with any event, maybe associate data as well?
|
||||||
make senses orable so you can select multiple
|
make current senses orable so you can select multiple
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ pub enum SpanLen {
|
|||||||
/// relative to remaining free space and other ratios
|
/// relative to remaining free space and other ratios
|
||||||
/// eg. 1 and 2 would take up 1/3 and 2/3 of the remaining space (after others)
|
/// eg. 1 and 2 would take up 1/3 and 2/3 of the remaining space (after others)
|
||||||
Ratio(f32),
|
Ratio(f32),
|
||||||
/// relative to the total space
|
/// relative to the total space (of the entire span)
|
||||||
/// eg. 0.5 means 1/2 of the total space
|
/// eg. 0.5 means 1/2 of the total space
|
||||||
Relative(f32),
|
Relative(f32),
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ impl<W> WidgetId<W> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub(super) fn cast_type<W2>(self) -> WidgetId<W2> {
|
pub(super) fn cast_type<W2>(self) -> WidgetId<W2> {
|
||||||
|
// safety: self is repr(C) and generic only used for phantom data
|
||||||
unsafe { std::mem::transmute(self) }
|
unsafe { std::mem::transmute(self) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user