oop
This commit is contained in:
@@ -30,8 +30,10 @@ impl Widget for WidgetPtr {
|
||||
}
|
||||
|
||||
impl WidgetPtr {
|
||||
pub fn new() -> Self {
|
||||
Self::default()
|
||||
pub fn new(widget: StrongWidget) -> Self {
|
||||
Self {
|
||||
inner: Some(widget),
|
||||
}
|
||||
}
|
||||
pub fn empty() -> Self {
|
||||
Self {
|
||||
|
||||
Reference in New Issue
Block a user