Add example images to widget docs

This commit is contained in:
Héctor Ramón Jiménez 2019-08-30 01:42:22 +02:00
parent 23d4d20e57
commit e84e0b876c
5 changed files with 25 additions and 24 deletions

View file

@ -36,6 +36,8 @@ use std::hash::Hash;
/// Button::new(state, "Click me!")
/// .on_press(Message::ButtonClicked);
/// ```
///
/// ![Button drawn by Coffee's renderer](https://github.com/hecrj/coffee/blob/bda9818f823dfcb8a7ad0ff4940b4d4b387b5208/images/ui/button.png?raw=true)
pub struct Button<'a, Message> {
state: &'a mut State,
label: String,