From e9e06c8fe2ef291b04f6059a841ceb999455bea8 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 24 Jul 2024 14:52:01 +0200 Subject: Add `placeholder` support to `text_editor` widget --- core/src/renderer/null.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/src/renderer') diff --git a/core/src/renderer/null.rs b/core/src/renderer/null.rs index 7aa3aafb..d8d3c50a 100644 --- a/core/src/renderer/null.rs +++ b/core/src/renderer/null.rs @@ -118,6 +118,10 @@ impl text::Editor for () { fn with_text(_text: &str) -> Self {} + fn is_empty(&self) -> bool { + true + } + fn cursor(&self) -> text::editor::Cursor { text::editor::Cursor::Caret(Point::ORIGIN) } -- cgit