remove context from ui (again) and create weird trait for it
This commit is contained in:
@@ -255,10 +255,10 @@ impl TextInputResult {
|
||||
}
|
||||
}
|
||||
|
||||
impl<Ctx> FnOnce<(&mut Ui<Ctx>,)> for TextEditBuilder {
|
||||
impl FnOnce<(&mut Ui,)> for TextEditBuilder {
|
||||
type Output = TextEdit;
|
||||
|
||||
extern "rust-call" fn call_once(self, args: (&mut Ui<Ctx>,)) -> Self::Output {
|
||||
extern "rust-call" fn call_once(self, args: (&mut Ui,)) -> Self::Output {
|
||||
let mut text = TextEdit {
|
||||
buf: TextBuffer::new_empty(Metrics::new(self.attrs.font_size, self.attrs.line_height)),
|
||||
attrs: self.attrs,
|
||||
|
||||
Reference in New Issue
Block a user