mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Remove implicit_size from the Item vtable
Use the preferred size in the layouting_info instead.
This commit is contained in:
parent
c6103aa9ce
commit
81473c2541
9 changed files with 31 additions and 159 deletions
|
@ -190,10 +190,6 @@ impl Item for NativeButton {
|
|||
}
|
||||
}
|
||||
|
||||
fn implicit_size(self: Pin<&Self>, _window: &ComponentWindow) -> Size {
|
||||
Default::default()
|
||||
}
|
||||
|
||||
fn input_event_filter_before_children(
|
||||
self: Pin<&Self>,
|
||||
_: MouseEvent,
|
||||
|
@ -320,10 +316,6 @@ impl Item for NativeCheckBox {
|
|||
}
|
||||
}
|
||||
|
||||
fn implicit_size(self: Pin<&Self>, _window: &ComponentWindow) -> Size {
|
||||
Default::default()
|
||||
}
|
||||
|
||||
fn input_event_filter_before_children(
|
||||
self: Pin<&Self>,
|
||||
_: MouseEvent,
|
||||
|
@ -478,10 +470,6 @@ impl Item for NativeSpinBox {
|
|||
}
|
||||
}
|
||||
|
||||
fn implicit_size(self: Pin<&Self>, _window: &ComponentWindow) -> Size {
|
||||
Default::default()
|
||||
}
|
||||
|
||||
fn input_event_filter_before_children(
|
||||
self: Pin<&Self>,
|
||||
_: MouseEvent,
|
||||
|
@ -692,10 +680,6 @@ impl Item for NativeSlider {
|
|||
}
|
||||
}
|
||||
|
||||
fn implicit_size(self: Pin<&Self>, _window: &ComponentWindow) -> Size {
|
||||
Default::default()
|
||||
}
|
||||
|
||||
fn input_event_filter_before_children(
|
||||
self: Pin<&Self>,
|
||||
_: MouseEvent,
|
||||
|
@ -946,10 +930,6 @@ impl Item for NativeGroupBox {
|
|||
}
|
||||
}
|
||||
|
||||
fn implicit_size(self: Pin<&Self>, _window: &ComponentWindow) -> Size {
|
||||
Default::default()
|
||||
}
|
||||
|
||||
fn input_event_filter_before_children(
|
||||
self: Pin<&Self>,
|
||||
_: MouseEvent,
|
||||
|
@ -1095,10 +1075,6 @@ impl Item for NativeLineEdit {
|
|||
}
|
||||
}
|
||||
|
||||
fn implicit_size(self: Pin<&Self>, _window: &ComponentWindow) -> Size {
|
||||
Default::default()
|
||||
}
|
||||
|
||||
fn input_event_filter_before_children(
|
||||
self: Pin<&Self>,
|
||||
_: MouseEvent,
|
||||
|
@ -1254,10 +1230,6 @@ impl Item for NativeScrollView {
|
|||
}
|
||||
}
|
||||
|
||||
fn implicit_size(self: Pin<&Self>, _window: &ComponentWindow) -> Size {
|
||||
Default::default()
|
||||
}
|
||||
|
||||
fn input_event_filter_before_children(
|
||||
self: Pin<&Self>,
|
||||
_: MouseEvent,
|
||||
|
@ -1581,10 +1553,6 @@ impl Item for NativeStandardListViewItem {
|
|||
result
|
||||
}
|
||||
|
||||
fn implicit_size(self: Pin<&Self>, _window: &ComponentWindow) -> Size {
|
||||
Default::default()
|
||||
}
|
||||
|
||||
fn input_event_filter_before_children(
|
||||
self: Pin<&Self>,
|
||||
_: MouseEvent,
|
||||
|
@ -1694,10 +1662,6 @@ impl Item for NativeComboBox {
|
|||
}
|
||||
}
|
||||
|
||||
fn implicit_size(self: Pin<&Self>, _window: &ComponentWindow) -> Size {
|
||||
Default::default()
|
||||
}
|
||||
|
||||
fn input_event_filter_before_children(
|
||||
self: Pin<&Self>,
|
||||
_: MouseEvent,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue