1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 21:30:03 -04:00

Rename Widget::add_to to Widget::ui

This commit is contained in:
Emil Ernerfeldt
2020-04-29 22:01:39 +02:00
parent bf59455097
commit 7cd8ac2bbf
3 changed files with 11 additions and 12 deletions

View File

@@ -35,7 +35,7 @@ impl<'t> TextEdit<'t> {
}
impl<'t> Widget for TextEdit<'t> {
fn add_to(self, region: &mut Region) -> GuiResponse {
fn ui(self, region: &mut Region) -> GuiResponse {
let id = region.make_child_id(self.id);
let font = &region.fonts()[self.text_style];