summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-24 21:47:43 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-24 21:47:43 +0100
commit5e6970b6156928b010453f5199acfff0791ecf29 (patch)
treea7998723df9ee4bcb486df0074af18b320c14962 /native
parent6791c0b20820c104344a8456909be94d4530b43e (diff)
downloadiced-5e6970b6156928b010453f5199acfff0791ecf29.tar.gz
iced-5e6970b6156928b010453f5199acfff0791ecf29.tar.bz2
iced-5e6970b6156928b010453f5199acfff0791ecf29.zip
Improve docs of `text_input::State::cursor`
Diffstat (limited to 'native')
-rw-r--r--native/src/widget/text_input.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs
index 43e48d00..dddabfdf 100644
--- a/native/src/widget/text_input.rs
+++ b/native/src/widget/text_input.rs
@@ -646,7 +646,10 @@ impl State {
self.is_focused
}
- /// getter for cursor
+ /// Returns the [`Cursor`] of the [`TextInput`].
+ ///
+ /// [`Cursor`]: struct.Cursor.html
+ /// [`TextInput`]: struct.TextInput.html
pub fn cursor(&self) -> Cursor {
self.cursor
}