ConstructEssentials
i'm really out of ideas how to name another struct name with function parameters. Well, here we go - essentials.
This commit is contained in:
@@ -6,8 +6,8 @@ use crate::{
|
||||
any::AnyTrait,
|
||||
drawing::{self, PrimitiveExtent},
|
||||
event::{
|
||||
self, CallbackData, CallbackDataCommon, CallbackMetadata, Event, EventAlterables, EventListenerKind,
|
||||
EventListenerVec, MouseWheelEvent,
|
||||
self, CallbackData, CallbackDataCommon, CallbackMetadata, Event, EventAlterables, EventListenerCollection,
|
||||
EventListenerKind, EventListenerVec, MouseWheelEvent,
|
||||
},
|
||||
layout::{Layout, LayoutState, WidgetID},
|
||||
stack::{ScissorStack, TransformStack},
|
||||
@@ -516,3 +516,9 @@ impl WidgetState {
|
||||
Ok(EventResult::Pass)
|
||||
}
|
||||
}
|
||||
|
||||
pub struct ConstructEssentials<'a, U1, U2> {
|
||||
pub layout: &'a mut Layout,
|
||||
pub listeners: &'a mut EventListenerCollection<U1, U2>,
|
||||
pub parent: WidgetID,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user