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
"Since we always call Context::create_widget in Ui::new, this should never be None",
1021
+
)
1022
+
}
1023
+
992
1024
/// Interact with the background of this [`Ui`],
993
1025
/// i.e. behind all the widgets.
994
1026
///
995
1027
/// The rectangle of the [`Response`] (and interactive area) will be [`Self::min_rect`].
996
1028
/// You can customize the [`Sense`] via [`UiBuilder::sense`].
1029
+
// This is marked as deprecated for public use but still makes sense to use internally.
1030
+
#[deprecated = "Use Ui::read_response instead"]
997
1031
pubfninteract_bg(&self) -> Response{
998
1032
// We remove the id from used_ids to prevent a duplicate id warning from showing
999
1033
// when the ui was created with `UiBuilder::sense`.
@@ -2178,7 +2212,9 @@ impl Ui {
2178
2212
letmut child_ui = self.new_child(ui_builder);
2179
2213
self.next_auto_id_salt = next_auto_id_salt;// HACK: we want `scope` to only increment this once, so that `ui.scope` is equivalent to `ui.allocate_space`.
2180
2214
let ret = add_contents(&mut child_ui);
2181
-
let response = self.allocate_rect(child_ui.min_rect(),Sense::hover());
0 commit comments